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

kubectl apply does not work for namespaces #203

Closed
viveksyngh opened this issue May 9, 2022 · 0 comments · Fixed by #204
Closed

kubectl apply does not work for namespaces #203

viveksyngh opened this issue May 9, 2022 · 0 comments · Fixed by #204
Assignees
Milestone

Comments

@viveksyngh
Copy link
Contributor

viveksyngh commented May 9, 2022

With capsule proxy, when we try to create a namespace with kubectl apply it does not work and throws 403 Forbidden error. it does not work as the kubectl first queries the namespace, and that call results in the authorization error.

Steps to produce.

namespace.yaml manifest file

apiVersion: v1
kind: Namespace
metadata:
 name: tnt-yaml

Applying the yaml definition

$ Kubectl apply -f namespace.yaml 

Error from server (Forbidden): error when retrieving current configuration of:
Resource: "/v1, Resource=namespaces", GroupVersionKind: "/v1, Kind=Namespace"
Name: "tnt-yaml", Namespace: ""
from server for: "namespace.yaml": namespaces "tnt-yaml" is forbidden: User "[email protected]" cannot get resource "namespaces" in API group "" in the namespace "tnt-yaml"

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

Successfully merging a pull request may close this issue.

2 participants