Issue: Validation is failing for one of the questions in the lighting lab

Issue: One of the questions in the lighting lab validation is failing

Details: There is a question on Helm chart in the lightening labs. The validation for that fails even if I try the Solution provided.
The question is about deploying nginx server after adding the Bitnami repository as polar. I have created a chart in the


right namespace with valid details. Still, the validation fails. I am curious to know if it is a glitch or if I am missing something
Attaching the screen shot for the same.

Works for me

kubectl config use-context cluster3
kubectl create ns cd-tool-apd
kubectl config set-context --current --namespace cd-tool-apd
helm repo add polar https://charts.bitnami.com/bitnami
helm repo update
helm pull polar/nginx
ls -l
helm install nginx-server nginx-15.3.3.tgz

1 Like

Thanks for the response

I was missing these two commands

helm repo update
helm pull polar/nginx

Do we always need to update the repo and pull the image before installing? I believe it’s needed only when we want to modify the values Is that correct?

As you can see in my screenshot same version is installed as yours. But still, validation failed.

What was the sequence of commands you used that was causing the lab to mark incorrect?

student-node ~ ➜ kubectl config use-context cluster3
Switched to context “cluster3”.

student-node ~ ➜ helm repo add polar https://charts.bitnami.com/bitnami
WARNING: Kubernetes configuration file is group-readable. This is insecure. Location: /root/.kube/config
WARNING: Kubernetes configuration file is world-readable. This is insecure. Location: /root/.kube/config
“polar” has been added to your repositories

student-node ~ ➜ helm search repo nginx
WARNING: Kubernetes configuration file is group-readable. This is insecure. Location: /root/.kube/config
WARNING: Kubernetes configuration file is world-readable. This is insecure. Location: /root/.kube/config
NAME CHART VERSION APP VERSION DESCRIPTION
polar/nginx 15.3.3 1.25.2 NGINX Open Source is a web server that can be a…
polar/nginx-ingress-controller 9.9.0 1.9.0 NGINX Ingress Controller is an Ingress controll…
polar/nginx-intel 2.1.15 0.4.9 DEPRECATED NGINX Open Source for Intel is a lig…

student-node ~ ➜ k create ns cd-tool-apd
namespace/cd-tool-apd created

student-node ~ ➜ helm install nginx-server polar/nginx -n cd-tool-apd
WARNING: Kubernetes configuration file is group-readable. This is insecure. Location: /root/.kube/config
WARNING: Kubernetes configuration file is world-readable. This is insecure. Location: /root/.kube/config
NAME: nginx-server
LAST DEPLOYED: Thu Oct 12 05:37:37 2023
NAMESPACE: cd-tool-apd
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
CHART NAME: nginx
CHART VERSION: 15.3.3
APP VERSION: 1.25.2

** Please be patient while the chart is being deployed **
NGINX can be accessed through the following DNS name from within your cluster:

nginx-server.cd-tool-apd.svc.cluster.local (port 80)

To access NGINX from outside the cluster, follow the steps below:

  1. Get the NGINX URL by running these commands:

NOTE: It may take a few minutes for the LoadBalancer IP to be available.
Watch the status with: ‘kubectl get svc --namespace cd-tool-apd -w nginx-server’

export SERVICE_PORT=$(kubectl get --namespace cd-tool-apd -o jsonpath="{.spec.ports[0].port}" services nginx-server)
export SERVICE_IP=$(kubectl get svc --namespace cd-tool-apd nginx-server -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
echo "http://${SERVICE_IP}:${SERVICE_PORT}"

student-node ~ ➜ helm ls
WARNING: Kubernetes configuration file is group-readable. This is insecure. Location: /root/.kube/config
WARNING: Kubernetes configuration file is world-readable. This is insecure. Location: /root/.kube/config
NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION

student-node ~ ➜ helm ls -n cd-tool-apd
WARNING: Kubernetes configuration file is group-readable. This is insecure. Location: /root/.kube/config
WARNING: Kubernetes configuration file is world-readable. This is insecure. Location: /root/.kube/config
NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION
nginx-server cd-tool-apd 1 2023-10-12 05:37:37.902369687 +0000 UTC deployed nginx-15.3.3 1.25.2

student-node ~ ➜ k get all -n cd-tool-apd
NAME READY STATUS RESTARTS AGE
pod/nginx-server-78d478c86c-hzr4t 1/1 Running 0 47s

NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
service/nginx-server LoadBalancer 10.104.140.112 80:30736/TCP 47s

NAME READY UP-TO-DATE AVAILABLE AGE
deployment.apps/nginx-server 1/1 1 1 47s

NAME DESIRED CURRENT READY AGE
replicaset.apps/nginx-server-78d478c86c 1 1 1 47s

student-node ~ ➜

It works now, Thanks Alistair!

To silence these warnings,

chmod 600 ~/.kube/config

Do they start after you have done some other question earlier? You shouldn’t be getting them.

Not sure ! :slight_smile: It happened in that setup, Not seen after that