Skip to content

Commit

Permalink
Add lifecycle configuration for main deployment (8gears#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaszkiewicz committed Feb 26, 2023
1 parent b72436d commit c3338bb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ spec:
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
{{- include "n8n.deploymentPodEnvironments" . | nindent 12 }}
lifecycle:
{{- toYaml .Values.lifecycle | nindent 12 }}
ports:
- name: http
containerPort: {{ get .Values.config "port" | default 5678 }}
Expand Down
11 changes: 11 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,17 @@ securityContext:
# runAsNonRoot: true
# runAsUser: 1000

# here you can specify lifecycle hooks - it can be used e.g to easily add packages to the container without building
# your own docker image
lifecycle:
{}

# here's the sample configuration to add mysql-client to the container
#lifecycle:
# postStart:
# exec:
# command: ["/bin/sh", "-c", "apk add mysql-client"]

service:
type: ClusterIP
port: 80
Expand Down

0 comments on commit c3338bb

Please sign in to comment.