mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Update deployments following Helm best practices
- image is set configurable and set to the app version for version control - imagePullPolicy revert earlier changes to flatten hierarchy since helm create uses .Values.image.pullPolicy - update imagePullPolicy to IfNotPresent since this is the default with helm create and fits with our strategy as well. - Source, https://helm.sh/docs/topics/chart_best_practices/pods/
This commit is contained in:
parent
7472a0bc72
commit
4cbe8a2c5a
@ -30,8 +30,8 @@ spec:
|
||||
spec:
|
||||
containers:
|
||||
- name: backend
|
||||
image: humanconnection/nitro-backend:latest
|
||||
imagePullPolicy: {{ .Values.pullPolicy }}
|
||||
image: "{{ .Values.backendImage }}:{{ .Chart.AppVersion }}"
|
||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: {{ .Release.Name }}-configmap
|
||||
|
||||
@ -25,7 +25,7 @@ spec:
|
||||
containers:
|
||||
- name: mailserver
|
||||
image: djfarrelly/maildev
|
||||
imagePullPolicy: {{ .Values.pullPolicy }}
|
||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||
ports:
|
||||
- containerPort: 80
|
||||
- containerPort: 25
|
||||
|
||||
@ -24,7 +24,7 @@ spec:
|
||||
env:
|
||||
- name: HOST
|
||||
value: 0.0.0.0
|
||||
image: humanconnection/maintenance:latest
|
||||
image: "{{ .Values.maintenanceImage }}:{{ .Chart.AppVersion }}"
|
||||
ports:
|
||||
- containerPort: 80
|
||||
imagePullPolicy: Always
|
||||
|
||||
@ -28,8 +28,8 @@ spec:
|
||||
spec:
|
||||
containers:
|
||||
- name: neo4j
|
||||
image: humanconnection/neo4j:0.2.2
|
||||
imagePullPolicy: {{ .Values.pullPolicy }}
|
||||
image: "{{ .Values.neo4jImage }}:{{ .Chart.AppVersion }}"
|
||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||
ports:
|
||||
- containerPort: 7687
|
||||
- containerPort: 7474
|
||||
|
||||
@ -25,7 +25,7 @@ spec:
|
||||
containers:
|
||||
- name: webapp
|
||||
image: humanconnection/nitro-web:0.2.2
|
||||
imagePullPolicy: {{ .Values.pullPolicy }}
|
||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: {{ .Release.Name }}-configmap
|
||||
|
||||
@ -20,7 +20,7 @@ spec:
|
||||
restartPolicy: Never
|
||||
containers:
|
||||
- name: db-migrations-job
|
||||
image: humanconnection/nitro-backend:latest
|
||||
image: "{{ .Values.backendImage }}:{{ .Chart.AppVersion }}"
|
||||
command: ["/bin/sh", "-c", "{{ .Values.dbMigrations }}"]
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
|
||||
@ -6,8 +6,18 @@ commit: 889a7cdd24dda04a139b2b77d626e984d6db6781
|
||||
dbInitializion: "yarn prod:migrate init"
|
||||
# dbMigrations runs the database migrations in a post-upgrade hook.
|
||||
dbMigrations: "yarn prod:migrate up"
|
||||
# pullPolicy indicates when, if ever, pods pull a new image from docker hub.
|
||||
pullPolicy: Always
|
||||
# bakendImage is the docker image for the backend deployment
|
||||
backendImage: humanconnection/nitro-backend
|
||||
# maintenanceImage is the docker image for the maintenance deployment
|
||||
maintenanceImage: humanconnection/maintenance
|
||||
# neo4jImage is the docker image for the neo4j deployment
|
||||
neo4jImage: humanconnection/neo4j
|
||||
# webappImage is the docker image for the webapp deployment
|
||||
webappImage: humanconnection/nitro-web
|
||||
# image configures pullPolicy related to the docker images
|
||||
image:
|
||||
# pullPolicy indicates when, if ever, pods pull a new image from docker hub.
|
||||
pullPolicy: IfNotPresent
|
||||
# letsencryptIssuer is used by cert-manager to set up certificates with the given provider.
|
||||
letsencryptIssuer: "letsencrypt-prod"
|
||||
# neo4jConfig changes any default neo4j config/adds it.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user