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

251
Visualizações
KOPS reload ssh access key to cluster

I want to restart my Kubernetes access ssh key using commands from this website: https://github.com/kubernetes/kops/blob/master/docs/security.md#ssh-access

so those:

kops delete secret --name <clustername> sshpublickey admin

kops create secret --name <clustername> sshpublickey admin -i ~/.ssh/newkey.pub

kops update cluster --yes

And when I type last command "kops update cluster --yes" I get that error:

completed cluster failed validation: spec.spec.kubeProxy.enabled: Forbidden: kube-router requires kubeProxy to be disabled

Does Anybody have any idea what can I change those secret key without disabling kubeProxy?

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

0

This problem comes from having set

spec:
  networking:
    kuberouter: {}

but not

spec:
  kubeProxy:
    enabled: false

in the cluster spec.

Export the config using kops get -o yaml > myspec.yaml, edit the config according to the error above. Then you can apply the spec using kops replace -f myspec.yaml.

It is considered a best practice to check the above yaml into version control to track any changes done to the cluster configuration.

Once the cluster spec has been amended, the new ssh key should work as well.

over 4 years ago · Santiago Trujillo Relatório

0

What version of kubernetes are you running? If you are running the latests one 1.18.xx the user its not admin but ubuntu. One other thing that you could do is to first edit the cluster and set the spect of kubeproxy to enabled fist . Run kops update cluster and rolling update and then do the secret delete and creation.

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