push helm Charts and kube Components
This commit is contained in:
5
Helm/oc-mongo-express/Chart.yaml
Normal file
5
Helm/oc-mongo-express/Chart.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
apiVersion: v2
|
||||
name: oc-mongo-express
|
||||
description: A Helm chart for deploying mongo-express
|
||||
version: 0.1.0
|
||||
appVersion: "1.0"
|
||||
12
Helm/oc-mongo-express/templates/service.yaml
Normal file
12
Helm/oc-mongo-express/templates/service.yaml
Normal 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 }}
|
||||
39
Helm/oc-mongo-express/templates/statefulset.yaml
Normal file
39
Helm/oc-mongo-express/templates/statefulset.yaml
Normal file
@@ -0,0 +1,39 @@
|
||||
apiVersion: apps/v1
|
||||
kind: StatefulSet
|
||||
metadata:
|
||||
name: {{ .Release.Name }}-mongo-express
|
||||
labels:
|
||||
app: mongo-express
|
||||
spec:
|
||||
serviceName: "{{ .Release.Name }}-mongo-express"
|
||||
replicas: {{ .Values.replicaCount }}
|
||||
selector:
|
||||
matchLabels:
|
||||
app: mongo-express
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: mongo-express
|
||||
spec:
|
||||
containers:
|
||||
- name: mongo-express
|
||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
||||
ports:
|
||||
- containerPort: {{ .Values.service.targetPort }}
|
||||
env:
|
||||
- name: ME_CONFIG_BASICAUTH_USERNAME
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: mongo-secret
|
||||
key: {{ .Values.secret.usernameKey }}
|
||||
- name: ME_CONFIG_BASICAUTH_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: mongo-secret
|
||||
key: {{ .Values.secret.passwordKey }}
|
||||
imagePullSecrets:
|
||||
{{- if .Values.imagePullSecrets }}
|
||||
{{- range .Values.imagePullSecrets }}
|
||||
- name: {{ .name }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
18
Helm/oc-mongo-express/values.yaml
Normal file
18
Helm/oc-mongo-express/values.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
replicaCount: 1
|
||||
|
||||
image:
|
||||
repository: mongo-express
|
||||
tag: latest
|
||||
pullPolicy: IfNotPresent
|
||||
|
||||
service:
|
||||
port: 8081
|
||||
targetPort: 8081
|
||||
type: NodePort
|
||||
|
||||
imagePullSecrets:
|
||||
- name: my-registry-key
|
||||
|
||||
secret:
|
||||
usernameKey: mongo-username
|
||||
passwordKey: mongo-password
|
||||
Reference in New Issue
Block a user