TODO App Deployment
Homework Lab
Step 1: Clone the Helm chart from Bitnami's Github repository:
cd "05Helm\5.3 TODO APP"Step 2: Check for and install missing dependencies with helm dep.
helm dep listhelm dep updatehelm dep buildStep 3: Lint the chart with helm lint to ensure it has no errors.
helm lint .Step 4: Deploy the Helm chart with helm install
helm install . my-todo-app --set serviceType=NodePortThis will produce two pods (one for the Node.js service and the other for the MongoDB service). Pay special attention to the NOTES section of the output, as it contains important information to access the application.
Obtain the URL for the Node application
export NODE_PORT=$(kubectl get --namespace default -o jsonpath="{.spec.ports[0].nodePort}" services my-todo-app-mean)export NODE_IP=$(kubectl get nodes --namespace default -o jsonpath="{.items[0].status.addresses[0].address}")echo http://$NODE_IP:$NODE_PORT/Browse to the specified URL and you should see the sample application running.
Verify the Status of HELM Release
helm status my-todo-appNode.js pod up to three copies using the kubectl scale command below
scale it back down to two using the command below
Lets Delete One Pod and Verify
Replace the POD-ID placeholder with an actual pod identifier from the output of the kubectl get pods command.
Verify the new pod is created or not
Balance traffic between pods
Expose the SErvice on a Specfic port on Everynode.
Verify this by checking the details of the service
Perform rolling updates and rollbacks
Upgrade
Check upgrade status
As shown in the output, the application has been upgraded and is now running revision 2.
For example, to roll back to the original version of the application (revision 1), use this command:
check the status
you will see that revision 2 will have been superseded by a copy of revision 1, this time labelled as revision 3.
Delete HELM Release
delete and reinstall the Helm chart at any time, use the helm delete command
View the Deleted HELM Releases
Last updated
Was this helpful?