apiVersion: apps/v1 kind: StatefulSet metadata: namespace: cq-fly-260311 name: helm-minio-fly spec: serviceName: helm-minio-fly replicas: 1 selector: matchLabels: app: helm-minio-fly template: metadata: labels: app: helm-minio-fly spec: imagePullSecrets: - name: harborsecret affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: uavcloud.env operator: In values: - cq-fly-260311 containers: - name: minio image: chongqingshcis-a189ec98.ecis.chongqing-1.cmecloud.cn/cmii/minio:RELEASE.2023-06-02T23-17-26Z command: ["/bin/sh", "-c"] args: - minio server /data --console-address ":9001" ports: - containerPort: 9000 name: api - containerPort: 9001 name: console env: - name: MINIO_ACCESS_KEY value: "cmii" - name: MINIO_SECRET_KEY value: "B#923fC7mk" volumeMounts: - name: data mountPath: /data resources: limits: memory: 1Gi cpu: "1" requests: memory: 200Mi cpu: 200m volumes: - name: data persistentVolumeClaim: claimName: helm-minio-fly # hostPath: # path: /var/lib/docker/minio-pv/ --- apiVersion: v1 kind: Service metadata: name: helm-minio-fly namespace: cq-fly-260311 spec: selector: app: helm-minio-fly ports: - name: api port: 9000 targetPort: 9000 nodePort: 31090 - name: console port: 9001 targetPort: 9001 nodePort: 31091 type: NodePort