Skip to content

Instantly share code, notes, and snippets.

View mjbright's full-sized avatar

Mike BRIGHT mjbright

View GitHub Profile
@mjbright
mjbright / etcdctl.fn
Last active November 18, 2025 07:43
Easy access to etcdctl
# Function to simplify use of etcdctl from cp Node
#
# - set POD to the Pod name for etcd on a Node:
# - then try one of the commands:
# etcdctl member list
# etcdctl member list -w table
# etcdctl member list -w table
# etcdctl endpoint health
# etcdctl endpoint status -w table
#
@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