Update K8S to include an auto generator of values template
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{{- if index .Values.ocShared.enabled }}
|
||||
{{- if .Values.ocShared.enabled }}
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
@@ -6,7 +6,7 @@ metadata:
|
||||
app: oc-shared
|
||||
name: {{ .Release.Name }}-oc-shared
|
||||
spec:
|
||||
replicas: 1
|
||||
replicas: {{ .Values.ocShared.replicas }}
|
||||
selector:
|
||||
matchLabels:
|
||||
app: oc-shared
|
||||
@@ -25,6 +25,12 @@ spec:
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: opencloud-config
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /metrics
|
||||
port: http
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 30
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: 8080
|
||||
|
||||
Reference in New Issue
Block a user