add deploy
This commit is contained in:
37
deploy/templates/deployment.yaml
Normal file
37
deploy/templates/deployment.yaml
Normal file
@@ -0,0 +1,37 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ .Values.app.fullName }}
|
||||
spec:
|
||||
replicas: {{ .Values.replicas }}
|
||||
revisionHistoryLimit: 10
|
||||
selector:
|
||||
matchLabels:
|
||||
app: {{ .Values.app.fullName }}
|
||||
strategy:
|
||||
rollingUpdate:
|
||||
maxSurge: 25%
|
||||
maxUnavailable: 25%
|
||||
type: RollingUpdate
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: {{ .Values.app.fullName }}
|
||||
spec:
|
||||
imagePullSecrets:
|
||||
- name: {{ .Values.images.pullSecret }}
|
||||
containers:
|
||||
- name: {{ .Values.app.fullName }}
|
||||
env:
|
||||
- name: TZ
|
||||
value: Europe/Moscow
|
||||
- name: PORT
|
||||
value: {{ .Values.app.server.port | quote }}
|
||||
{{- .Values.envs | toYaml | nindent 12 }}
|
||||
|
||||
image: {{ .Values.app.image }}:{{ .Chart.AppVersion }} #"docker-registry.dopcore.com/andrusyakka/urban-couscous:latest"
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: {{ .Values.app.server.port }}
|
||||
protocol: TCP
|
||||
Reference in New Issue
Block a user