Alias Utiles para configurar en Ubuntu

# Autocomplete
source <(kubectl completion bash)
# kubectl to k
alias k="kubectl"
# Get
alias kgp="kubectl get pod"
alias kgn="kubectl get nodes"
alias kgd="kubectl get deployment"
alias kgs="kubectl get service"
# Describe
alias kdp="kubectl describe pod"
alias kdn="kubectl describe node"
alias kdd="kubectl describe deployment"
alias kds="kubectl describe service"
#Delete
  alias kdelp="kubectl delete pod"
alias kdeln="kubectl delete node"
alias kdeld="kubectl delete deployment"
alias kdels="kubectl delete service"

#Apply
alias kaf="kubectl apply -f"

# Events
alias kge="kubectl get events --sort-by='.metadataCreationstamp' | tail -10"

# dry-run -o yaml
alias droy= "--dry-run -o yaml"

#clear
alias c="clear"

#Pod Template

kubectl run nginx --generator=run-pod/v1  --image=nginx
  ETCDCTL_API=3 etcdctl snapshot save \
--endpoints=https://127.0.0.1:2379 \
--cert=/etc/kubernetes/pki/etcd/server.crt \
--cacert=/etc/kubernetes/pki/etcd/ca.crt \
--key=/etc/kubernetes/pki/etcd/server.key \
 /tmp/snapshot-pre-boot.db

ETCDCTL_API=3 etcdctl snapshot status \
--write-out=table \
 /tmp/snapshot-pre-boot.db

ETCDCTL_API=3 etcdctl snapshot restore \
--endpoints=https://127.0.0.1:2379 \
--cert=/etc/kubernetes/pki/etcd/server.crt \
--cacert=/etc/kubernetes/pki/etcd/ca.crt \
--key=/etc/kubernetes/pki/etcd/server.key \
--data-dir=/var/lib/etcd-from-backup \
--initial-cluster=master=https://127.0.0.1:2380 \
--name=master \
--initial-advertise-peer-urls=https://127.0.0.1:2380 \
--initial-cluster-token=etcd-cluster-1 \
 /tmp/snapshot-pre-boot.db


agregar la linea initial-cluster-token y 
actualizar los mounts de en el yaml 
/var/lib/etcd-from-backup