Skip to main content

Usage

Artifact Hub

Install Chart

From Helm Repository

Add the Helm repository:

helm repo add helm-chart https://rishang.github.io/helm-chart/charts
helm repo update

Create a values.yaml

# values.yaml
containers:
- name: demo
image: nginx
imageTag: "latest"

service:
ports:
- port: 80

Install or upgrade the chart:

helm upgrade --install my-component helm-chart/component-chart --values values.yaml

From Local Path

For local installation:

helm install -n my-namespace my-component ./charts/component-chart/

Upgrade Chart

helm upgrade -n my-namespace my-component ./charts/component-chart/

Or from repository:

helm upgrade my-component helm-chart/component-chart --values values.yaml

Delete Chart

helm uninstall -n my-namespace my-component

Use with DevSpace

To use the component chart with DevSpace CLI, add a helm chart deployment to devspace.yaml which defines componentChart: true or references the component chart using the chart options.

deployments:
- name: my-component
helm:
componentChart: true
values:
containers:
- name: mysql
image: "dscr.io/username/mysql"
volumeMounts:
- containerPath: /var/lib/mysql
volume:
name: mysql-data
subPath: /mysql
readOnly: false
volumes:
- name: mysql-data
size: "5Gi"
info

The values for the component chart can be defined in the values section of the deployment directly inside devspace.yaml (see example above).

Deploy the chart using:

devspace deploy