51 lines
1.4 KiB
YAML
51 lines
1.4 KiB
YAML
{{- if index .Values.ocAuth.enabled }}
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
labels:
|
|
app: oc-auth
|
|
name: {{ .Release.Name }}-oc-auth
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: oc-auth
|
|
strategy: {}
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: oc-auth
|
|
spec:
|
|
volumes:
|
|
- name: public-key-volume
|
|
secret:
|
|
secretName: public-key-secret
|
|
- name: private-key-volume
|
|
secret:
|
|
secretName: private-key-secret
|
|
containers:
|
|
- image: "{{ .Values.ocAuth.image }}"
|
|
name: oc-auth
|
|
#command: ["tail", "-f", "/dev/null"]
|
|
volumeMounts:
|
|
- name: public-key-volume
|
|
mountPath: /keys/public/public.pem
|
|
subPath: public.pem
|
|
- name: private-key-volume
|
|
mountPath: /keys/private/private.pem
|
|
subPath: private.pem
|
|
envFrom:
|
|
- configMapRef:
|
|
name: opencloud-config
|
|
ports:
|
|
- name: http
|
|
containerPort: 8080
|
|
protocol: TCP
|
|
resources:
|
|
limits:
|
|
cpu: "{{ .Values.ocFront.resources.limits.cpu }}"
|
|
memory: "{{ .Values.ocFront.resources.limits.memory }}"
|
|
requests:
|
|
cpu: "{{ .Values.ocFront.resources.requests.cpu }}"
|
|
memory: "{{ .Values.ocFront.resources.requests.memory }}"
|
|
{{- end }} |