This is the config file I used for the Tenant
apiVersion: minio.min.io/v2
kind: Tenant
metadata:
name: minio
labels:
app: minio
annotations:
prometheus.io/path: /minio/prometheus/metrics
prometheus.io/port: "9000"
prometheus.io/scrape: "true"
spec:
image: minio/minio:RELEASE.2021-04-27T23-46-03Z.release.0033eb96
imagePullPolicy: IfNotPresent
credsSecret:
name: minio-creds-secret
pools:
- servers: 1
volumesPerServer: 4
volumeClaimTemplate:
metadata:
name: data
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 10Gi
securityContext:
runAsUser: 1000
runAsGroup: 1000
runAsNonRoot: true
fsGroup: 1000
mountPath: /export
requestAutoCert: false
s3:
bucketDNS: false
certConfig:
commonName: ""
organizationName: []
dnsNames: []
podManagementPolicy: Parallel
serviceMetadata:
minioServiceLabels:
label: minio-svc
minioServiceAnnotations:
v2.min.io: minio-svc
consoleServiceLabels:
label: console-svc
consoleServiceAnnotations:
v2.min.io: console-svc
console:
image: minio/console:v0.6.8
replicas: 2
consoleSecret:
name: console-secret
securityContext:
runAsUser: 1000
runAsGroup: 2000
runAsNonRoot: true
fsGroup: 2000
When I apply the config file, the tenant is created but it keeps waiting for pods to be ready, meanwhile, the pod is running and is ready.
In the k8s Dashboard, when I inspect the pod I get this warning.
0/1 nodes are available: 1 pod has unbound immediate PersistentVolumeClaims.