Skip to content

kiwonl/helm-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  1. 환경설정
export PROJECT_ID=$(gcloud config get-value project)
export REGION=us-central1

gcloud services enable clouddeploy.googleapis.com
  1. GKE 클러스터 생성
gcloud container clusters create-auto helm-demo-dev --region ${REGION}
gcloud container clusters create-auto helm-demo-prod --region ${REGION}
  1. Artifact Registry
gcloud artifacts repositories create docker-repo \
    --repository-format=docker \
    --location=${REGION}
  1. 코드 저장소 설정 (Cloud Source Repository)
git clone https://github.com/kiwonl/helm-demo.git
cd helm-demo

sed -i s/PROJECT_ID/${PROJECT_ID}/g skaffold.yaml
sed -i s/PROJECT_ID/${PROJECT_ID}/g helm/dev/values.yaml
sed -i s/PROJECT_ID/${PROJECT_ID}/g helm/prod/values.yaml
git init
git add .
git commit -m "initial"

# in case of Qwiklab platform
export USER_NAME=$(gcloud config get-value account)
git config --global user.email ${USER_NAME}
git config --global user.name ${USER_NAME_SPLIT=($(echo $USER_NAME | tr "@" "\n"));echo ${USER_NAME_SPLIT[0]}}
  • Add Respository
  • Create new Repository

CSR

  1. IAM 설정
  • GCE SA : Editor, Cloud Deploy Runner
  • Cloud Build SA : Service Account User, Cloud Deploy Operator
  1. Cloud Deploy
sed -i s/PROJECT_ID/${PROJECT_ID}/g clouddeploy.yaml
sed -i s/REGION/${REGION}/g clouddeploy.yaml

gcloud deploy apply --file=clouddeploy.yaml \
  --region=${REGION}
  1. Cloud Build Trigger 설정

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors