Skip to content

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

@glimchb

Description

@glimchb

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions