oc-tools/oc-mongo-express-helm/templates/deployment.yaml

35 lines
973 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: oc-catalog
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
app: oc-mongo-express
template:
metadata:
labels:
app: oc-mongo-express
spec:
containers:
- name: mongo-express
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
ports:
- containerPort: {{ .Values.service.port }}
env:
- name: ME_CONFIG_BASICAUTH_USERNAME
valueFrom:
secretKeyRef:
name: {{ .Values.env.secretName }}
key: {{ .Values.env.usernameSecret }}
- name: ME_CONFIG_BASICAUTH_PASSWORD
valueFrom:
secretKeyRef:
name: {{ .Values.env.secretName }}
key: {{ .Values.env.passwordSecret }}
imagePullSecrets:
{{- if .Values.imagePullSecrets }}
{{- toYaml .Values.imagePullSecrets | nindent 8 }}
{{- end }}