Welcome to the Linux Foundation Forum!

Lab 3.3 Helm does not create a pod

Hello,

I am having trouble creating a pod in the third lab exercise for the 3rd unit.

Steps I followed:

1) Command: helm create myapp

2) Command: helm install demo myapp
Output:
NAME: demo LAST DEPLOYED: Fri Oct 18 11:10:58 2024 NAMESPACE: default STATUS: deployed REVISION: 1 NOTES: 1. Get the application URL by running these commands: export POD_NAME=$(kubectl get pods --namespace default -l "app.kubernetes.io/name=myapp,app.kubernetes.io/instance=demo" -o jsonpath="{.items[0].metadata.name}") export CONTAINER_PORT=$(kubectl get pod --namespace default $POD_NAME -o jsonpath="{.spec.containers[0].ports[0].containerPort}") echo "Visit http://127.0.0.1:8080 to use your application" kubectl --namespace default port-forward $POD_NAME 8080:$CONTAINER_PORT

3) Command: kubectl get pods
Output: No resources found in default namespace
4) Command: kubectl get deployments -o wide
Output:
NAME READY UP-TO-DATE AVAILABLE AGE CONTAINERS IMAGES SELECTOR demo-myapp 0/1 0 0 49s myapp nginx:1.16.0 app.kubernetes.io/instance=demo,app.kubernetes.io/name=myapp

Steps for diagnostics:

1) I have verified that microk8s is running.

Command : microk8s status
Output:
microk8s is running high-availability: no datastore master nodes: 127.0.0.1:19001 datastore standby nodes: none addons: enabled: dns # (core) CoreDNS ha-cluster # (core) Configure high availability on the current node helm # (core) Helm - the package manager for Kubernetes helm3 # (core) Helm 3 - the package manager for Kubernetes disabled: cert-manager # (core) Cloud native certificate management cis-hardening # (core) Apply CIS K8s hardening community # (core) The community addons repository dashboard # (core) The Kubernetes dashboard gpu # (core) Alias to nvidia add-on host-access # (core) Allow Pods connecting to Host services smoothly hostpath-storage # (core) Storage class; allocates storage from host directory ingress # (core) Ingress controller for external access kube-ovn # (core) An advanced network fabric for Kubernetes mayastor # (core) OpenEBS MayaStor metallb # (core) Loadbalancer for your Kubernetes cluster metrics-server # (core) K8s Metrics Server for API access to service metrics minio # (core) MinIO object storage nvidia # (core) NVIDIA hardware (GPU and network) support observability # (core) A lightweight observability stack for logs, traces and metrics prometheus # (core) Prometheus operator for monitoring and logging rbac # (core) Role-Based Access Control for authorisation registry # (core) Private image registry exposed on localhost:32000 rook-ceph # (core) Distributed Ceph storage using Rook storage # (core) Alias to hostpath-storage add-on, deprecated

2) I checked the status of the deployment:
Command: kubectl logs deployment.apps/demo-myapp
Output: error: watch closed before UntilWithoutRetry timeout

Does anyone have any suggestions as to why I am receiving the timeout error? Thanks.

Best Answer

Categories

Upcoming Training