35 lines
895 B
YAML
35 lines
895 B
YAML
|
{{- if index .Values.ocShared.enabled }}
|
||
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
labels:
|
||
|
app: oc-shared
|
||
|
name: {{ .Release.Name }}-oc-shared
|
||
|
spec:
|
||
|
replicas: 1
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app: oc-shared
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
app: oc-shared
|
||
|
spec:
|
||
|
containers:
|
||
|
- image: "{{ .Values.ocShared.image }}"
|
||
|
name: oc-shared
|
||
|
envFrom:
|
||
|
- configMapRef:
|
||
|
name: opencloud-config
|
||
|
ports:
|
||
|
- name: http
|
||
|
containerPort: 8080
|
||
|
protocol: TCP
|
||
|
resources:
|
||
|
limits:
|
||
|
cpu: "{{ .Values.ocShared.resources.limits.cpu }}"
|
||
|
memory: "{{ .Values.ocShared.resources.limits.memory }}"
|
||
|
requests:
|
||
|
cpu: "{{ .Values.ocShared.resources.requests.cpu }}"
|
||
|
memory: "{{ .Values.ocShared.resources.requests.memory }}"
|
||
|
{{- end }}
|