|NO.Z.00263|——————————|CloudNative|——|KuberNetes&中介軟體容器化及helm.V10|------------------------------------------|中介軟體.v10|redis.v5.0.4|redis自定義賬號密碼|
阿新 • • 發佈:2022-03-31
[CloudNative:KuberNetes&中介軟體容器化及helm.V10] [Applications.KuberNetes] [|DevOps|k8s|中介軟體容器化及Helm|部署RedisOperator|部署redis叢集|叢集擴容與縮容|叢集清理|]
一、redis叢集自定義賬號密碼
### --- 自定義賬號密碼 [root@k8s-master01 redis-cluster-operator]# more deploy/example/custom-password.yaml apiVersion: v1 kind: Secret metadata: annotations: # if your operator run as cluster-scoped, add this annotations redis.kun/scope: cluster-scoped name: mysecret type: Opaque data: password: MWYyZDFlMmU2N2Rm
### --- 檢視賬號密碼;賬號面是經過base64加密的,更改的時候也需要通過base64加密
[root@k8s-master01 redis-cluster-operator]# echo "MWYyZDFlMmU2N2Rm" | base64
TVdZeVpERmxNbVUyTjJSbQo=
### --- 更改密碼為password,先通過base64加密
[root@k8s-master01 redis-cluster-operator]# echo "password" | base64
cGFzc3dvcmQK
### --- 然後更改custom-password.yaml 中的引數 [root@k8s-master01 redis-cluster-operator]# more deploy/example/custom-password.yaml # if your operator run as cluster-scoped, add this annotations redis.kun/scope: cluster-scoped name: mysecret type: Opaque data: password: cGFzc3dvcmQK // 更改密碼引數即可
===============================END===============================
Walter Savage Landor:strove with none,for none was worth my strife.Nature I loved and, next to Nature, Art:I warm'd both hands before the fire of life.It sinks, and I am ready to depart ——W.S.Landor
來自為知筆記(Wiz)