Skip to content

Instantly share code, notes, and snippets.

View mjbright's full-sized avatar

Mike BRIGHT mjbright

View GitHub Profile
@mjbright
mjbright / shellPod.yaml
Last active April 9, 2020 17:55
Basic Pod definition to get a shell inside a Pod
# 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
@mjbright
mjbright / pod2c.yaml
Last active April 9, 2020 11:27
A simple 2-container Pod definition
apiVersion: v1
kind: Pod
metadata:
creationTimestamp: null
labels:
run: k8s-demo
name: k8s-demo
spec:
containers:
- image: mjbright/k8s-demo:1