{"id":17874175,"url":"https://github.com/lazzaretti/helm-demo","last_synced_at":"2025-04-03T00:12:51.921Z","repository":{"id":208690584,"uuid":"721476042","full_name":"Lazzaretti/helm-demo","owner":"Lazzaretti","description":"Demo using Dev Containers; part of the presentation \"An introduction to Helm: A better way to manage your Kubernetes applications\"","archived":false,"fork":false,"pushed_at":"2023-11-22T19:02:50.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-08T14:22:13.428Z","etag":null,"topics":["helm","helmfile"],"latest_commit_sha":null,"homepage":"https://lazzaretti.me/blog/talk-2023-cncf-meetup/","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Lazzaretti.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-21T06:20:35.000Z","updated_at":"2024-03-10T10:19:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"85dd8f72-f678-4cff-8834-346fd908fdb5","html_url":"https://github.com/Lazzaretti/helm-demo","commit_stats":null,"previous_names":["lazzaretti/helm-demo"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lazzaretti%2Fhelm-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lazzaretti%2Fhelm-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lazzaretti%2Fhelm-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lazzaretti%2Fhelm-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Lazzaretti","download_url":"https://codeload.github.com/Lazzaretti/helm-demo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246911469,"owners_count":20853657,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["helm","helmfile"],"created_at":"2024-10-28T11:07:49.741Z","updated_at":"2025-04-03T00:12:51.889Z","avatar_url":"https://github.com/Lazzaretti.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Helm Demo\n\nThis is a Helm demo using Dev Containers.\nIt was created as part of the presentation \"An introduction to Helm: A better way to manage your Kubernetes applications\" at the [Cloud Native Computing Meetup | November 2023](https://www.meetup.com/cloud-native-computing-switzerland/events/291068669/)\n\n## Setup\n\nYou can use DevContainer to run everything inside Docker without installing anything.\nStart the DevContainer either within VS Code or with GitHub Codespaces.\n\n\n* Use the Dev Containers in VS Code: Reopen in Container command from the Command Palette (`F1`, `Ctrl+Shift+P`).\n* [![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/Lazzaretti/helm-demo?quickstart=1)\n\n## Simple nginx Helm chart\n\nLet's deploy a simple nginx http server for [Bitnami](https://artifacthub.io/packages/helm/bitnami/nginx).\n\n### 1. Install with cli\n\n\u003e You can also run this with the script `./demo-1.sh`\n\n```sh\nhelm install hello-world oci://registry-1.docker.io/bitnamicharts/nginx\n```\n\ntest it\n```sh\nkubectl port-forward svc/hello-world-nginx 8000:80\n```\n\n#### Step-by-step: What happened\n\nCheck what we have deployed:\n\n1. Via the web page https://artifacthub.io/packages/helm/bitnami/nginx\n2. Locally\n   \u003e you can also run this with the script `./demo-2.sh`\n   1. Download and unpack the Helm chart\n      `helm pull oci://registry-1.docker.io/bitnamicharts/nginx --untar --untardir out/`\n   2. Inspect the out folder\n      `tree out/ -L 3`\n3. See how it looks after it is rendered\n   \u003e you can also run this with the script `./demo-3.sh`\n   `helm template --output-dir './out' hello-world oci://registry-1.docker.io/bitnamicharts/nginx`\n5. Release\n   `helm install hello-world oci://registry-1.docker.io/bitnamicharts/nginx`\n6. Check the release\n   \u003e you can also run this with the script `./demo-4.sh`\n   `helm ls`\n\n\n### 2. Upgrade \u0026 add parameters\n\n\u003e You can also run this with the script `./demo-10.sh`\n\n```sh\nkubectl get po\nhelm upgrade hello-world oci://registry-1.docker.io/bitnamicharts/nginx --set replicaCount=2\nkubectl get po\nhelm ls\nhelm rollback hello-world\nkubectl get po\n```\n\n### 2. Install with values from file\n\n```sh\nhelm upgrade hello-world oci://registry-1.docker.io/bitnamicharts/nginx -f hello-world-values.yaml\n```\n\n### Show diff\n\n```sh\nhelm plugin install https://github.com/databus23/helm-diff\nhelm diff upgrade hello-world oci://registry-1.docker.io/bitnamicharts/nginx -f hello-world-values.yaml\n```\n\n### Uninstall the chart\n\n```sh\nhelm uninstall hello-world\n```\n\n## Use Helmfile\n\n```sh\nhelmfile apply\n```\n\n## Helm with Terraform\n\n(Make sure to uninstall the old chart first if you haven't done so already: `helm uninstall hello-world`)\n\n```sh\nterraform init\nterraform apply\n```\n\n## Create an own chart\n\n1. The creation of a chart has already been completed; you can achieve this by using `helm create mychart`\n2. `helm install mychart mychart`\n3. `helm ls`\n4. `kubectl get configmap`\n5. `kubectl get configmap mychart-config-map -o yaml`\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flazzaretti%2Fhelm-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flazzaretti%2Fhelm-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flazzaretti%2Fhelm-demo/lists"}