0
0
Kubernetesdevops~10 mins

Startup probe concept in Kubernetes - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to define a startup probe using an HTTP GET request.

Kubernetes
startupProbe:
  httpGet:
    path: [1]
    port: 8080
Drag options to blanks, or click blank then click option'
A/healthz
B/status
C/ready
D/check
Attempts:
3 left
💡 Hint
Common Mistakes
Using a path without a leading slash
Using an unrelated path like /status
2fill in blank
medium

Complete the code to set the initial delay seconds for the startup probe.

Kubernetes
startupProbe:
  initialDelaySeconds: [1]
Drag options to blanks, or click blank then click option'
A0
B30
C10
D5
Attempts:
3 left
💡 Hint
Common Mistakes
Setting it to 0 which may cause immediate failure
Setting too high causing slow startup detection
3fill in blank
hard

Fix the error in the startup probe configuration by completing the missing field.

Kubernetes
startupProbe:
  tcpSocket:
    port: [1]
Drag options to blanks, or click blank then click option'
Ahttp
Bport
C80
D8080
Attempts:
3 left
💡 Hint
Common Mistakes
Using a string instead of a number
Using an invalid port name
4fill in blank
hard

Fill both blanks to configure a startup probe with an exec command and failure threshold.

Kubernetes
startupProbe:
  exec:
    command:
      - [1]
      - [2]
  failureThreshold: 5
Drag options to blanks, or click blank then click option'
Acat
Bls
C/tmp/startup-ready
D/bin/check-startup
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'ls' which lists directory contents
Using an invalid file path
5fill in blank
hard

Fill all three blanks to create a startup probe with HTTP GET, timeout, and period seconds.

Kubernetes
startupProbe:
  httpGet:
    path: [1]
    port: [2]
  timeoutSeconds: [3]
  periodSeconds: 10
Drag options to blanks, or click blank then click option'
A/startup
B8080
C5
D/healthz
Attempts:
3 left
💡 Hint
Common Mistakes
Using a path that is not a health check
Setting timeoutSeconds higher than periodSeconds