ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 120 - DCA discussion

Report
Export

Two development teams in your organization use Kubernetes and want to deploy their applications while ensuring that Kubernetes-specific resources, such as secrets, are grouped together for each application.

Is this a way to accomplish this?

Solution. Create a collection for for each application.

A.

Yes

Answers
A.

Yes

B.

No

Answers
B.

No

Suggested answer: B

Explanation:

= Creating a collection for each application is not a way to accomplish this.A collection is a term used by Ansible to describe a package of related content that can be used to automate the management of Kubernetes resources1. A collection is not a native Kubernetes concept and does not group resources together within the cluster. To group Kubernetes-specific resources, such as secrets, for each application, you need to use namespaces.A namespace is a logical partition of the cluster that allows you to isolate resources and apply policies to them2. You can create a namespace for each application and store the secrets and other resources in that namespace. This way, you can prevent conflicts and limit access to the resources of each application.To create a namespace, you can use the kubectl create namespace command or a yaml file2.To create a secret within a namespace, you can use the kubectl create secret command with the --namespace option or a yaml file with the metadata.namespace field3.Reference:

Kubernetes Collection for Ansible - GitHub

Namespaces | Kubernetes

Secrets | Kubernetes

Managing Secrets using kubectl | Kubernetes

asked 08/11/2024
Mustaqueahmed Ghanchibhai
42 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first