The current chart with katenarry 3.0.0-rc2
This commit is contained in:
52
chart/templates/server/deployment.yaml
Normal file
52
chart/templates/server/deployment.yaml
Normal file
@@ -0,0 +1,52 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
annotations:
|
||||
katenary.v3/compose-hash: 07a6c3341d6d1030ebf49ee3a618c3296c87ae32
|
||||
katenary.v3/version: develop-628b35d
|
||||
labels:
|
||||
{{- include "website.labels" . | nindent 4 }}
|
||||
katenary.v3/component: server
|
||||
name: '{{ include "website.fullname" . }}-server'
|
||||
spec:
|
||||
replicas: {{ .Values.server.replicas }}
|
||||
selector:
|
||||
matchLabels:
|
||||
{{- include "website.selectorLabels" . | nindent 6 }}
|
||||
katenary.v3/component: server
|
||||
strategy: {}
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
{{- include "website.selectorLabels" . | nindent 8 }}
|
||||
katenary.v3/component: server
|
||||
spec:
|
||||
containers:
|
||||
- image: '{{ tpl .Values.server.repository.image $ }}:{{ tpl .Values.server.repository.tag $ | default "latest" }}'
|
||||
imagePullPolicy: {{ .Values.server.imagePullPolicy }}
|
||||
name: server
|
||||
ports:
|
||||
- containerPort: 80
|
||||
name: http
|
||||
{{- if .Values.server.resources }}
|
||||
resources:
|
||||
{{ .Values.server.resources | toYaml | nindent 10 }}
|
||||
{{- end }}
|
||||
volumeMounts:
|
||||
- mountPath: /usr/share/nginx/html
|
||||
name: dist
|
||||
{{- if .Values.pullSecrets }}
|
||||
imagePullSecrets:
|
||||
{{- .Values.pullSecrets | toYaml | nindent 6 }}
|
||||
{{- end }}
|
||||
{{- if .Values.server.nodeSelector }}
|
||||
nodeSelector:
|
||||
{{- .Values.server.nodeSelector | toYaml | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- if ne .Values.server.serviceAccount "" }}
|
||||
serviceAccountName: {{ .Values.server.serviceAccount | quote }}
|
||||
{{- end }}
|
||||
volumes:
|
||||
- configMap:
|
||||
name: '{{ include "website.fullname" . }}-server-dist'
|
||||
name: dist
|
Reference in New Issue
Block a user