Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loading Helm manifests without namespace or default fails #196

Closed
erikwilson opened this issue Mar 8, 2019 · 1 comment
Closed

Loading Helm manifests without namespace or default fails #196

erikwilson opened this issue Mar 8, 2019 · 1 comment
Labels
kind/documentation Improvements or additions to documentation

Comments

@erikwilson
Copy link
Contributor

From /issues/151

As for helm charts, I tried:

apiVersion: k3s.cattle.io/v1
kind: HelmChart
metadata:
  name: redis
spec:
  chart: stable/redis

which 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/redis

Only specifiying kube-system seems to work:

apiVersion: k3s.cattle.io/v1
kind: HelmChart
metadata:
  name: redis
  namespace: kube-system
spec:
  chart: stable/redis

Editing this chart to say default results in it creating job.batch/helm-delete-redis to delete redis from cluster.

@epicfilemcnulty
Copy link
Contributor

@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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants