Last active
August 8, 2022 22:21
-
-
Save thospfuller/86fcc730ce2d5d36708a7feab4b2f1fb to your computer and use it in GitHub Desktop.
Practice Exam for Certified Kubernetes Application Developer (CKAD) Certification Question 4 Pod Yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# See question 4 from the article entitled "Practice Exam for Certified Kubernetes Application Developer (CKAD) Certification". | |
# | |
# https://matthewpalmer.net/kubernetes-app-developer/articles/ckad-practice-exam.html | |
# | |
# Answered in the article entitled "Answers to Five Kubernetes CKAD Questions (2020)" here: | |
# | |
# https://thospfuller.com/2020/11/09/answers_to_five_kubernetes_ckad_questions_2020/ | |
# | |
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: question-13-pod | |
namespace: ggckad-s4 | |
labels: | |
role: myrole | |
spec: | |
containers: | |
- name: question-thirteen | |
image: kubegoldenguide/question-thirteen | |
ports: | |
- name: web | |
containerPort: 8000 | |
protocol: TCP | |
readinessProbe: | |
httpGet: | |
path: /health | |
port: 8000 | |
initialDelaySeconds: 60 | |
periodSeconds: 5 | |
livenessProbe: | |
httpGet: | |
path: /health | |
port: 8000 | |
initialDelaySeconds: 75 | |
periodSeconds: 10 | |
timeoutSeconds: 5 |
I got the next issue,
Warning Unhealthy 3m19s kubelet Readiness probe failed: Get "http://10.1.0.212:8000/health": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Shouldn't we pull the image from hub.docker.com as per the question and how can we do it?