Giter Club home page Giter Club logo

helm-example-repo's Introduction

Create helm chart package

Create helm chart

gh repo create --public helm-example-repo
gh repo clone helm-example-repo
cd helm-example-repo

helm create my-app

cat << HELM > my-app/templates/cm.yaml
apiVersion: v1
data:
  nginx.conf: |
    events {
      worker_connections  1024;
    }
    http {
      server {
        listen 80;
        location / {
          return 200 "===============================\n\n   This is your helm deploy!   \n\n===============================\n";
        }
      }
    }
kind: ConfigMap
metadata:
  name: nginx-config
HELM

helm template my-app
helm install --namespace my-app --create-namespace my-app-name my-app

Test helm chart

kubectl get all -n my-app
kubectl exec -it -n my-app my-app-name-69dbd9db6b-qs49x -- apt update
kubectl exec -it -n my-app my-app-name-69dbd9db6b-qs49x -- apt install -y curl
kubectl exec -it -n my-app my-app-name-69dbd9db6b-qs49x -- curl http://localhost
helm uninstall my-app-name -n my-app

Create repo in github pages

git clone https://github.com/gonzaloacosta/helm-example-repo.git
cd helm-example-repo
git checkout -b gh-pages
touch index.yaml
git commit -a -m "add index.yaml"
git push --set-upstream origin gh-pages
helm package my-app
mv my-app-0.1.0.tgz helm-example-repo/
helm repo index helm-example-repo/ --url https://gonzaloacosta.github.io/helm-example-repo
cat helm-example-repo/index.yaml
git add .
git commit -a -m "change index"
git push origin
curl https://gonzaloacosta.github.io/helm-example-repo/index.yaml

Add repo and install helm chart

helm repo add helm-example-repo https://gonzaloacosta.github.io/helm-example-repo
helm install helm-example-repo/my-app --name=my-app-name
kubectl get pods -n my-app

helm-example-repo's People

Watchers

Gonzalo Acosta 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.