1 | initial version |
To install a chart identified as development with helmfile, follow these steps:
Ensure you have helmfile installed on your local computer or Kubernetes environment.
Create a new directory for your helmfile deployment file and navigate to it:
mkdir my-helmfile
cd my-helmfile
touch helmfile.yaml
repositories:
- name: myrepo
url: https://myrepo.com/charts/
releases:
- name: mychart-dev
chart: myrepo/mychart
namespace: development
values:
- values-dev.yaml
Here, we're defining a chart named "mychart" from a repository hosted at "https://myrepo.com/charts/". This chart will be deployed in the "development" namespace along with the values defined in "values-dev.yaml".
touch values-dev.yaml
image:
tag: dev
replicas: 2
Here, we're defining an image tag of "dev" and 2 replicas for our chart.
helmfile apply
This will use the configuration defined in helmfile.yaml to install the chart in your Kubernetes environment.
kubectl get pods -n development
This will show you all the pods running in the "development" namespace, including the pods created by your chart.
That's it! You've successfully installed a chart identified as development with helmfile.