|NO.Z.00264|——————————|CloudNative|——|KuberNetes&中间件容器化及helm.V11|——|中间件.v11|redis.v5.0.4|环境清理|

一、查看custom-config配置文件
### --- custom-config.yaml该文件可以自定义一些它的配置

[root@k8s-master01 redis-cluster-operator]# more deploy/example/custom-config.yaml 
apiVersion: redis.kun/v1alpha1
kind: DistributedRedisCluster
metadata:
  annotations:
    # if your operator run as cluster-scoped, add this annotations
    redis.kun/scope: cluster-scoped
  name: example-distributedrediscluster
spec:
  image: redis:5.0.4-alpine
  masterSize: 3
  clusterReplicas: 1
  config:
    activerehashing: "yes"
    appendfsync: everysec
    appendonly: "yes"
    hash-max-ziplist-entries: "512"
    hash-max-ziplist-value: "64"
    hll-sparse-max-bytes: "3000"
    list-compress-depth: "0"
    maxmemory-policy: noeviction
    maxmemory-samples: "5"
    no-appendfsync-on-rewrite: "no"
    notify-keyspace-events: ""
    set-max-intset-entries: "512"
    slowlog-log-slower-than: "10000"
    slowlog-max-len: "128"
    stop-writes-on-bgsave-error: "yes"
    tcp-keepalive: "0"
    timeout: "0"
    zset-max-ziplist-entries: "128"
    zset-max-ziplist-value: "64"

二、redis-cluster-operator清理
### --- 清理redis-cluster-operator集群

[root@k8s-master01 ~]# cd /root/README/operator-redis/redis-cluster-operator
[root@k8s-master01 redis-cluster-operator]# kubectl delete -f deploy/example/redis.kun_v1alpha1_distributedrediscluster_cr.yaml
distributedrediscluster.redis.kun "example-distributedrediscluster" deleted
[root@k8s-master01 redis-cluster-operator]# kubectl delete -f deploy/cluster/operator.yaml
deployment.apps "redis-cluster-operator" deleted
configmap "redis-admin" deleted
[root@k8s-master01 redis-cluster-operator]# kubectl delete -f deploy/cluster/cluster_role_binding.yaml
clusterrolebinding.rbac.authorization.k8s.io "redis-cluster-operator" deleted
[root@k8s-master01 redis-cluster-operator]# kubectl delete -f deploy/cluster/cluster_role.yaml
clusterrole.rbac.authorization.k8s.io "redis-cluster-operator" deleted
[root@k8s-master01 redis-cluster-operator]# kubectl delete -f deploy/service_account.yaml
serviceaccount "redis-cluster-operator" deleted
[root@k8s-master01 redis-cluster-operator]# kubectl delete -f deploy/crds/redis.kun_redisclusterbackups_crd.yaml
customresourcedefinition.apiextensions.k8s.io "redisclusterbackups.redis.kun" deleted
[root@k8s-master01 redis-cluster-operator]# kubectl delete -f deploy/crds/redis.kun_distributedredisclusters_crd.yaml
customresourcedefinition.apiextensions.k8s.io "distributedredisclusters.redis.kun" deleted

 
 
 
 
 
 
 
 
 

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

 

 

posted on   yanqi_vip  阅读(19)  评论(0编辑  收藏  举报

相关博文:
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· DeepSeek 开源周回顾「GitHub 热点速览」
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

导航

统计

点击右上角即可分享
微信分享提示