This file contains 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
# Creates a Pod which sleeps for 1 hour. | |
# | |
# But we can create a shell inside the Pod using the kubectl 'exec' sub-command | |
# kubectl exec -it alpine -- /bin/sh | |
apiVersion: v1 | |
kind: Pod | |
metadata: | |
labels: | |
run: alpine | |
name: alpine |
This file contains 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
apiVersion: v1 | |
kind: Pod | |
metadata: | |
creationTimestamp: null | |
labels: | |
run: k8s-demo | |
name: k8s-demo | |
spec: | |
containers: | |
- image: mjbright/k8s-demo:1 |