8000 helm · Issue #23 · mangreen/Some-Note · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
helm #23
Open
Open
helm#23
@mangreen

Description

@mangreen

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 上的權限問題

https://medium.com/smalltowntechblog/helm-tiller-%E9%83%A8%E7%BD%B2%E5%9C%A8-gke-%E4%B8%8A%E7%9A%84%E6%AC%8A%E9%99%90%E5%95%8F%E9%A1%8C-a016f703372e

4. Create Service Account of GCP

https://medium.com/google-cloud/automatically-deploy-to-google-app-engine-with-gitlab-ci-d1c7237cbe11

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0