k8s 部署 minio
文章目录搭建搭建Bitnami Object Storage based on MinIO®官方文档把 bitnami 加入 helm 仓库helm repo add bitnami https://charts.bitnami.com/bitnamihelm repo updatevalues.yamlglobal:storageClass: "nfs-client"auth:rootPassw
Bitnami Object Storage based on MinIO®
把 bitnami 加入 helm 仓库
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo update
values.yaml
global:
storageClass: "nfs-client"
auth:
rootPassword: "njc123456"
ingress:
enabled: true
ingressClassName: nginx
hostname: minio.saas.api.gd-xxx.com
annotations:
nginx.ingress.kubernetes.io/proxy-body-size: 5000M
apiIngress:
enabled: true
ingressClassName: nginx
hostname: shareminioprod.gd-xxx.com
storageClass:使用NFS存储
rootPassword:用户名默认为 admin,密码在这里设定
ingress.enabled:管理后台开启ingress
ingress.ingressClassName:按实际情况填写
ingress.hostname:自定义
ingress.annotations: 配置ingress的注解,加上文件上传大小配置,nginx 默认只有 5 m
apiIngress.enabled:文件浏览开启ingress
apiIngress.ingressClassName:按实际情况填写
apiIngress.hostname:自定义
搭建本地存储可以参考 k8s 安装本地 storageClass
搭建NFS存储可以参考K8S 集群使用 NFS 做 storageclass
部署
helm install minio bitnami/minio -f values.yaml -n component
报错
构建后发现,上传文件大于1M就会报错,原因是ingress默认限制了文件上传大小
解决方案:ingress 配置上传大小,参数是 nginx.ingress.kubernetes.io/proxy-body-size
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
meta.helm.sh/release-name: minio
meta.helm.sh/release-namespace: component
nginx.ingress.kubernetes.io/proxy-body-size: 5000M
creationTimestamp: "2022-05-28T08:37:24Z"
配置 https 证书:https://blog.csdn.net/weixin_42555971/article/details/125459933
更多推荐
所有评论(0)