Skip to content

Instantly share code, notes, and snippets.

View tlawrie's full-sized avatar
Coding up a storm

Tyson Lawrie tlawrie

Coding up a storm
View GitHub Profile
@samsieber
samsieber / export-files-job.yaml
Last active June 9, 2021 03:09 — forked from atheiman/export-files-job.yaml
Generate job artifacts in an initContainer and export the files to workstation afterwards.
# Allows copying of job files to local after execution. Example copy command:
apiVersion: batch/v1
kind: Job
metadata:
name: export-files-job
spec:
template:
metadata:
labels:
@so0k
so0k / kubectl.md
Last active February 19, 2026 16:57
Playing with kubectl output

Kubectl output options

Let's look at some basic kubectl output options.

Our intention is to list nodes (with their AWS InstanceId) and Pods (sorted by node).

We can start with:

kubectl get no