28 - CKA exam Q28 with Solution... Kubernetes Network Policy explained

  Рет қаралды 3,152

Infotech With Guru — In time IT insights

Infotech With Guru — In time IT insights

Күн бұрын

CKA exam Q28
We have deployed a pod called web-pod (where port 80 was exposed using service web-pod). Incoming connections (from a pod apicheck) to web-pod service are not working.
Identify and make certain changes on pod apicheck (re-deploy is needed) so that it can access web-pod.
Note: A NetworkPolicy named api-allow was also created as part of the deployment.
Run following commands to create exam like environment:
echo 'kind: NetworkPolicy
apiVersion: networking.k8s.io/v1
metadata:
name: api-allow
spec:
podSelector:
matchLabels:
app: bookstore
role: api
ingress:
from:
podSelector:
matchLabels:
app: bookstore' |tee api-allow.yaml
g apply -f api-allow.yaml
g run web-pod --image nginx --labels app=bookstore,role=api --expose --port 80
g run apicheck --image alpine --labels role=api --command sleep 4800

It's an easy 1: It's an easy 1:
#kubenetes #CKA #DevOps #security #2022 #k8sgoogle
SOLUTION 25
alias g=kubectl
g get netpol
g describe netpol api-allow
g get pods --show-labels
g get svc
g exec -it apicheck -- wget web-pod
g get pods
g edit pod apicheck
g get pods --show-labels
g exec -it apicheck -- wget web-pod

Пікірлер
2 - CKA exam Q2 with Solution... Check and fix given kubeconfig file
3:10
Infotech With Guru — In time IT insights
Рет қаралды 1,7 М.
Kubernetes CKAD Exam - Setup Egress Network Policy
19:21
My Cloud Tutorials
Рет қаралды 2,2 М.
She's very CREATIVE💡💦 #camping #survival #bushcraft #outdoors #lifehack
00:26
Synyptas 4 | Жігіттер сынып қалды| 3 Bolim
19:27
kak budto
Рет қаралды 1,3 МЛН
Mom had to stand up for the whole family!❤️😍😁
00:39
didn't manage to catch the ball #tiktok
00:19
Анастасия Тарасова
Рет қаралды 31 МЛН
Network Policy in Kubernetes - CKA Practice Test
14:15
My Cloud Buddy
Рет қаралды 274
Network Policies in Kubernetes Explained
26:52
Cloud Guru
Рет қаралды 3,8 М.
26 - CKA exam Q26 with Solution...  Kubernetes: Fix a pod, it is not running
5:27
Infotech With Guru — In time IT insights
Рет қаралды 3,7 М.
CKA sample test question 10 - Network Policy
18:20
The Azure guy
Рет қаралды 2 М.
From Zero to CKA Hero: Master the Exam with Payload Pat's Tips!
41:36
She's very CREATIVE💡💦 #camping #survival #bushcraft #outdoors #lifehack
00:26