Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Practice Exam for Certified Kubernetes Application Developer (CKAD) Certification Question 5 Deployment Yaml
# See question 5 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: apps/v1
kind: Deployment
metadata:
name: question-5
namespace: ggckad-s5
labels:
client: user
spec:
replicas: 6
strategy:
type: Recreate
selector:
matchLabels: {
app: revproxy
}
template:
metadata: {
labels: {
app: revproxy
}
}
spec:
containers:
- name: web
#
# We start with nginx:1.7.9 but will cause a rolling update when we change this
# to latest.
#
image: nginx:1.7.9
ports:
- name: web
containerPort: 80
protocol: TCP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment