chore: remove lifecycle preStop because sh not exist in scratch (#2042)
This commit is contained in:
@@ -21,11 +21,7 @@ spec:
|
|||||||
- name: {{.Name}}
|
- name: {{.Name}}
|
||||||
image: {{.Image}}
|
image: {{.Image}}
|
||||||
{{if .ImagePullPolicy}}imagePullPolicy: {{.ImagePullPolicy}}
|
{{if .ImagePullPolicy}}imagePullPolicy: {{.ImagePullPolicy}}
|
||||||
{{end}}lifecycle:
|
{{end}}ports:
|
||||||
preStop:
|
|
||||||
exec:
|
|
||||||
command: ["sh","-c","sleep 5"]
|
|
||||||
ports:
|
|
||||||
- containerPort: {{.Port}}
|
- containerPort: {{.Port}}
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
tcpSocket:
|
tcpSocket:
|
||||||
|
|||||||
Reference in New Issue
Block a user