Last active
June 26, 2025 13:14
-
-
Save ianhomer/3a2caa89b6febb9968a22e087a59abc8 to your computer and use it in GitHub Desktop.
Bastion in namespace
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create alpine bastion (that will live for a day) | |
kubectl -n my-namespace run bastion --image alpine --command sleep -- 1d | |
# Exec onto bastion - | |
# -i = interactive mode | |
# -t = tty terminal mode | |
kubectl -n my-namespace -it exec bastion -- ash | |
# Delete bastion | |
kubectl -n my-namespace delete pod bastion |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment