k8s helm安装redis
一、helm 安装 redis 通过 helm 安装redis的方法如下: 1[root@testcce-92497 ~]# helm install my-release oci://registry-1.docker.io/bitnamicharts/redis --set global.storageClass=csi-disk 2[root@testcce-92497 ~]# export REDIS_PASSWORD=$(kubectl get secret --namespace default my-release-redis -o jsonpath="{.data.redis-password}" | base64 -d) 3[root@testcce-92497 ~]# echo $REDIS_PASSWORD 4ejL6JhgNNs 5[root@testcce-92497 ~]# kubectl get pods 6NAME READY STATUS RESTARTS AGE 7my-release-redis-master-0 1/1 Running 0 2m41s 8my-release-redis-replicas-0 1/1 Running 0 2m41s 9my-release-redis-replicas-1 1/1 Running 0 100s 10my-release-redis-replicas-2 1/1 Running 0 62s 11[root@testcce-92497 ~]# kubectl get svc 12NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE 13kubernetes ClusterIP 10.247.0.1 <none> 443/TCP 8d 14my-release-redis-headless ClusterIP None <none> 6379/TCP 13m 15my-release-redis-master ClusterIP 10.247.153.87 <none> 6379/TCP 13m 16my-release-redis-replicas ClusterIP 10.247.3.245 <none> 6379/TCP 13m 这里默认安装的是 1 master 3 replicas 架构,这个可以从 artifacthub 网站……