Practice Exam for Certified Kubernetes Application Developer (CKAD) Certification Question 3 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 3 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: alpine-spin | |
# Note the namespace here does not appear in previous examples so | |
# for example one and two we'll need to manually assign it on the | |
# CLI. | |
namespace: ggckad-s2 | |
labels: | |
role: myrole | |
spec: | |
securityContext: | |
fsGroup: 3000 | |
containers: | |
- name: alpine-spin-a | |
securityContext: | |
runAsUser: 1000 | |
image: kubegoldenguide/alpine-spin:1.0.0 | |
ports: | |
- name: web | |
containerPort: 80 | |
protocol: TCP | |
- name: alpine-spin-b | |
securityContext: | |
runAsUser: 2000 | |
image: kubegoldenguide/alpine-spin:1.0.0 | |
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