# Deploys a new Namespace for the MinIO Pod apiVersion:v1 kind:Namespace metadata: name:minio-dev# Change this value if you want a different namespace name labels: name:minio-dev# Change this value to match metadata.name --- # Deploys a new MinIO Pod into the metadata.namespace Kubernetes namespace # # The `spec.containers[0].args` contains the command run on the pod # The `/data` directory corresponds to the `spec.containers[0].volumeMounts[0].mountPath` # That mount path corresponds to a Kubernetes HostPath which binds `/data` to a local drive or volume on the worker node where the pod runs # apiVersion:v1 kind:Pod metadata: labels: app:minio name:minio namespace:minio-dev# Change this value to match the namespace metadata.name spec: containers: -name:minio image:10.0.1.120:8000/ops/minio:RELEASE.2024-06-13T22-53-53Z.fips command: -/bin/bash --c args: -minioserver/data--console-address:9090-address:9091 volumeMounts: -mountPath:/data name:localvolume# Corresponds to the `spec.volumes` Persistent Volume nodeSelector: kubernetes.io/hostname:k8s-master# Specify a node label associated to the Worker Node on which you want to deploy the pod. volumes: -name:localvolume hostPath:# MinIO generally recommends using locally-attached volumes path:/mnt/disk1/data# Specify a path to a local drive or volume on the Kubernetes worker node type:DirectoryOrCreate# The path to the last directory must exist --- apiVersion:v1 kind:Service metadata: name:minio namespace:minio-dev spec: ports: -name:http port:9090 protocol:TCP targetPort:9090 -name:tcp port:9091 protocol:TCP targetPort:9091 selector: app:minio sessionAffinity:None type:NodePort
--- kind:StorageClass apiVersion:storage.k8s.io/v1 metadata: name:csi-s3 provisioner:ch.ctrox.csi.s3-driver parameters: # specify which mounter to use # can be set to rclone, s3fs, goofys or s3backer mounter:goofys # to use an existing bucket, specify it here: # bucket: some-existing-bucket csi.storage.k8s.io/provisioner-secret-name:csi-s3-secret csi.storage.k8s.io/provisioner-secret-namespace:kube-system csi.storage.k8s.io/controller-publish-secret-name:csi-s3-secret csi.storage.k8s.io/controller-publish-secret-namespace:kube-system csi.storage.k8s.io/node-stage-secret-name:csi-s3-secret csi.storage.k8s.io/node-stage-secret-namespace:kube-system csi.storage.k8s.io/node-publish-secret-name:csi-s3-secret csi.storage.k8s.io/node-publish-secret-namespace:kube-system
apiVersion:v1 kind:Secret metadata: namespace:kube-system name:csi-s3-secret stringData: accessKeyID:yXbtu5yTKwRDgOwuRm09 secretAccessKey:hZk0g0gMjTNpYLGswWVpZD1aWy15X1gLViuPxJmQ # For AWS set it to "https://s3.<region>.amazonaws.com" endpoint:http://10.96.38.156:9091 # If not on S3, set it to "" region:"" apiVersion:v1 kind:Secret metadata: namespace:kube-system name:csi-s3-secret stringData: accessKeyID:yXbtu5yTKwRDgOwuRm09 secretAccessKey:hZk0g0gMjTNpYLGswWVpZD1aWy15X1gLViuPxJmQ # For AWS set it to "https://s3.<region>.amazonaws.com" endpoint:http://10.96.38.156:9091 # If not on S3, set it to "" region:""