Skip to content

Latest commit

 

History

History
81 lines (58 loc) · 2.14 KB

helm_usage.md

File metadata and controls

81 lines (58 loc) · 2.14 KB

Use helm in the devops-toolkit

Prerequisite

Familiar with the kubectl_usage first so we can have the correct k8s integration

Helm document

Some document to help you start with helm

Run with devops-toolkit-cli

Start the container

Navigate to your workspace folder, then run:

devops-toolkit-cli init demo_helm01
devops-toolkit-cli run demo_helm01

# You now in the container terminal. Execute the helm command normally
helm --version

It will mount the workspace code to container and you then can execute desired scripts inside the devops-toolkit container.

Run with Docker command

Note

To use the existing container instead of creating one, use docker exec command instead of docker run

docker exec -it my_devops_toolkit /bin/bash

Common Run Modes

For instructions on common run modes, visit DevOps Toolkit Common Run Mode.

Use case 1: Deploy an application with Helm

docker run --rm --network host -it -v ~/.dtc:/dtc tungbq/devops-toolkit:latest
###############################################
# Now we are in the docker container terminal #
###############################################
# Command to check k8s node
kubectl get nodes
# Deploy with Helm
helm repo add bitnami https://charts.bitnami.com/bitnami
# Make sure we get the latest list of charts
helm repo update
helm install bitnami/mysql --generate-name

Sample Result

Update Complete. ⎈Happy Helming!⎈
root@docker-desktop:~# helm install bitnami/mysql --generate-name
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: mysql-1710654490
LAST DEPLOYED: Sun Mar 17 05:48:12 2024
NAMESPACE: default
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
CHART NAME: mysql
CHART VERSION: 9.23.0
APP VERSION: 8.0.36

Troubleshooting