专属化环境配置minio生命周期
下载minio客户端工具
wget https://dl.min.io/client/mc/release/linux-amd64/mcchmod +x mc./mc --helpcp mc /usr/bin/
配置mc
配置mc./mc config host add minio http://minio-tenant.developer-center.yyuap.io admin 7c94771d-046a-46e7-ad98-31c45d9ec7b5 --api s3v4 #如何找账号密码1、收到查看minio部署所在的命令空间的所有的podkubectl get pods -n minio-default-tenantkubectl get pods -n minio-default-tenant minio-default-tenant-console-74cb7dbc79-g4jbx -oyaml2、通过secret传进容器的kubectl get secret -n minio-default-tenantkubectl get secret -n minio-default-tenant minio-default-tenant-console-secret -o yaml3、然后找到base64加密的用户名和密码4、然后通过echo xxxxx|base64 -d 得到明文的用户名和密码
配置前缀/log/container/c87e2267-1001-4c70-bb2a-ab41f3b81aa3/过期时间是7天
mc ilm add minio/log/container/c87e2267-1001-4c70-bb2a-ab41f3b81aa3/ --expiry-days "7"mc ilm add minio/log/container/datafusion/ --expiry-days "7"mc ilm add minio/log/container/hubble/ --expiry-days "7"mc ilm add minio/log/container/ingress-nginx/ --expiry-days "7"mc ilm add minio/log/container/instana-agent/ --expiry-days "7"mc ilm add minio/log/container/iw-app-access-pre/ --expiry-days "7"mc ilm add minio/log/container/iw-import-pre/ --expiry-days "7"mc ilm add minio/log/container/iw-infer-pre/ --expiry-days "7"mc ilm add minio/log/container/iw-train-pre/–expiry-days "7"mc ilm add minio/log/container/kuboard/ --expiry-days "7"mc ilm add minio/log/container/minio-default-tenant/ --expiry-days "7"mc ilm add minio/log/container/minio-operator/ --expiry-days "7"mc ilm add minio/log/container/monitoring/ --expiry-days "7"mc ilm add minio/log/container/yks/ --expiry-days "7"mc ilm add minio/log/container/yonbip/ --expiry-days "7"mc ilm add minio/log/business/c87e2267-1001-4c70-bb2a-ab41f3b81aa3/ --expiry-days “7”
查看策略
./mc ilm ls minio/log
删除策略
#根据id删除策略./mc ilm rm --id c79r5arrk2b8l8gl18ig minio/log