diff --git a/tools/goctl/kube/deployment.tpl b/tools/goctl/kube/deployment.tpl index a36a65e3..879b2397 100644 --- a/tools/goctl/kube/deployment.tpl +++ b/tools/goctl/kube/deployment.tpl @@ -21,11 +21,7 @@ spec: - name: {{.Name}} image: {{.Image}} {{if .ImagePullPolicy}}imagePullPolicy: {{.ImagePullPolicy}} - {{end}}lifecycle: - preStop: - exec: - command: ["sh","-c","sleep 5"] - ports: + {{end}}ports: - containerPort: {{.Port}} readinessProbe: tcpSocket: