Skip to content

Instantly share code, notes, and snippets.

@thospfuller
Last active August 8, 2022 22:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thospfuller/86fcc730ce2d5d36708a7feab4b2f1fb to your computer and use it in GitHub Desktop.
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
# 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
@Johny-Ch
Copy link

Shouldn't we pull the image from hub.docker.com as per the question and how can we do it?

@SherlockFer
Copy link

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