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

error: the namespace from the provided object "kube-system" does not match the namespace "default" #36

Open
glimchb opened this issue Feb 14, 2024 · 0 comments

Comments

@glimchb
Copy link

glimchb commented Feb 14, 2024

from https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/v6.2.2/deploy/kubernetes/snapshot-controller/setup-snapshot-controller.yaml

metadata:
  name: snapshot-controller
  namespace: kube-system

but from

SNAPSHOT_VERSION="v6.2.2" ./scripts/install-snapshot.sh install

+ kubectl apply -f /tmp/tmp.g6inKF778O/snapshot-controller.yaml -n default

resulting in error:

error: the namespace from the provided object "kube-system" does not match the namespace "default". You must pass '--namespace=kube-system' to perform this operation.

this will work

$ SNAPSHOT_VERSION="v6.2.2" ./scripts/install-snapshot.sh install kube-system
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant