40 lines
1.2 KiB
YAML
40 lines
1.2 KiB
YAML
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 }}
|
|
- name: USERS_HOST
|
|
value: astra-users.default.svc.cluster.local:8080
|
|
- name: STORE_HOST
|
|
value: astra-file-storage.default.svc.cluster.local:8080
|
|
|
|
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 |