2026-01-07 16:56:27 +01:00
|
|
|
{{- if index .Values.ocWorkspace.enabled }}
|
|
|
|
|
apiVersion: apps/v1
|
|
|
|
|
kind: Deployment
|
|
|
|
|
metadata:
|
|
|
|
|
labels:
|
|
|
|
|
app: oc-workspace
|
|
|
|
|
name: {{ .Release.Name }}-oc-workspace
|
|
|
|
|
spec:
|
|
|
|
|
replicas: {{ .Values.ocWorkspace.replicas }}
|
|
|
|
|
selector:
|
|
|
|
|
matchLabels:
|
|
|
|
|
app: oc-workspace
|
|
|
|
|
template:
|
|
|
|
|
metadata:
|
|
|
|
|
labels:
|
|
|
|
|
app: oc-workspace
|
|
|
|
|
spec:
|
2026-01-15 15:48:10 +01:00
|
|
|
volumes:
|
|
|
|
|
- name: oc-pem
|
|
|
|
|
secret:
|
|
|
|
|
secretName: oc-peer-pem
|
|
|
|
|
optional: true
|
2026-01-07 16:56:27 +01:00
|
|
|
containers:
|
|
|
|
|
- image: "{{ .Values.ocWorkspace.image }}"
|
|
|
|
|
name: oc-workspace
|
2026-01-15 15:48:10 +01:00
|
|
|
volumeMounts:
|
|
|
|
|
- name: oc-pem
|
|
|
|
|
mountPath: /app/pem
|
|
|
|
|
readOnly: true
|
2026-01-07 16:56:27 +01:00
|
|
|
envFrom:
|
|
|
|
|
- configMapRef:
|
|
|
|
|
name: opencloud-config
|
|
|
|
|
ports:
|
|
|
|
|
- name: http
|
|
|
|
|
containerPort: 8080
|
|
|
|
|
protocol: TCP
|
|
|
|
|
livenessProbe:
|
|
|
|
|
httpGet:
|
|
|
|
|
path: /oc/version
|
|
|
|
|
port: 8080
|
|
|
|
|
initialDelaySeconds: 10
|
|
|
|
|
periodSeconds: 30
|
|
|
|
|
resources:
|
|
|
|
|
limits:
|
|
|
|
|
cpu: "{{ .Values.ocWorkspace.resources.limits.cpu }}"
|
|
|
|
|
memory: "{{ .Values.ocWorkspace.resources.limits.memory }}"
|
|
|
|
|
requests:
|
|
|
|
|
cpu: "{{ .Values.ocWorkspace.resources.requests.cpu }}"
|
|
|
|
|
memory: "{{ .Values.ocWorkspace.resources.requests.memory }}"
|
|
|
|
|
{{- if or (eq .Values.env "prod") (eq .Values.env "staging") }}
|
|
|
|
|
imagePullSecrets:
|
|
|
|
|
- name: regcred
|
|
|
|
|
{{- end }}
|
|
|
|
|
|
|
|
|
|
{{- end }}
|