mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: Add ability to configure coder container lifecycle hooks in helm chart (#6432)
This commit is contained in:
@@ -55,6 +55,8 @@ spec:
|
|||||||
imagePullPolicy: {{ .Values.coder.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.coder.image.pullPolicy }}
|
||||||
resources:
|
resources:
|
||||||
{{- toYaml .Values.coder.resources | nindent 12 }}
|
{{- toYaml .Values.coder.resources | nindent 12 }}
|
||||||
|
lifecycle:
|
||||||
|
{{- toYaml .Values.coder.lifecycle | nindent 12 }}
|
||||||
env:
|
env:
|
||||||
- name: CODER_HTTP_ADDRESS
|
- name: CODER_HTTP_ADDRESS
|
||||||
value: "0.0.0.0:8080"
|
value: "0.0.0.0:8080"
|
||||||
|
|||||||
@@ -120,6 +120,18 @@ coder:
|
|||||||
# "CODER_TLS_*" environment variables will be set for you.
|
# "CODER_TLS_*" environment variables will be set for you.
|
||||||
secretNames: []
|
secretNames: []
|
||||||
|
|
||||||
|
# coder.lifecycle -- container lifecycle handlers for the Coder container, allowing
|
||||||
|
# for lifecycle events such as postStart and preStop events
|
||||||
|
# See: https://kubernetes.io/docs/tasks/configure-pod-container/attach-handler-lifecycle-event/
|
||||||
|
lifecycle:
|
||||||
|
{}
|
||||||
|
# postStart:
|
||||||
|
# exec:
|
||||||
|
# command: ["/bin/sh", "-c", "echo postStart"]
|
||||||
|
# preStop:
|
||||||
|
# exec:
|
||||||
|
# command: ["/bin/sh","-c","echo preStart"]
|
||||||
|
|
||||||
# coder.resources -- The resources to request for Coder. These are optional
|
# coder.resources -- The resources to request for Coder. These are optional
|
||||||
# and are not set by default.
|
# and are not set by default.
|
||||||
resources:
|
resources:
|
||||||
|
|||||||
Reference in New Issue
Block a user