update deployment
This commit is contained in:
@@ -1,2 +1,2 @@
|
|||||||
SERVICE_REPLICAS=3
|
SERVICE_REPLICAS=3
|
||||||
SERVICE_PORT=8080
|
SERVICE_PORT=8080
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
name: astra-api-gateway
|
name: astra-users
|
||||||
appVersion: latest
|
appVersion: latest
|
||||||
description: A Helm chart to deploy app - astra
|
description: A Helm chart to deploy app - astra
|
||||||
|
|
||||||
@@ -16,7 +16,7 @@ type: application
|
|||||||
# This is the chart version. This version number should be incremented each time you make changes
|
# This is the chart version. This version number should be incremented each time you make changes
|
||||||
# to the chart and its templates, including the app version.
|
# to the chart and its templates, including the app version.
|
||||||
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
||||||
version: 0.1.1
|
version: 0.1.0
|
||||||
|
|
||||||
engine: gotpl
|
engine: gotpl
|
||||||
|
|
||||||
|
|||||||
@@ -1,37 +1,39 @@
|
|||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ .Values.app.fullName }}
|
name: {{ .Values.app.fullName }}
|
||||||
spec:
|
spec:
|
||||||
replicas: {{ .Values.replicas }}
|
replicas: {{ .Values.replicas }}
|
||||||
revisionHistoryLimit: 10
|
revisionHistoryLimit: 10
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: {{ .Values.app.fullName }}
|
app: {{ .Values.app.fullName }}
|
||||||
strategy:
|
strategy:
|
||||||
rollingUpdate:
|
rollingUpdate:
|
||||||
maxSurge: 25%
|
maxSurge: 25%
|
||||||
maxUnavailable: 25%
|
maxUnavailable: 25%
|
||||||
type: RollingUpdate
|
type: RollingUpdate
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: {{ .Values.app.fullName }}
|
app: {{ .Values.app.fullName }}
|
||||||
spec:
|
spec:
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
- name: {{ .Values.images.pullSecret }}
|
- name: {{ .Values.images.pullSecret }}
|
||||||
containers:
|
containers:
|
||||||
- name: {{ .Values.app.fullName }}
|
- name: {{ .Values.app.fullName }}
|
||||||
env:
|
env:
|
||||||
- name: TZ
|
- name: TZ
|
||||||
value: Europe/Moscow
|
value: Europe/Moscow
|
||||||
- name: PORT
|
- name: PORT
|
||||||
value: {{ .Values.app.server.port | quote }}
|
value: {{ .Values.app.server.port | quote }}
|
||||||
{{- .Values.envs | toYaml | nindent 12 }}
|
- name: CONNECTION_STRING
|
||||||
|
value: {{ .Values.app.db.connection_string }}
|
||||||
image: {{ .Values.app.image }}:{{ .Chart.AppVersion }} #"docker-registry.dopcore.com/andrusyakka/urban-couscous:latest"
|
{{- .Values.envs | toYaml | nindent 12 }}
|
||||||
imagePullPolicy: Always
|
|
||||||
ports:
|
image: {{ .Values.app.image }}:{{ .Chart.AppVersion }}
|
||||||
- name: http
|
imagePullPolicy: Always
|
||||||
containerPort: {{ .Values.app.server.port }}
|
ports:
|
||||||
|
- name: http
|
||||||
|
containerPort: {{ .Values.app.server.port }}
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
@@ -1,6 +1,8 @@
|
|||||||
app:
|
app:
|
||||||
fullName: ${CI_PROJECT_TITLE}
|
fullName: ${CI_PROJECT_TITLE}
|
||||||
image: docker-registry.dopcore.com/${CI_PROJECT_PATH}
|
image: docker-registry.dopcore.com/${CI_PROJECT_PATH}
|
||||||
|
db:
|
||||||
|
connection_string: ${CONNECTION_STRING}
|
||||||
server:
|
server:
|
||||||
port: ${SERVICE_PORT}
|
port: ${SERVICE_PORT}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user