helm新增repo來源
helm repo add bitnami-aks https://marketplace.azurecr.io/helm/v1/repo

下載helm包
helm pull bitnami-aks/etcd

修改以下的設定
vi values.yaml

image:
registry: harbocto.xxx.com.cn
repository: bitnami/etcd
tag: 3.5.4-debian-11-r9

-------

replicaCount: 3

-------
auth:
rbac:
……
rootPassword: "rjg888"
-------
persistence:
......
size: 50Gi

-------
service:
type: LoadBalancer
#type: ClusterIP

 

##helm install etcd
kubectl create namespace etcd
helm install etcd -n etcd ./etcd -f ./etcd/values.yaml

##檢查服務
kubectl get pod -n etcd
kubectl get service -n etcd

#測試cluster是否正常運作

kubectl -n etcd exec -it etcd-0 -- etcdctl --user root:rjg888 put /message tony2022

kubectl -n etcd exec -it etcd-2 -- etcdctl --user root:rjg888 get /message

By tony

自由軟體愛好者~喜歡不斷的思考各種問題,有新的事物都會想去學習嘗試 做實驗並熱衷研究 沒有所謂頂天的技術 只有謙虛及不斷的學習 精進專業,本站主要以分享系統及網路相關知識、資源而建立。 Github http://stnet253.github.io

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *

這個網站採用 Akismet 服務減少垃圾留言。進一步了解 Akismet 如何處理網站訪客的留言資料