From rancher/k3s/issues/151
As for helm charts, I tried:
apiVersion: k3s.cattle.io/v1 kind: HelmChart metadata: name: redis spec: chart: stable/rediswhich doesn't work for me. I don't get any error output about it either. This doesn't either:
apiVersion: k3s.cattle.io/v1 kind: HelmChart metadata: name: redis namespace: default spec: chart: stable/redisOnly specifiying kube-system seems to work:
apiVersion: k3s.cattle.io/v1 kind: HelmChart metadata: name: redis namespace: kube-system spec: chart: stable/redisEditing this chart to say
defaultresults in it creatingjob.batch/helm-delete-redisto delete redis from cluster.
@dpen2000 it's just not clear from the docs, but the namespace in metadata section is the namespace for the HelmChart CRD resource, so it's probably best to leave kube-system there. The actual namespace where all helm chart resources will reside is set with targetNamespace:
apiVersion: k3s.cattle.io/v1
kind: HelmChart
metadata:
name: rook-operator
namespace: kube-system
spec:
chart: rook-ceph
repo: https://charts.rook.io/stable
targetNamespace: rook-ceph-system
valuesContent: |-
agent:
flexVolumeDirPath: "/var/lib/kubelet/volume-plugins"
Most helpful comment
@dpen2000 it's just not clear from the docs, but the namespace in
metadatasection is the namespace for the HelmChart CRD resource, so it's probably best to leavekube-systemthere. The actual namespace where all helm chart resources will reside is set withtargetNamespace: