ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 24 - CKS discussion

Report
Export

Cluster: qa-cluster

Master node: master Worker node: worker1

You can switch the cluster/configuration context using the following command:

[desk@cli] $ kubectl config use-context qa-cluster

Task:

Create a NetworkPolicy named restricted-policy to restrict access to Pod product running in namespace dev.

Only allow the following Pods to connect to Pod products-service:

1. Pods in the namespace qa

2. Pods with label environment: stage, in any namespace

A.
See the explanation
Answers
A.
See the explanation
Suggested answer: A

Explanation:

Reference: https://kubernetes.io/docs/concepts/services-networking/network-policies/

asked 18/09/2024
Guus Schenkelaars
28 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first