Bird
0
0

Identify the error in this TCP liveness probe configuration: livenessProbe: tcpSocket: port: "eighty" initialDelaySeconds: 5 periodSeconds: 10

medium📝 Debug Q6 of 15
Kubernetes - Health Checks and Probes
Identify the error in this TCP liveness probe configuration: livenessProbe: tcpSocket: port: "eighty" initialDelaySeconds: 5 periodSeconds: 10
AperiodSeconds must be omitted for TCP probes
BinitialDelaySeconds cannot be less than 10
CPort must be an integer, not a string
DtcpSocket cannot be used in livenessProbe
Step-by-Step Solution
Solution:
  1. Step 1: Check port value type

    Port must be a number, not a string like "eighty".
  2. Step 2: Validate other fields

    initialDelaySeconds and periodSeconds are valid; tcpSocket is allowed in livenessProbe.
  3. Final Answer:

    Port must be an integer, not a string -> Option C
  4. Quick Check:

    Port value type = integer required [OK]
Quick Trick: Port must be a number, not text [OK]
Common Mistakes:
  • Using string instead of integer for port
  • Misunderstanding timing fields
  • Thinking tcpSocket is invalid in livenessProbe

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes