How to use HelmChart? #1418
-
Hey, I'm a beginner-level DevOps engineer. I currently understanding the CD part with flux-v2. My Qus is how should I deploy the HelmChart in my cluster? I set up a pod into GitRepository ---
apiVersion: source.toolkit.fluxcd.io/v1beta1
kind: GitRepository
metadata:
name: podinfo
namespace: flux-system
spec:
interval: 30s
ref:
branch: master
url: https://github.com/stefanprodan/podinfo
$ kg gitrepo -n flux-system
NAMESPACE NAME URL READY STATUS AGE
flux-system podinfo https://github.com/stefanprodan/podinfo True Fetched revision: master/deadf87be8deefc43497241a046f1a37f23c6851 13h Then I set up a helm chart from that GitRepository ---
apiVersion: source.toolkit.fluxcd.io/v1beta1
kind: HelmChart
metadata:
name: podinfo-helm
namespace: flux-system
spec:
chart: ./charts/podinfo
sourceRef:
name: podinfo
kind: GitRepository
interval: 5m
$ kg hc -n flux-system
NAME CHART VERSION SOURCE KIND SOURCE NAME READY STATUS AGE
podinfo-helm ./charts/podinfo * GitRepository podinfo True Fetched and packaged revision: 5.2.1 13h Now, How can I create HelpRepo or HelmRelease with this chart?? Please guide me to the right steps If I'm doing wrong here? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The See https://fluxcd.io/docs/guides/helmreleases/#define-a-helm-release for more information. |
Beta Was this translation helpful? Give feedback.
The
HelmChart
is embedded into theHelmRelease
, a bit like how aPod
template in K8s is embedded into aDeployment
.See https://fluxcd.io/docs/guides/helmreleases/#define-a-helm-release for more information.