Giter VIP home page Giter VIP logo

helm-project's Introduction

Helm Notes

Install Helm client

$brew install kubernetes-helm

Check Helm version

$helm version
  • It shows both client and server version
  • The server is called tiller

Set the cluster context on terminal

$gcloud container clusters get-credentials <cluster_name> --zone <zone> --project <project_name>
$kubectl config get-contexts
$kubectl cluster-info

Helm Init

$helm init
  • installs tiller on kube-system namespace in the current cluster context $kubectl get pods --all-namespaces
  • You can see tiller pod in the list

Give permission to tiller pod in Cluster

  • Step 1 - Create ServiceAccount tiller in kube-system namespace

helm-tiller-serviceaccount.yml

apiVersion: v1
kind: ServiceAccount
metadata:
  name: tiller
  namespace: kube-system
  • Step 2 - Create ClusterRoleBinding tiller

helm-tiller-rolebinding.yml

apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
  name: tiller
subjects:
  - kind: ServiceAccount
    name: tiller
    namespace: kube-system
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: ClusterRole
  name: cluster-admin
  • Step 3 - Run both files
$kubectl apply -f ./helpers/helm-*.yaml

Create a manifest

$helm create <app-name>

e.g. helm create helm-demo

Validate helm templates

$helm lint

Deploy manifest on K8s

$helm install --name myapp helm-demo

Test the container changes

$kubectl get svc,po,deployments
curl http://$(kubectl get svc/helm-demo-service -n pirates -o jsonpath='{.status.loadBalancer.ingress[0].ip}'):9090/demo-service/v1.0/names

Update the manifest

$helm upgrade myapp helm-demo

Rollback the manifest

$helm list
  • It shows the total number of revisions
$helm history <release_name>

e.g. $helm history myapp

Then run,

$helm rollback <release_name> <release_version>

e.g. $helm rollback myapp 1

Delete the manifest on K8s

$ helm ls
$ helm delete helm-demo

helm-project's People

Contributors

vemahendran avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.