ExamGecko
Question list
Search
Search

Question 48 - 5V0-23.20 discussion

Report
Export

A developer is trying to deploy a Kubernetes Application into a namespace within a Supervisor Cluster The deployment must utilize the latest assets that have been pushed into the Registry Service.

What should the developer add to the YAML file to ensure that the deployment is successful?

A.
image: /<namespace>/<image name>:latest
Answers
A.
image: /<namespace>/<image name>:latest
B.
template: <image registry url>/<namespace name>/<image name> : latest
Answers
B.
template: <image registry url>/<namespace name>/<image name> : latest
C.
image: <image registry url>/<namespace name>/<image name>:latest
Answers
C.
image: <image registry url>/<namespace name>/<image name>:latest
D.
template: /<namespace name>/<image name>:latest
Answers
D.
template: /<namespace name>/<image name>:latest
Suggested answer: C

Explanation:

Create an example pod spec with the details about the private registry.

apiVersion: v1

kind: Pod

metadata:

name: <workload-name>

namespace: <kubernetes-namespace>

spec:

containers:

- name: private-reg-container

image: <Registry-IP-Address>/<vsphere-namespace>/<image-name>:<version>

imagePullSecrets:

- name: <registry-secret-name>

Replace <workload-name> with the name of the pod workload.

Replace <kubernetes-namespace> with the Kubernetes namespace in the cluster where the pod will be created. This must be the same Kubernetes namespace where the Registry Service image pull secret is stored in the Tanzu Kubernetes cluster (such as the default namespace).

Replace <Registry-IP-Address> with the IP address for the embedded Harbor Registry instance running on the Supervisor Cluster.

Replace <vsphere-namespace> with the vSphere Namespace where the target Tanzu Kubernetes is provisioned.

Replace <image-name> with an image name of your choice.

Replace <version> with an appropriate version of the image, such as "latest".

Replace <registry-secret-name> with the name of the Registry Service image pull secret that you created previously.

asked 16/09/2024
ola adekanbi
38 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first