Rename frontend to dashboard
This commit is contained in:
parent
603fabf3b7
commit
427f484839
7 changed files with 101 additions and 101 deletions
|
|
@ -54,67 +54,67 @@ spec:
|
|||
{{- include "common.tplvalues.render" (dict "value" .Values.initContainers "context" $) | nindent 8 }}
|
||||
{{- end }}
|
||||
containers:
|
||||
- name: frontend
|
||||
securityContext: {{- toYaml .Values.frontend.containerSecurityContext | nindent 12 }}
|
||||
image: {{ template "frontend.image" . }}
|
||||
- name: dashboard
|
||||
securityContext: {{- toYaml .Values.dashboard.containerSecurityContext | nindent 12 }}
|
||||
image: {{ template "dashboard.image" . }}
|
||||
imagePullPolicy: {{ .Values.image.pullPolicy | quote }}
|
||||
{{- if .Values.frontend.command }}
|
||||
command: {{- include "common.tplvalues.render" (dict "value" .Values.frontend.command "context" $) | nindent 12 }}
|
||||
{{- if .Values.dashboard.command }}
|
||||
command: {{- include "common.tplvalues.render" (dict "value" .Values.dashboard.command "context" $) | nindent 12 }}
|
||||
{{- end }}
|
||||
{{- if .Values.frontend.args }}
|
||||
args: {{- include "common.tplvalues.render" (dict "value" .Values.frontend.args "context" $) | nindent 12 }}
|
||||
{{- if .Values.dashboard.args }}
|
||||
args: {{- include "common.tplvalues.render" (dict "value" .Values.dashboard.args "context" $) | nindent 12 }}
|
||||
{{- end }}
|
||||
env:
|
||||
{{- if .Values.frontend.extraEnvVars }}
|
||||
{{- include "common.tplvalues.render" (dict "value" .Values.frontend.extraEnvVars "context" $) | nindent 12 }}
|
||||
{{- if .Values.dashboard.extraEnvVars }}
|
||||
{{- include "common.tplvalues.render" (dict "value" .Values.dashboard.extraEnvVars "context" $) | nindent 12 }}
|
||||
{{- end }}
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: {{ include "common.names.fullname" . }}
|
||||
{{- if .Values.frontend.extraEnvVarsCM }}
|
||||
{{- if .Values.dashboard.extraEnvVarsCM }}
|
||||
- configMapRef:
|
||||
name: {{ .Values.frontend.extraEnvVarsCM }}
|
||||
name: {{ .Values.dashboard.extraEnvVarsCM }}
|
||||
{{- end }}
|
||||
{{- if .Values.frontend.extraEnvVarsSecret }}
|
||||
{{- if .Values.dashboard.extraEnvVarsSecret }}
|
||||
- secretRef:
|
||||
name: {{ .Values.frontend.extraEnvVarsSecret }}
|
||||
name: {{ .Values.dashboard.extraEnvVarsSecret }}
|
||||
{{- end }}
|
||||
ports:
|
||||
- name: frontend-http
|
||||
- name: dashboard-http
|
||||
containerPort: 80
|
||||
protocol: TCP
|
||||
{{- if .Values.frontend.livenessProbe.enabled }}
|
||||
{{- if .Values.dashboard.livenessProbe.enabled }}
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: frontend-http
|
||||
initialDelaySeconds: {{ .Values.frontend.livenessProbe.initialDelaySeconds }}
|
||||
periodSeconds: {{ .Values.frontend.livenessProbe.periodSeconds }}
|
||||
timeoutSeconds: {{ .Values.frontend.livenessProbe.timeoutSeconds }}
|
||||
successThreshold: {{ .Values.frontend.livenessProbe.successThreshold }}
|
||||
failureThreshold: {{ .Values.frontend.livenessProbe.failureThreshold }}
|
||||
{{- else if .Values.frontend.customLivenessProbe }}
|
||||
livenessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.frontend.customLivenessProbe "context" $) | nindent 12 }}
|
||||
port: dashboard-http
|
||||
initialDelaySeconds: {{ .Values.dashboard.livenessProbe.initialDelaySeconds }}
|
||||
periodSeconds: {{ .Values.dashboard.livenessProbe.periodSeconds }}
|
||||
timeoutSeconds: {{ .Values.dashboard.livenessProbe.timeoutSeconds }}
|
||||
successThreshold: {{ .Values.dashboard.livenessProbe.successThreshold }}
|
||||
failureThreshold: {{ .Values.dashboard.livenessProbe.failureThreshold }}
|
||||
{{- else if .Values.dashboard.customLivenessProbe }}
|
||||
livenessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.dashboard.customLivenessProbe "context" $) | nindent 12 }}
|
||||
{{- end }}
|
||||
{{- if .Values.frontend.readinessProbe.enabled }}
|
||||
{{- if .Values.dashboard.readinessProbe.enabled }}
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: frontend-http
|
||||
initialDelaySeconds: {{ .Values.frontend.readinessProbe.initialDelaySeconds }}
|
||||
periodSeconds: {{ .Values.frontend.readinessProbe.periodSeconds }}
|
||||
timeoutSeconds: {{ .Values.frontend.readinessProbe.timeoutSeconds }}
|
||||
successThreshold: {{ .Values.frontend.readinessProbe.successThreshold }}
|
||||
failureThreshold: {{ .Values.frontend.readinessProbe.failureThreshold }}
|
||||
{{- else if .Values.frontend.customReadinessProbe }}
|
||||
readinessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.frontend.customReadinessProbe "context" $) | nindent 12 }}
|
||||
port: dashboard-http
|
||||
initialDelaySeconds: {{ .Values.dashboard.readinessProbe.initialDelaySeconds }}
|
||||
periodSeconds: {{ .Values.dashboard.readinessProbe.periodSeconds }}
|
||||
timeoutSeconds: {{ .Values.dashboard.readinessProbe.timeoutSeconds }}
|
||||
successThreshold: {{ .Values.dashboard.readinessProbe.successThreshold }}
|
||||
failureThreshold: {{ .Values.dashboard.readinessProbe.failureThreshold }}
|
||||
{{- else if .Values.dashboard.customReadinessProbe }}
|
||||
readinessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.dashboard.customReadinessProbe "context" $) | nindent 12 }}
|
||||
{{- end }}
|
||||
volumeMounts:
|
||||
{{- if .Values.frontend.extraVolumeMounts }}
|
||||
{{- include "common.tplvalues.render" (dict "value" .Values.frontend.extraVolumeMounts "context" $) | nindent 12 }}
|
||||
{{- if .Values.dashboard.extraVolumeMounts }}
|
||||
{{- include "common.tplvalues.render" (dict "value" .Values.dashboard.extraVolumeMounts "context" $) | nindent 12 }}
|
||||
{{- end }}
|
||||
{{- if .Values.frontend.resources }}
|
||||
resources: {{- toYaml .Values.frontend.resources | nindent 12 }}
|
||||
{{- if .Values.dashboard.resources }}
|
||||
resources: {{- toYaml .Values.dashboard.resources | nindent 12 }}
|
||||
{{- end }}
|
||||
- name: backend
|
||||
securityContext: {{- toYaml .Values.backend.containerSecurityContext | nindent 12 }}
|
||||
|
|
|
|||
Reference in a new issue