Currently I created Helm chart for my Kubernetes resource and trying to deploy on my remote Kubernetes cluster from my local machine where I configured the helm client and kubectl. I created the Helm chart by using the following command,
helm create my-chart
And after creating I edited the image values in my-chart/values.yaml. Now I need to deploy this docker image on my remote Kubernetes cluster
My confusion
I am new to Helm chart with Kubernetes.
To upgrade/install a helm chart, you can try running helm upgrade --install CHART_NAME --values values.yaml
. This behaves like upsert and deletes any existing resources that need to be modified and creates new resources that reflect your values.yaml
Accessing the service is dependent on how your Helm Chart exposes the service. If your Helm Chart created a ClusterIP-type service, then you can access it within the cluster. If it's exposed as a nodePort/LoadBalancer/Ingress, then you can access it externally. To test ClusterIP services, you can use kubectl port-forward svc/your-service-name 8000:8000
(or some port number mapping applicable to your service). With the port forwarding, you can access the service on localhost:8000
.
Hope this helps!