platform/server/upload/kube/deployment.yml
Andrey Platov 2cc2f5c700
k8s deployment use secret
Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
2021-10-23 02:05:45 +02:00

44 lines
1006 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: upload
spec:
replicas: 1
selector:
matchLabels:
app: upload
template:
metadata:
labels:
app: upload
spec:
containers:
- name: app
image: anticrm/upload
ports:
- containerPort: 3000
imagePullPolicy: Always
env:
- name: TRANSACTOR_URL
value: ws://transactor/
- name: ELASTIC_URL
valueFrom:
secretKeyRef:
name: elastic
key: url
- name: MINIO_ENDPOINT
valueFrom:
secretKeyRef:
name: minio
key: endpoint
- name: MINIO_ACCESS_KEY
valueFrom:
secretKeyRef:
name: minio
key: accessKey
- name: MINIO_SECRET_KEY
valueFrom:
secretKeyRef:
name: minio
key: secretKey