Skip to content

Instantly share code, notes, and snippets.

@javierav javierav/kubernetes.md
Last active Dec 13, 2018

Embed
What would you like to do?
Kubernetes

Kubernetes

Guía de uso sencilla para gente que está empezando.

Pods

Obtener la lista de pods

$ kubectl -n CLUSTER get pods

Ver el log de un pod

$ kubectl -n CLUSTER logs <my-pod>

Ejecutar Bash dentro de un pod

$ kubectl -n CLUSTER exec -ti <my-pod> bash

Eliminar un pod

$ kubectl -n CLUSTER delete pod <my-pod>

Secrets

Obtener la lista de almacenes de secretos

$ kubectl -n CLUSTER get secrets

Obtener el contenido de un almacén concreto

$ kubectl -n CLUSTER get secret NAME -o yaml
$ echo "SECRET_BASE64" | base64 --decode

Editar el contenido de un almacén concreto

$ echo -n "VARIABLE" | base64 -w 0
$ kubectl -n CLUSTER edit secrets NAME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.