Kubernetes-Helm Charts

  HELM (The package manager for Kubernetes)


Helm is the best way to find, share and use software built for kubernetes

Installation Steps On Ubuntu


 curl https://baltocdn.com/helm/signing.asc | sudo apt-key add -

 sudo apt-get install apt-transport-https --yes

 echo "deb https://baltocdn.com/helm/stable/debian/ all main" | sudo tee /etc/apt/sources.list.d/helm-stable-debian.list

 sudo apt-get update

 sudo apt-get install helm

Verification

 helm version
 helm --help

Add Stable Repository

 helm repo add stable https://kubernetes-charts.storage.googleapis.com/

 helm search repo stable

 helm repo update

 helm install prometheus stable/prometheus-operator

 kubectl --namespace default get pods -l "release=prometheus"


Create Charts

1. Create a chart name it mychart 
         helm create mychart
2. Remove all the files under the template folder
         rm -ifr *
3. Create a Yaml file under template folder

apiVersion: v1
kind: Pod
metadata:
    name: pod20
spec:
   containers:
   - name: c1
     image: nginx

4. Change to home directory

cd /home/ubuntu

5. Install mychart 

    helm install mychart ./mychart

6. list the charts

   helm list

7. List the pods

  pod20 should be created.

Comments

Popular posts from this blog

Terraform

Scrum Master Interview help - Bootcamp

Kubernetes