0
0
Kubernetesdevops~10 mins

HTTP probe configuration 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 set the HTTP probe path to "/healthz".

Kubernetes
livenessProbe:
  httpGet:
    path: "[1]"
    port: 8080
Drag options to blanks, or click blank then click option'
A/check
B/status
C/healthz
D/ready
Attempts:
3 left
💡 Hint
Common Mistakes
Using a path without a leading slash.
Choosing a path that does not exist in the application.
2fill in blank
medium

Complete the code to set the HTTP probe port to 8080.

Kubernetes
readinessProbe:
  httpGet:
    path: "/ready"
    port: [1]
Drag options to blanks, or click blank then click option'
A8080
B3000
C443
D80
Attempts:
3 left
💡 Hint
Common Mistakes
Using the wrong port number that the application does not listen on.
Confusing HTTP and HTTPS ports.
3fill in blank
hard

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

Kubernetes
livenessProbe:
  httpGet:
    path: "/health"
    port: 8080
  [1]: 5
Drag options to blanks, or click blank then click option'
AtimeoutSeconds
BfailureThreshold
CperiodSeconds
DinitialDelaySeconds
Attempts:
3 left
💡 Hint
Common Mistakes
Using timeoutSeconds instead of initialDelaySeconds for delay.
Omitting the delay causing probe failures on startup.
4fill in blank
hard

Fill both blanks to configure the readiness probe with a 3-second timeout and a 10-second period.

Kubernetes
readinessProbe:
  httpGet:
    path: "/ready"
    port: 8080
  [1]: 3
  [2]: 10
Drag options to blanks, or click blank then click option'
AtimeoutSeconds
BinitialDelaySeconds
CperiodSeconds
DfailureThreshold
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping timeoutSeconds and periodSeconds values.
Using initialDelaySeconds instead of timeoutSeconds.
5fill in blank
hard

Fill all three blanks to configure a liveness probe with a 5-second initial delay, 2-second timeout, and 15-second period.

Kubernetes
livenessProbe:
  httpGet:
    path: "/healthz"
    port: 8080
  [1]: 5
  [2]: 2
  [3]: 15
Drag options to blanks, or click blank then click option'
AinitialDelaySeconds
BtimeoutSeconds
CperiodSeconds
DfailureThreshold
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up the timing fields.
Omitting initialDelaySeconds causing early probe failures.