Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

410
Vistas
kubernetes : How to deattach from an attached pod

I have a running pod and I use kubectl attach -ti mypod to give him input.

But then, I would like to "deattach" from my pod and return back to my terminal without terminating my pod. How can I do that?

over 4 years ago · Santiago Trujillo
2 Respuestas
Responde la pregunta

0

From the kubernetes docs:

To detach from the container, you can type the escape sequence Ctrl+P followed by Ctrl+Q.


Update:

Based on feedback from @Abdelghani:

For the record, this does not work if tty is set to false in the container. I didnt find another way to detach other than killing the pod/container.

over 4 years ago · Santiago Trujillo Denunciar

0

You can kill the kubectl attach -it .. process without killing the pod:

host$ kubectl attach -it podname
pod$ do something in pod

Open the other terminal and find your kubectl attach command and then kill it, something like:

host$ ps x | grep "kubectl attach"
> 1234 pts/22   Sl+    0:00 kubectl attach -it podname
host$ kill 1234
over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda