Complete the code to define a TCP liveness probe port.
livenessProbe:
tcpSocket:
port: [1]The TCP probe port is set to 80, which is a common HTTP port used for checking container health.
Complete the code to set the initial delay seconds for the TCP readiness probe.
readinessProbe:
tcpSocket:
port: 3306
initialDelaySeconds: [1]Setting initialDelaySeconds to 10 gives the container time to start before Kubernetes checks readiness.
Fix the error in the TCP liveness probe configuration by completing the missing field.
livenessProbe:
tcpSocket:
port: [1]
periodSeconds: 15The port must be a number, such as 8080, not a protocol name or unrelated string.
Fill both blanks to configure a TCP readiness probe with a timeout and success threshold.
readinessProbe:
tcpSocket:
port: [1]
timeoutSeconds: [2]The port 3306 is for MySQL TCP readiness probe, and timeoutSeconds 5 means the probe waits 5 seconds before timing out.
Fill all three blanks to complete a TCP liveness probe with port, failure threshold, and period seconds.
livenessProbe:
tcpSocket:
port: [1]
failureThreshold: [2]
periodSeconds: [3]Port 8080 is common for web apps, failureThreshold 3 means 3 failed probes before restart, and periodSeconds 10 means probe runs every 10 seconds.