init: Add Helm charts for oc-mongo, oc-mongo-express, and oc-catalog

This commit is contained in:
na
2024-09-12 11:06:57 +02:00
parent 06c536b691
commit 86304daff7
65 changed files with 1454 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
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 }}

View File

@@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: {{ .Release.Name }}-mongo-express
spec:
selector:
app: mongo-express
ports:
- protocol: TCP
port: {{ .Values.service.port }}
targetPort: {{ .Values.service.targetPort }}
type: {{ .Values.service.type }}