Giter Club home page Giter Club logo

helm-sample's Introduction

Helm Sample Code

Create a AKS cluster

## Create the resource group
az group create --name MyResourceGroup --location southeastasia

## Create AKS Cluster
## BikeSharingApp need at least 3 nodes to run
az aks create -g MyResourceGroup -n MyAKS --location southeastasia --node-vm-size Standard_DS2_v2 --node-count 1 --disable-rbac --generate-ssh-keys

## Get kubeconfig to local machine in order to use kubectl
az aks get-credentials -g MyResourceGroup -n MyAKS
kubectl get nodes

Deploy Tiller

kubectl -n kube-system create serviceaccount tiller
kubectl create clusterrolebinding tiller --clusterrole cluster-admin --serviceaccount=kube-system:tiller
helm init --service-account tiller

kubectl get pods -n kube-system
NAME                                    READY   STATUS    RESTARTS   AGE
coredns-67fd67489b-2sqzl                1/1     Running   0          9m8s
coredns-67fd67489b-nzvnm                1/1     Running   0          5m19s
coredns-autoscaler-f654c64fd-ts6r8      1/1     Running   0          9m5s
heapster-6d879b9dc8-spmng               2/2     Running   0          5m6s
kube-proxy-2q7vb                        1/1     Running   0          5m53s
kubernetes-dashboard-69bd89c8f7-lr6nq   1/1     Running   1          9m7s
metrics-server-67c75dbf7-qmq4c          1/1     Running   1          9m7s
tiller-deploy-7b659b7fbd-4b2jx          1/1     Running   0          24s
tunnelfront-865c8cff86-nndpg            1/1     Running   0          9m7s

Deploy a jenkins chart

helm fetch stable/jenkins
tar xvf ./jenkins-1.3.3.tagz
kubectl apply -f azure-premium.yaml
kubectl get pvc
helm install --name my-release --set persistence.existingClaim=azure-managed-disk ./jenkins

Tire down

helm delete my-release --purge
az aks delete -g MyResourceGroup -n MyAKS

helm-sample's People

Contributors

ups216 avatar

Watchers

James Cloos 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.