Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

382
Visualizações
Can I create a Pod in one namespace that uses a Service Account from another Namespace?

I have a pod in namespace Foo and a service account in namespace Bar. Can I run the pod as the service account from the other namespace? Or will the fact that the pod & service account belong to different namespaces block me?

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

No, you cannot. Your pod and service account need to be in the same namespace. As, Service accounts and Pods are namespaced.

As far the k8s doc:

When you create a pod, if you do not specify a service account, it is automatically assigned the default service account in the same namespace. The service account has to exist at the time the pod is created, or it will be rejected.

It is also a logical thing, as they are namespaced object. So they need to be in the same namespace.

You cannot update the service account of an already created pod.

You can see the k8s doc and also this

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda