Files
LiquidCode_Cluster/liquid-code/templates/Deployments/testing-module-gateway-deployment.yaml

38 lines
1.3 KiB
YAML

{{ if .Values.testingModule.enable }}
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Release.Name }}-testing-module-gateway-deployment
labels:
app: {{ .Release.Name }}-testing-module-gateway
spec:
replicas: 1
selector:
matchLabels:
app: {{ .Release.Name }}-testing-module-gateway
template:
metadata:
labels:
app: {{ .Release.Name }}-testing-module-gateway
annotations:
redeploy-timestamp: "{{ now | unixEpoch }}"
spec:
containers:
- name: {{ .Release.Name }}-testing-module-gateway
image: git.nullptr.top/liquidcode/liquidcode-tester-gateway:latest
imagePullPolicy: Always
ports:
- containerPort: 8080
env:
- name: Workers__Cpp
value: http://{{ .Release.Name }}-testing-module-worker-service:8080
- name: Workers__Java
value: http://{{ .Release.Name }}-testing-module-worker-service:8080
- name: Workers__Kotlin
value: http://{{ .Release.Name }}-testing-module-worker-service:8080
- name: Workers__CSharp
value: http://{{ .Release.Name }}-testing-module-worker-service:8080
- name: Workers__Python
value: http://{{ .Release.Name }}-testing-module-worker-service:8080
{{ end }}