Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

To install a chart identified as development with helmfile, follow these steps:

  1. Ensure you have helmfile installed on your local computer or Kubernetes environment.

  2. Create a new directory for your helmfile deployment file and navigate to it:

mkdir my-helmfile
cd my-helmfile
  1. Create a new YAML file for your helmfile deployment configuration:
touch helmfile.yaml
  1. Open the helmfile.yaml file in a text editor and define the chart to be deployed. For example:
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".

  1. Create a new YAML file for your chart values:
touch values-dev.yaml
  1. Open the values-dev.yaml file in a text editor and define any necessary configuration variables for your chart. For example:
image:
  tag: dev
replicas: 2

Here, we're defining an image tag of "dev" and 2 replicas for our chart.

  1. Install the chart with helmfile by running the following command:
helmfile apply

This will use the configuration defined in helmfile.yaml to install the chart in your Kubernetes environment.

  1. Verify that the chart has been deployed successfully by running the following command:
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.