Skip to content

Commit

Permalink
Added kubectl commands
Browse files Browse the repository at this point in the history
  • Loading branch information
dmotte committed Dec 14, 2023
1 parent 9dd22c3 commit fd5b025
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions snippets/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,12 @@ docker run -d --name=sshsrv01 -p2222:22 img-sshsrv01:latest
- `(read -rsp 'Password: ' && echo -e "{\"main\":\"$(echo -n "$REPLY" | base64 -w0)\"}") | podman secret create mypassword -`
- `echo -e "{\"main\":\"$(base64 -w0 < mykey.pem)\"}" | podman secret create mykey -`

## Kubectl

- `kubectl run mypod --image=docker.io/library/debian:12 sleep infinity`
- `kubectl exec -it mypod -- bash`
- `kubectl delete pod/mypod`

## Git Bash (Windows)

- `export MSYS_NO_PATHCONV=1`
Expand Down

0 comments on commit fd5b025

Please sign in to comment.