docs: correct indentations

This commit is contained in:
Chi-En Wu
2020-04-23 09:21:29 +08:00
parent 75e6d18687
commit 7bbf578ee5

View File

@ -23,10 +23,10 @@ To make use of these templates you must define a template that will extend the b
# custom: label # custom: label
# spec: # spec:
# ports: # ports:
# - port: 8080 # - port: 8080
# targetPort: http # targetPort: http
# protocol: TCP # protocol: TCP
# name: http # name: http
{{- end -}} {{- end -}}
``` ```
@ -238,14 +238,14 @@ spec:
template: template:
spec: spec:
containers: containers:
- {{- include "common.container" (append . "mychart.deployment.container") | nindent 10 }} - {{- include "common.container" (append . "mychart.deployment.container") | nindent 8 }}
{{- end -}} {{- end -}}
{{- define "mychart.deployment.container" -}} {{- define "mychart.deployment.container" -}}
## Define overrides for your Container here, e.g. ## Define overrides for your Container here, e.g.
ports: ports:
- name: http - name: http
containerPort: 80 containerPort: 80
protocol: TCP protocol: TCP
livenessProbe: livenessProbe:
httpGet: httpGet:
path: / path: /
@ -270,7 +270,7 @@ image:
securityContext: securityContext:
capabilities: capabilities:
drop: drop:
- ALL - ALL
readOnlyRootFilesystem: true readOnlyRootFilesystem: true
runAsNonRoot: true runAsNonRoot: true
runAsUser: 1000 runAsUser: 1000