chore(netbox): add healthchecks (#5439)
* chore(netbox): add healthchecks * smooth upgrade
This commit is contained in:
@@ -27,7 +27,7 @@ name: netbox
|
|||||||
sources:
|
sources:
|
||||||
- https://github.com/truecharts/charts/tree/master/charts/incubator/netbox
|
- https://github.com/truecharts/charts/tree/master/charts/incubator/netbox
|
||||||
- https://github.com/netbox-community/netbox-docker
|
- https://github.com/netbox-community/netbox-docker
|
||||||
version: 3.0.12
|
version: 3.0.13
|
||||||
annotations:
|
annotations:
|
||||||
truecharts.org/catagories: |
|
truecharts.org/catagories: |
|
||||||
- network
|
- network
|
||||||
|
|||||||
@@ -30,4 +30,37 @@ volumeMounts:
|
|||||||
- name: configfile
|
- name: configfile
|
||||||
mountPath: /etc/netbox/config/01-config.py
|
mountPath: /etc/netbox/config/01-config.py
|
||||||
subPath: config.py
|
subPath: config.py
|
||||||
|
readinessProbe:
|
||||||
|
exec:
|
||||||
|
command:
|
||||||
|
- /bin/bash
|
||||||
|
- -c
|
||||||
|
- |
|
||||||
|
ps -aux | grep -v grep | grep -q housekeeping || exit 1
|
||||||
|
initialDelaySeconds: {{ .Values.probes.readiness.spec.initialDelaySeconds }}
|
||||||
|
timeoutSeconds: {{ .Values.probes.readiness.spec.timeoutSeconds }}
|
||||||
|
periodSeconds: {{ .Values.probes.readiness.spec.periodSeconds }}
|
||||||
|
failureThreshold: {{ .Values.probes.readiness.spec.failureThreshold }}
|
||||||
|
livenessProbe:
|
||||||
|
exec:
|
||||||
|
command:
|
||||||
|
- /bin/bash
|
||||||
|
- -c
|
||||||
|
- |
|
||||||
|
ps -aux | grep -v grep | grep -q housekeeping || exit 1
|
||||||
|
initialDelaySeconds: {{ .Values.probes.liveness.spec.initialDelaySeconds }}
|
||||||
|
timeoutSeconds: {{ .Values.probes.liveness.spec.timeoutSeconds }}
|
||||||
|
periodSeconds: {{ .Values.probes.liveness.spec.periodSeconds }}
|
||||||
|
failureThreshold: {{ .Values.probes.liveness.spec.failureThreshold }}
|
||||||
|
startupProbe:
|
||||||
|
exec:
|
||||||
|
command:
|
||||||
|
- /bin/bash
|
||||||
|
- -c
|
||||||
|
- |
|
||||||
|
ps -aux | grep -v grep | grep -q housekeeping || exit 1
|
||||||
|
initialDelaySeconds: {{ .Values.probes.startup.spec.initialDelaySeconds }}
|
||||||
|
timeoutSeconds: {{ .Values.probes.startup.spec.timeoutSeconds }}
|
||||||
|
periodSeconds: {{ .Values.probes.startup.spec.periodSeconds }}
|
||||||
|
failureThreshold: {{ .Values.probes.startup.spec.failureThreshold }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|||||||
@@ -29,10 +29,13 @@ volumeMounts:
|
|||||||
- name: configfile
|
- name: configfile
|
||||||
mountPath: /etc/netbox/config/01-config.py
|
mountPath: /etc/netbox/config/01-config.py
|
||||||
subPath: config.py
|
subPath: config.py
|
||||||
{{/*readinessProbe:
|
readinessProbe:
|
||||||
exec:
|
exec:
|
||||||
command:
|
command:
|
||||||
- TODO: find a healthcheck
|
- /bin/bash
|
||||||
|
- -c
|
||||||
|
- |
|
||||||
|
ps -aux | grep -v grep | grep -q rqworker || exit 1
|
||||||
initialDelaySeconds: {{ .Values.probes.readiness.spec.initialDelaySeconds }}
|
initialDelaySeconds: {{ .Values.probes.readiness.spec.initialDelaySeconds }}
|
||||||
timeoutSeconds: {{ .Values.probes.readiness.spec.timeoutSeconds }}
|
timeoutSeconds: {{ .Values.probes.readiness.spec.timeoutSeconds }}
|
||||||
periodSeconds: {{ .Values.probes.readiness.spec.periodSeconds }}
|
periodSeconds: {{ .Values.probes.readiness.spec.periodSeconds }}
|
||||||
@@ -40,7 +43,10 @@ volumeMounts:
|
|||||||
livenessProbe:
|
livenessProbe:
|
||||||
exec:
|
exec:
|
||||||
command:
|
command:
|
||||||
- TODO: find a healthcheck
|
- /bin/bash
|
||||||
|
- -c
|
||||||
|
- |
|
||||||
|
ps -aux | grep -v grep | grep -q rqworker || exit 1
|
||||||
initialDelaySeconds: {{ .Values.probes.liveness.spec.initialDelaySeconds }}
|
initialDelaySeconds: {{ .Values.probes.liveness.spec.initialDelaySeconds }}
|
||||||
timeoutSeconds: {{ .Values.probes.liveness.spec.timeoutSeconds }}
|
timeoutSeconds: {{ .Values.probes.liveness.spec.timeoutSeconds }}
|
||||||
periodSeconds: {{ .Values.probes.liveness.spec.periodSeconds }}
|
periodSeconds: {{ .Values.probes.liveness.spec.periodSeconds }}
|
||||||
@@ -48,9 +54,12 @@ livenessProbe:
|
|||||||
startupProbe:
|
startupProbe:
|
||||||
exec:
|
exec:
|
||||||
command:
|
command:
|
||||||
- TODO: find a healthcheck
|
- /bin/bash
|
||||||
|
- -c
|
||||||
|
- |
|
||||||
|
ps -aux | grep -v grep | grep -q rqworker || exit 1
|
||||||
initialDelaySeconds: {{ .Values.probes.startup.spec.initialDelaySeconds }}
|
initialDelaySeconds: {{ .Values.probes.startup.spec.initialDelaySeconds }}
|
||||||
timeoutSeconds: {{ .Values.probes.startup.spec.timeoutSeconds }}
|
timeoutSeconds: {{ .Values.probes.startup.spec.timeoutSeconds }}
|
||||||
periodSeconds: {{ .Values.probes.startup.spec.periodSeconds }}
|
periodSeconds: {{ .Values.probes.startup.spec.periodSeconds }}
|
||||||
failureThreshold: {{ .Values.probes.startup.spec.failureThreshold }}*/}}
|
failureThreshold: {{ .Values.probes.startup.spec.failureThreshold }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|||||||
@@ -14,13 +14,13 @@ podSecurityContext:
|
|||||||
probes:
|
probes:
|
||||||
liveness:
|
liveness:
|
||||||
type: HTTP
|
type: HTTP
|
||||||
path: /login
|
path: /api
|
||||||
readiness:
|
readiness:
|
||||||
type: HTTP
|
type: HTTP
|
||||||
path: /login
|
path: /api
|
||||||
startup:
|
startup:
|
||||||
type: HTTP
|
type: HTTP
|
||||||
path: /login
|
path: /api
|
||||||
# Gives some time for app to run db migrations
|
# Gives some time for app to run db migrations
|
||||||
initialDelaySeconds: 60
|
initialDelaySeconds: 60
|
||||||
|
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ name: immich
|
|||||||
sources:
|
sources:
|
||||||
- https://github.com/truecharts/charts/tree/master/charts/stable/immich
|
- https://github.com/truecharts/charts/tree/master/charts/stable/immich
|
||||||
- https://github.com/immich-app/immich
|
- https://github.com/immich-app/immich
|
||||||
version: 4.0.11
|
version: 4.0.12
|
||||||
annotations:
|
annotations:
|
||||||
truecharts.org/catagories: |
|
truecharts.org/catagories: |
|
||||||
- media
|
- media
|
||||||
|
|||||||
@@ -1,7 +1,11 @@
|
|||||||
{{/* Define the ml container */}}
|
{{/* Define the ml container */}}
|
||||||
{{- define "immich.ml" -}}
|
{{- define "immich.ml" -}}
|
||||||
image: {{ .Values.imageML.repository }}:{{ .Values.imageML.tag }}
|
{{- if hasKey .Values "imageML" -}} {{/* For smooth upgrade, Remove later*/}}
|
||||||
imagePullPolicy: {{ .Values.imageML.pullPolicy }}
|
{{- $img := .Values.imageML -}}
|
||||||
|
{{- $_ := set .Values "mlImage" (dict "repository" $img.repository "tag" $img.tag "pullPolicy" $img.pullPolicy) -}}
|
||||||
|
{{- end }}
|
||||||
|
image: {{ .Values.mlImage.repository }}:{{ .Values.mlImage.tag }}
|
||||||
|
imagePullPolicy: {{ .Values.mlImage.pullPolicy }}
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsUser: {{ .Values.podSecurityContext.runAsUser }}
|
runAsUser: {{ .Values.podSecurityContext.runAsUser }}
|
||||||
runAsGroup: {{ .Values.podSecurityContext.runAsGroup }}
|
runAsGroup: {{ .Values.podSecurityContext.runAsGroup }}
|
||||||
|
|||||||
@@ -1,7 +1,11 @@
|
|||||||
{{/* Define the proxy container */}}
|
{{/* Define the proxy container */}}
|
||||||
{{- define "immich.proxy" -}}
|
{{- define "immich.proxy" -}}
|
||||||
image: {{ .Values.imageProxy.repository }}:{{ .Values.imageProxy.tag }}
|
{{- if hasKey .Values "imageProxy" -}} {{/* For smooth upgrade, Remove later */}}
|
||||||
imagePullPolicy: {{ .Values.imageProxy.pullPolicy }}
|
{{- $img := .Values.imageProxy -}}
|
||||||
|
{{- $_ := set .Values "proxyImage" (dict "repository" $img.repository "tag" $img.tag "pullPolicy" $img.pullPolicy) -}}
|
||||||
|
{{- end }}
|
||||||
|
image: {{ .Values.proxyImage.repository }}:{{ .Values.proxyImage.tag }}
|
||||||
|
imagePullPolicy: {{ .Values.proxyImage.pullPolicy }}
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsUser: {{ .Values.podSecurityContext.runAsUser }}
|
runAsUser: {{ .Values.podSecurityContext.runAsUser }}
|
||||||
runAsGroup: {{ .Values.podSecurityContext.runAsGroup }}
|
runAsGroup: {{ .Values.podSecurityContext.runAsGroup }}
|
||||||
|
|||||||
@@ -1,7 +1,11 @@
|
|||||||
{{/* Define the web container */}}
|
{{/* Define the web container */}}
|
||||||
{{- define "immich.web" -}}
|
{{- define "immich.web" -}}
|
||||||
image: {{ .Values.imageWeb.repository }}:{{ .Values.imageWeb.tag }}
|
{{- if hasKey .Values "imageWeb" -}} {{/* For smooth upgrade, Remove later */}}
|
||||||
imagePullPolicy: {{ .Values.imageWeb.pullPolicy }}
|
{{- $img := .Values.imageWeb -}}
|
||||||
|
{{- $_ := set .Values "webImage" (dict "repository" $img.repository "tag" $img.tag "pullPolicy" $img.pullPolicy) -}}
|
||||||
|
{{- end }}
|
||||||
|
image: {{ .Values.webImage.repository }}:{{ .Values.webImage.tag }}
|
||||||
|
imagePullPolicy: {{ .Values.webImage.pullPolicy }}
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsUser: {{ .Values.podSecurityContext.runAsUser }}
|
runAsUser: {{ .Values.podSecurityContext.runAsUser }}
|
||||||
runAsGroup: {{ .Values.podSecurityContext.runAsGroup }}
|
runAsGroup: {{ .Values.podSecurityContext.runAsGroup }}
|
||||||
|
|||||||
@@ -3,17 +3,17 @@ image:
|
|||||||
tag: 1.38.2_60@sha256:d1a67c3bd732f8b3fbf6f334b17d053f867ada27cbcbf2e55647dd782abf86e8
|
tag: 1.38.2_60@sha256:d1a67c3bd732f8b3fbf6f334b17d053f867ada27cbcbf2e55647dd782abf86e8
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
imageML:
|
mlImage:
|
||||||
repository: tccr.io/truecharts/immich-ml
|
repository: tccr.io/truecharts/immich-ml
|
||||||
tag: 1.29.5_44@sha256:2df7b6368beb52ff1ffd946aaacc4df21f278b97ee3c592e2021118b3dcb5fec
|
tag: 1.29.5_44@sha256:2df7b6368beb52ff1ffd946aaacc4df21f278b97ee3c592e2021118b3dcb5fec
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
imageWeb:
|
webImage:
|
||||||
repository: tccr.io/truecharts/immich-web
|
repository: tccr.io/truecharts/immich-web
|
||||||
tag: 1.29.5_44@sha256:c17ec4c2a174bac8fc2c58ebaedc7db70600fa2480695cf0920d54127c8bb32e
|
tag: 1.29.5_44@sha256:c17ec4c2a174bac8fc2c58ebaedc7db70600fa2480695cf0920d54127c8bb32e
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
imageProxy:
|
proxyImage:
|
||||||
repository: tccr.io/truecharts/immich-proxy
|
repository: tccr.io/truecharts/immich-proxy
|
||||||
tag: 1.29.5_44@sha256:a4c24a70cc1e1bbbdecc3df371af08528430846709ef22ca16e2a923aa8da509
|
tag: 1.29.5_44@sha256:a4c24a70cc1e1bbbdecc3df371af08528430846709ef22ca16e2a923aa8da509
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|||||||
Reference in New Issue
Block a user