Open
Description
1. Create GKE cluster (server)
2. Login GCP (client)
https://fastfoodcoding.com/questions/1509294958998/how-to-logout-from-an-account-on-gcloud-sdk
If you want to logout from all the accounts run the following command
$ gcloud auth revoke --all
If you want to logout from a specific account then run the following command
$ gcloud auth revoke <your_account>
If you want to login with a different account, you can run the following command
$ gcloud auth login
This will take you to the Google's login page where you can choose the account with which you want to login
3. Install Helm
https://jimmysong.io/kubernetes-handbook/practice/helm.html
创建tiller的serviceaccount和clusterrolebinding
kubectl create serviceaccount --namespace kube-system tiller
kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller
然后安装helm服务端tiller
helm init -i jimmysong/kubernetes-helm-tiller:v2.8.1
或
helm init --service-account tiller
pod 啟動需要一些時間
Helm 部署在 GKE 上的權限問題
4. Create Service Account of GCP
5. Define your Chart
Helm 提供快速 create Chart 的指令, 並且可以透過 --dry-run --debug 來預先瀏覽產出的設定是不是你想要的,確認後才真正的執行安裝:
$ helm create example-chart
$ helm install . --dry-run --debug
$ helm install . --name example-chart --namespace example-chart
Metadata
Metadata
Assignees
Labels
No labels