Skip to content

Instantly share code, notes, and snippets.

@ihcsim
Last active February 4, 2020 06:06
Show Gist options
  • Select an option

  • Save ihcsim/3b4af1d43906feb734013c3e2492a1bf to your computer and use it in GitHub Desktop.

Select an option

Save ihcsim/3b4af1d43906feb734013c3e2492a1bf to your computer and use it in GitHub Desktop.
$ kubectl version --short
Client Version: v1.15.0
Server Version: v1.15.3
$ kubectl run nginx --image=nginx --port=80 --generator=run-pod/v1
pod/nginx created
$ kubectl get po
NAME READY STATUS RESTARTS AGE
nginx 1/1 Running 0 6s
$ kubectl exec nginx -- date
Sat Jan 25 18:47:52 UTC 2020
$ kubectl exec -it nginx -- /bin/bash
root@nginx:/#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment