Kubernetes

Create a secret to get a private image from DockerHub and set it in the deployment

kubectl create secret docker-registry regcred --docker-username=<username> --docker-password="<password>" --docker-email=<email> -n <namespace>
spec:
  containers:
    imagePullSecrets:
      - name: regcred

Execute a command in a pod

kubectl -n <namespace> exec -it -c <container> <pod> -- <command>