Update Deployment and statefulSet

This commit is contained in:
na
2024-09-07 01:37:07 +02:00
parent fcb45ec331
commit d2f602bf79
11 changed files with 80 additions and 21 deletions

View File

@@ -0,0 +1,34 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: oc-catalog
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
app: {{ include "mongo-express.name" . }}
template:
metadata:
labels:
app: {{ include "mongo-express.name" . }}
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 }}

View File

@@ -16,3 +16,4 @@ imagePullSecrets:
secret:
usernameKey: mongo-username
passwordKey: mongo-password
secretName: mongo-secret