minio: expand decommission pools in argocd

expand the tenant (tenant.pools.size) in minio
1.install tenant from appofapps, pool name: pool-0

2.to expand tenant, add pool-1 into application yaml of tenant,check into git repo;
      expand pools were OK.   tenant: it worked.

3.If want to decommission pools, run the following commands.
    #create and login a minio client pod in k8s
    kubectl run minioclient -i -t --image=minio/mc --command -- /bin/sh -c 'echo hello;sleep 3600'
    kubectl exec -i -t -n default minioclient -c minioclient -- sh

    Note that the following commands need to be run in the pod of k8s.
        #minio config
          mc alias set dev4 http://minio.tenant.svc.cluster.local:80 minio minio123 --api s3v4
4. #check the pools status
          mc admin decommission status dev4
         #decommission pool (it will automatically migrate data.)
          mc admin decommission start dev4 http://myminio-pool-1-{0...3}.myminio-hl.tenant.svc.cluster.local/export{0...3}/data

5. delete pool-1 in tenant application yaml,  check into git repo;
        tenant: it worked. ( pool-0 )

apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: tenant
  namespace: argocd
  finalizers:
  - resources-finalizer.argocd.argoproj.io
spec:
  project: default
  source:
    repoURL: 'https://operator.min.io/'
    targetRevision: 5.0.6
    helm:
      parameters:
        - name: 'tenant.pools[0].storageClassName'
          value: cinder
        - name: 'tenant.pools[0].name'
          value: 'pool-0'
        - name: 'tenant.pools[0].servers'
          value: '4'
        - name: 'tenant.pools[0].size'
          value: 4Gi
        - name: 'tenant.pools[0].volumesPerServer'
          value: '4'
#       - name: 'tenant.pools[1].storageClassName'
#         value: cinder
#       - name: 'tenant.pools[1].name'
#         value: 'pool-1'
#       - name: 'tenant.pools[1].servers'
#         value: '4'
#       - name: 'tenant.pools[1].size'
#         value: 6Gi
#       - name: 'tenant.pools[1].volumesPerServer'
#         value: '4'
        - name: tenant.certificate.requestAutoCert
          value: 'false'
        - name: 'tenant.buckets[0].name'
          value: 'artifacts'
        - name: 'tenant.buckets[1].name'
          value: 'test'
    chart: tenant
  destination:
    server: 'https://kubernetes.default.svc'
    namespace: tenant
  syncPolicy:
    automated: {}
    syncOptions:
      - CreateNamespace=true

相关推荐

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-02-11 02:34:01       98 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-02-11 02:34:01       106 阅读
  3. 在Django里面运行非项目文件

    2024-02-11 02:34:01       87 阅读
  4. Python语言-面向对象

    2024-02-11 02:34:01       96 阅读

热门阅读

  1. Linux 命令行的世界 :2.文件系统中跳转

    2024-02-11 02:34:01       53 阅读
  2. c#进程(Process)常用方法

    2024-02-11 02:34:01       41 阅读
  3. Spring框架常见的注解Spring、SpringMVC、SpringBoot)

    2024-02-11 02:34:01       48 阅读
  4. limit深度分页和优化思路

    2024-02-11 02:34:01       58 阅读
  5. 鸿蒙学习-app.json5配置文件

    2024-02-11 02:34:01       53 阅读
  6. 任意IOS16系统iPad/Iphone开启台前调度

    2024-02-11 02:34:01       100 阅读
  7. 速盾:海外服务器用了cdn还是卡怎么办

    2024-02-11 02:34:01       51 阅读
  8. 最大期望算法(EM算法)

    2024-02-11 02:34:01       51 阅读
  9. LInux页高速缓存和页写回

    2024-02-11 02:34:01       51 阅读