Update args docs, remove command which is too confusing
This commit is contained in:
parent
9829e09f28
commit
ab283812db
|
@ -25,14 +25,16 @@ Set the value web.livenessProbe.path and web.readinessProbe.path to change the U
|
||||||
|
|
||||||
This helm chart will set a "role" environment variable to web, worker, or beat. Your Docker image could read this variable and run the correct command.
|
This helm chart will set a "role" environment variable to web, worker, or beat. Your Docker image could read this variable and run the correct command.
|
||||||
|
|
||||||
Alternatively, set the service.command. For example:
|
Alternatively, set the service.args. For example:
|
||||||
|
|
||||||
```
|
```
|
||||||
web:
|
web:
|
||||||
command:
|
args:
|
||||||
- run_it
|
- run_it
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Remember that Kubernetes "args" are Docker's CMD (or command). Pretty confusing!
|
||||||
|
|
||||||
# Usage
|
# Usage
|
||||||
|
|
||||||
1. Add our Helm chart repo `helm repo add django https://burke-software.gitlab.io/django-helm-chart/`
|
1. Add our Helm chart repo `helm repo add django https://burke-software.gitlab.io/django-helm-chart/`
|
||||||
|
|
|
@ -31,11 +31,8 @@ spec:
|
||||||
{{- toYaml .Values.podSecurityContext | nindent 8 }}
|
{{- toYaml .Values.podSecurityContext | nindent 8 }}
|
||||||
containers:
|
containers:
|
||||||
- name: {{ .Chart.Name }}
|
- name: {{ .Chart.Name }}
|
||||||
{{- if .Values.beat.command }}
|
|
||||||
command: {{ .Values.beat.command }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.beat.args }}
|
{{- if .Values.beat.args }}
|
||||||
args: {{ .Values.beat.args }}
|
args: {{- toYaml .Values.beat.args | nindent 10}}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
securityContext:
|
securityContext:
|
||||||
{{- toYaml .Values.securityContext | nindent 12 }}
|
{{- toYaml .Values.securityContext | nindent 12 }}
|
||||||
|
|
|
@ -32,11 +32,8 @@ spec:
|
||||||
{{- toYaml .Values.podSecurityContext | nindent 8 }}
|
{{- toYaml .Values.podSecurityContext | nindent 8 }}
|
||||||
containers:
|
containers:
|
||||||
- name: {{ .Chart.Name }}
|
- name: {{ .Chart.Name }}
|
||||||
{{- if .Values.web.command }}
|
|
||||||
command: {{ .Values.web.command }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.web.args }}
|
{{- if .Values.web.args }}
|
||||||
args: {{ .Values.web.args }}
|
args: {{- toYaml .Values.web.args | nindent 10}}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
securityContext:
|
securityContext:
|
||||||
{{- toYaml .Values.securityContext | nindent 12 }}
|
{{- toYaml .Values.securityContext | nindent 12 }}
|
||||||
|
|
|
@ -30,11 +30,8 @@ spec:
|
||||||
{{- toYaml .Values.podSecurityContext | nindent 8 }}
|
{{- toYaml .Values.podSecurityContext | nindent 8 }}
|
||||||
containers:
|
containers:
|
||||||
- name: {{ .Chart.Name }}
|
- name: {{ .Chart.Name }}
|
||||||
{{- if .Values.worker.command }}
|
|
||||||
command: {{ .Values.worker.command }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.worker.args }}
|
{{- if .Values.worker.args }}
|
||||||
args: {{ .Values.worker.args }}
|
args: {{- toYaml .Values.worker.args | nindent 10}}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
securityContext:
|
securityContext:
|
||||||
{{- toYaml .Values.securityContext | nindent 12 }}
|
{{- toYaml .Values.securityContext | nindent 12 }}
|
||||||
|
|
Loading…
Reference in a new issue