startupProbe: Indicates whether the application within the container is started. All other probes are disabled if a startup probe is provided, until it succeeds. If the startup probe fails, the kubelet kills the container, and the container is subjected to its restart policy. If a Container does not provide a startup probe, the default state is Success.
startupProbe:
httpGet:
path: /api/ready
port: 8080
startupProbe:
tcpSocket:
port: 8080
startupProbe:
exec:
command:
- <command>
- <command>
apiVersion: v1
kind: Pod
metadata:
name: simple-webapp
labels:
name: simple-webapp
spec:
containers:
- name: simple-webapp
image: simple-webapp
ports:
- containerPort :8080
startupProbe:
httpGet:
path: /api/ready
port: 8080
initialDelaySeconds: 5
periodSeconds: 1
failureThreashold: 3
apiVersion: v1
kind: Pod
metadata:
name: simple-webapp
labels:
name: simple-webapp
spec:
containers:
- name: simple-webapp
image: simple-webapp
ports:
- containerPort :8080
startupProbe:
tcpSocket:
port: 8080
initialDelaySeconds: 5
periodSeconds: 1
failureThreashold: 3
apiVersion: v1
kind: Pod
metadata:
name: simple-webapp
labels:
name: simple-webapp
spec:
containers:
- name: simple-webapp
image: simple-webapp
ports:
- containerPort :8080
startupProbe:
exec:
command:
- cat
- /app/is_ready
initialDelaySeconds: 5
periodSeconds: 1
failureThreashold: 3