Ultimate cka mock exam 2 Q 4

Problem

Solve this question on: ssh cluster1-controlplane

One application, webpage-server-01, is deployed on the Kubernetes cluster by the Helm tool. Now, the team wants to deploy a new version of the application by replacing the existing one. A new version of the helm chart is given in the /root/new-version directory on the cluster1-controlplane. Validate the chart before installing it on the Kubernetes cluster.

Use the helm command to validate and install the chart. After successfully installing the newer version, uninstall the older version.

Reason for Fail

I didint use --generate-name ,instead I used my custom name as release name like appname-r1.
Any idea why it is wrong?
Is the reviewer only checking --generate-name which I think is not valid though.

I have used another name and I do not think the name is the reason you were marked wrong. It might be helpful if you had screenshots but I’ll let the more experienced folks weigh in on this.

However, as a final note, what I have found though is when I used a name that contained “webpage-server-01” (for example, I thought it was smart to use “webpage-server-01-v2”), the question marked it wrong. lol. So I am really glad you asked this question.

1 Like

I’m not clear what you did that might have been wrong. As @olakunlecrown28 has correctly discerned, the name used doesn’t matter, and you don’t have to use --generate-name. You’d need to add a bit more info (such as what commands you used) for us to figure out why the grader was unhappy.