75 lines
2 KiB
YAML
75 lines
2 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: unip-controller
|
|
namespace: unip-system-controller
|
|
spec:
|
|
replicas: 1
|
|
strategy:
|
|
type: Recreate
|
|
selector:
|
|
matchLabels:
|
|
app: controller
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: controller
|
|
spec:
|
|
serviceAccountName: controller-sa
|
|
containers:
|
|
- name: controller
|
|
image: platform-reg.stratpro.hse.ru/unified-platform/unip-controller:0.3.7-9c53a08
|
|
imagePullPolicy: Always
|
|
envFrom:
|
|
- secretRef:
|
|
name: argo-cd-credentials
|
|
optional: true
|
|
- secretRef:
|
|
name: pipelines-db-credentials
|
|
- secretRef:
|
|
name: oidc-credentials
|
|
- configMapRef:
|
|
name: controller-cm
|
|
- configMapRef:
|
|
name: databoxes-cm
|
|
- configMapRef:
|
|
name: argo-cd-cm
|
|
optional: true
|
|
- configMapRef:
|
|
name: oidc-cm
|
|
- configMapRef:
|
|
name: datasets-cm
|
|
- configMapRef:
|
|
name: cors-cm
|
|
optional: true
|
|
- name: pipelines
|
|
image: platform-reg.stratpro.hse.ru/unified-platform/unip-controller:0.3.7-9c53a08
|
|
imagePullPolicy: Always
|
|
command: ["/bin/bash"]
|
|
args:
|
|
- -c
|
|
- hypercorn exp_pipeline.api:app -b 0.0.0.0:8001
|
|
envFrom:
|
|
- secretRef:
|
|
name: pipelines-db-credentials
|
|
- configMapRef:
|
|
name: pipelines-cm
|
|
ports:
|
|
- containerPort: 8001
|
|
- name: files
|
|
image: platform-reg.stratpro.hse.ru/unified-platform/unip-controller:0.3.7-9c53a08
|
|
imagePullPolicy: Always
|
|
command: ["/bin/bash"]
|
|
args:
|
|
- -c
|
|
- hypercorn files.api:app -b 0.0.0.0:8000
|
|
envFrom:
|
|
- configMapRef:
|
|
name: files-cm
|
|
ports:
|
|
- containerPort: 8000
|
|
imagePullSecrets:
|
|
#- name: registry-credentials
|
|
- name: registry-credentials-stratpro
|
|
|
|
|