38 lines
876 B
YAML
38 lines
876 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: main-minio
|
|
namespace: online-back
|
|
spec:
|
|
replicas: 1
|
|
strategy:
|
|
type: Recreate
|
|
selector:
|
|
matchLabels:
|
|
app: main-minio
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: main-minio
|
|
spec:
|
|
containers:
|
|
- name: main-minio
|
|
image: quay.io/minio/minio
|
|
args: ["server", "/storage", "--console-address", ":9093"]
|
|
ports:
|
|
- containerPort: 9000
|
|
- containerPort: 9093
|
|
envFrom:
|
|
- secretRef:
|
|
name: main-minio-secret
|
|
env:
|
|
- name: MINIO_VOLUMES
|
|
value: "/storage"
|
|
volumeMounts:
|
|
- name: minio-storage
|
|
mountPath: /storage
|
|
volumes:
|
|
- name: minio-storage
|
|
persistentVolumeClaim:
|
|
claimName: main-minio-pvc
|