Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Linux Foundation CKS Exam - Topic 1 Question 14 Discussion

Posted by Jesusita on May 06, 2022 at 12:39 AM

Create a network policy named restrict-np to restrict to pod nginx-test running in namespace testing.

Only allow the following Pods to connect to Pod nginx-test:-

1. pods in the namespace default

2. pods with label version:v1 in any namespace.

Make sure to apply the network policy.

Suggested Answer: A

Get Premium CKS Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
13 comments · newest first
TY
Tyra 1 year ago
I thought network policies only worked within the same namespace?
LE
Lenora 1 year ago
This is a classic use case for network policies!
LE
Lettie 1 year ago
Wait, can we really restrict by labels across namespaces?
AN
Annabelle 1 year ago
Agree, but what about pods in other namespaces?
GE
Georgiann 1 year ago
Sounds straightforward, just need to set the right selectors.
RA
Raymon 1 year ago
I believe we have to specify the pod selector for nginx-test and then set the ingress rules correctly. I hope I remember the syntax right!
LO
Loren 1 year ago
I’m a bit confused about how to apply the network policy after creating it. Do we just use `kubectl apply` with the YAML file?
IE
Iesha 1 year ago
This question feels similar to the practice we did on network policies last week. I think we need to use ingress rules to allow traffic from the specified pods.
VE
Veronika 1 year ago
I think I remember that we need to define the pod selector and namespace selector in the network policy, but I'm not entirely sure how to structure it.
FL
Flo 1 year ago
This seems like a straightforward question about the foundations of delivering great customer service. I'll carefully read through the options and choose the one that best fits the description in the prompt.
GL
Gladys 1 year ago
Hmm, I'm not sure about this. I'll have to review the regulations around transfers to high-risk countries.
PA
Paris 1 year ago
Ah, I see. Terminating and relaunching the instance could also be a good approach, as that would give us a fresh start. I'll have to weigh the pros and cons of each option.
QU
Queen 1 year ago
I'm not totally sure about this one. I know revenue bonds are different from general obligation bonds, but I'm not confident I fully understand the implications for repayment. I'll make an educated guess, but I may need to review this topic again before the exam.
0/2000 characters

Save Cancel