로컬 저장소 브랜치 이름 변경 git branch -m [OLD_BRANCH] [NEW_BRANCH] 이미 존재하는 파일 PUSH cd existing_folder git init --initial-branch=main git remote add origin git add . git commit -m "Initial commit" git push -u origin main push 할 때 에러메세지 [rejected] main -> main (non-fast-forward) git pull origin main --allow-unrelated-histories git push --set-upstream origin main Branch 전환하기 1. git repository에서 새로운 Branch 생성..
시스템 업데이트 sudo apt update sudo apt upgrade -y GitLab CE 레퍼지토리 추가 curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.deb.sh | sudo bash GitLab 설치 sudo apt update sudo apt -y install gitlab-ce GitLab 설정하기 sudo vi /etc/gitlab/gitlab.rb #external_url을 부분을 사용할 주소로 변경한다. sudo gitlab-ctl reconfigure 초기 관리자 계정 sudo gitlab-rake "gitlab:password:reset" Enter username: root Enter ..
helm install 명령어를 입력했는데 Error: Kubernetes cluster unreachable: invalid configuration: [unable to read client-cert /root/.minikube/profiles/minikube/client.crt for minikube due to open /root/.minikube/profiles/minikube/client.crt: permission denied, unable to read client-key /root/.minikube/profiles/minikube/client.key for minikube due to open /root/.minikube/profiles/minikube/client.key: permiss..
gitlab cicd 파이프라인에서 helm사용하여 deploy중 Error: Kubernetes cluster unreachable: unable to parse the server version: invalid character '
함수 #_helper.tpl #_helper.tpl {{- define "mychart.name" -}} mychart {{-end }} #values.yaml #values.yaml func: enabled: true 함수를 쓰는 법 방법1 #함수 정의 {{ function 인자1 인자2 }} #예제 {{ quote .Values.func.enabled }} #"true" {{ include "mychart.name" . }} #mychart 방법2 #함수 쓰는 법 {{ Values | functions }} {{ .Values.func.enabled | quote }} #"true" {{ .Values.func.enabled | upper | quote }} #"TRUE" 조건문 #values.yam..
차트 생성 helm create mychart mychart Chart.yaml values.yaml templates deployment.yaml service.yaml serviceaccount.yaml ingress.yaml hpa.yaml _helpers.tpl NOTES.txt /tests charts 차트 조회 helm show values . #values.yaml파일 조회 helm show chart . #Chart.yaml파일 조회 helm show reademe . #READNE.md 파일 조회 helm show all . #모두 조회 템플릿 조회 helm template mychart . 실제 배포하기 전 내가 생각하는대로 값들이 채워질지 확인을 하기 위해서 사용되는 명령어 릴리즈 조..
Artifact Hub URL: https://artifacthub.io/ 쿠버네티스 패키지 저장소 원하는 패키지를 검색해서 접속하면 해당 레포지토리 추가 및 배포를 하는 방법을 볼 수 있음 레포지토리 추가 등록 helm repo add bitnami https://charts.bitnami.com/bitnami 조회 helm repo list Chart 검색 helm search repo bitnami | grep tomcat 업데이트 helm repo update 삭제 helm repo remove bitnami 배포하기 배포 명령어 helm install my-webserver bitnami/tomcat --version [버전] --set persistence.enabled=false --set ..
Helm 설치하기 curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 chmod 700 get_helm.sh ./get_helm.sh Helm 버전 확인하기 helm version 쿠버네티스 config 파일 확인 cd ~/.kube/ ls helm 자동완성 source