Missing permissions to label and annotate oketeto's namespace

Hi,

I am trying to setup a custom domain in my namespace.
First, I am trying to label the namespace and then annotate it as explained in the documentation.
$ kubectl label ns dev.okteto.com/custom-domain=true --overwrite
Error from server (Forbidden): namespaces is forbidden: User “system:serviceaccount:okteto:” cannot patch resource “namespaces” in API group “” in the namespace “”

$ kubectl annotate ns $ns dev.okteto.com/domain= --overwrite
Error from server (Forbidden): namespaces “” is forbidden: User “system:serviceaccount:okteto:” cannot patch resource “namespaces” in API group “” in the namespace “”

is there missing permissions in rbac?

Welcome to the community @Hosam !

Where are you trying to configure this? Is it on Okteto SaaS or Okteto Self-Hosted?

FYI, Setting up a custom domain is only supported on the Scale and Enterprise tiers of Okteto SaaS and in all tiers of Okteto Self-Hosted.

1 Like

Hello @ramiro

Oh yeah, I am using Stater package.
I didn’t notice the custom-domain feature comes with paid package…

I came to this point while I am writing a tuorial for starting a new django project with development environment setup using devcontainer and Okteto.

Here you can check the template repository…

1 Like