# Deployment description apiVersion: apps/v1 kind: Deployment metadata: name: minio-deployment namespace: infra-environment labels: app: minio spec: strategy: type: Recreate replicas: 1 selector: matchLabels: app: minio template: metadata: labels: app: minio spec: containers: - name: minio image: minio/minio:RELEASE.2021-07-08T19-43-25Z.hotfix.a37033a46 args: ['server', '/data',] resources: requests: memory: "256Mi" cpu: "100m" limits: memory: "512Mi" cpu: "4" ports: - containerPort: 9000 name: minio-api protocol: TCP volumeMounts: - mountPath: /data name: minio-pv env: - name: MINIO_BROWSER_REDIRECT_URL value: "http://minio.k8s.semprod.local/" # Minio access key and secret key - name: MINIO_ACCESS_KEY value: "miniosuperueberadmin" - name: MINIO_SECRET_KEY value: "tJ3,sU1$hC7}tE3^xM6(eB9%aG1@cO2^" volumes: - name: minio-pv persistentVolumeClaim: claimName: minio-pvc --- # Persistent Volume Claim description apiVersion: v1 kind: PersistentVolumeClaim metadata: name: minio-pvc namespace: infra-environment labels: app: minio spec: storageClassName: longhorn accessModes: - ReadWriteOnce resources: requests: storage: 50Gi --- # Minio Service apiVersion: v1 kind: Service metadata: name: minio-api namespace: infra-environment spec: selector: app: minio ports: - name: minio port: 9000 targetPort: minio-api type: NodePort --- # Ingress description apiVersion: networking.k8s.io/v1beta1 kind: Ingress metadata: name: minio-ingress namespace: infra-environment annotations: kubernetes.io/ingress.class: "traefik" spec: rules: - host: minio-api.k8s.semprod.local http: paths: - path: / backend: serviceName: minio-api servicePort: 9000