2021-08-29 12:39:33 +03:00
|
|
|
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
|
2021-10-23 03:05:45 +03:00
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: elastic
|
|
|
|
key: url
|
2021-08-29 12:39:33 +03:00
|
|
|
- name: MINIO_ENDPOINT
|
2021-10-23 03:05:45 +03:00
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: minio
|
|
|
|
key: endpoint
|
2021-08-29 12:39:33 +03:00
|
|
|
- name: MINIO_ACCESS_KEY
|
2021-10-23 03:05:45 +03:00
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: minio
|
|
|
|
key: accessKey
|
2021-08-29 12:39:33 +03:00
|
|
|
- name: MINIO_SECRET_KEY
|
2021-10-23 03:05:45 +03:00
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: minio
|
|
|
|
key: secretKey
|