-
Notifications
You must be signed in to change notification settings - Fork 93
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
kubectl apply -f doesn't work #369
Comments
I have solved to modify yaml file: `apiVersion: v1
|
x2 :( |
$ wget -q -O - https://github.com/emberstack/kubernetes-reflector/releases/latest/download/reflector.yaml \
| sed -E 's/([[:space:]]*namespace:[[:space:]]*)default/\1kube-system/' \
| kubectl -n kube-system apply -f - Same here. Just workaround with sed, which replaces all $ wget -q -O - https://github.com/emberstack/kubernetes-reflector/releases/latest/download/reflector.yaml \
| sed -E 's/([[:space:]]*namespace:[[:space:]]*)default/\1kube-system/' \
| kubectl -n kube-system apply --dry-run=client -f - Check with dry-run |
Hi,
I'm trying to install the reflector without success on my k8s cluster (v1.27.4).
When I use the following command:
kubectl -n kube-system apply -f https://github.com/emberstack/kubernetes-reflector/releases/latest/download/reflector.yaml
I'll get:
the namespace from the provided object "default" does not match the namespace "kube-system". You must pass '--namespace=default' to perform this operation.
I can install only in the default namespace, but It doesn't work when I deploy my secret with the following annotation:
reflector.v1.k8s.emberstack.com/reflection-allowed: "true"
reflector.v1.k8s.emberstack.com/reflection-allowed-namespaces: "dev-1,dev-2,dev-[0-9]*"
The text was updated successfully, but these errors were encountered: