--- apiVersion: apps/v1 kind: Deployment metadata: name: minio labels: app.kubernetes.io/name: minio spec: selector: matchLabels: app.kubernetes.io/name: minio strategy: type: Recreate template: metadata: labels: app.kubernetes.io/name: minio spec: containers: - name: minio image: {{ MINIO_DOCKER_REGISTRY }}{{ MINIO_DOCKER_IMAGE_SERVER }} args: ["server", "--address", ":9000", "/data"] env: - name: MINIO_ACCESS_KEY value: "{{ OPENEDX_AWS_ACCESS_KEY }}" - name: MINIO_SECRET_KEY value: "{{ OPENEDX_AWS_SECRET_ACCESS_KEY }}" ports: - containerPort: 9000 volumeMounts: - mountPath: /data name: data volumes: - name: data persistentVolumeClaim: claimName: minio --- apiVersion: apps/v1 kind: Deployment metadata: name: minio-client labels: app.kubernetes.io/name: minio-client spec: selector: matchLabels: app.kubernetes.io/name: minio-client template: metadata: labels: app.kubernetes.io/name: minio-client spec: containers: - name: minio image: {{ MINIO_DOCKER_REGISTRY }}{{ MINIO_DOCKER_IMAGE_CLIENT }} command: ["sh", "-e", "-c"] args: ["while true; do echo 'ready'; sleep 10; done"]