From c5b2875fdd6c00929bdbe92500ef533ec417e1ea Mon Sep 17 00:00:00 2001 From: Jack Jackson Date: Mon, 4 Mar 2024 22:16:36 -0800 Subject: [PATCH] PVC Debug Pod entry --- ...updates-and-dependencies-and-resiliency.md | 1 + blog/content/posts/cloudflare-tunnel-dns.md | 1 + blog/content/posts/grafana-oncall.md | 1 + blog/content/posts/pvc-debug-pod.md | 47 +++++++++++++++++++ blog/content/posts/rebuild-from-scratch.md | 1 + blog/content/posts/secure-docker-registry.md | 1 + blog/content/posts/self-hosted-analytics.md | 1 + blog/content/posts/vpn-on-kubernetes.md | 1 + 8 files changed, 54 insertions(+) create mode 100644 blog/content/posts/pvc-debug-pod.md diff --git a/blog/content/posts/backups-and-updates-and-dependencies-and-resiliency.md b/blog/content/posts/backups-and-updates-and-dependencies-and-resiliency.md index 05a37d6..ee236dd 100644 --- a/blog/content/posts/backups-and-updates-and-dependencies-and-resiliency.md +++ b/blog/content/posts/backups-and-updates-and-dependencies-and-resiliency.md @@ -3,6 +3,7 @@ title: "Backups and Updates and Dependencies and Resiliency" date: 2024-02-18T16:00:00-08:00 tags: - homelab + - k8s - SDLC --- diff --git a/blog/content/posts/cloudflare-tunnel-dns.md b/blog/content/posts/cloudflare-tunnel-dns.md index 6de4043..0b191af 100644 --- a/blog/content/posts/cloudflare-tunnel-dns.md +++ b/blog/content/posts/cloudflare-tunnel-dns.md @@ -3,6 +3,7 @@ title: "Cloudflare Tunnel DNS" date: 2022-08-22T16:05:39-07:00 tags: - homelab + - k8s - meta --- diff --git a/blog/content/posts/grafana-oncall.md b/blog/content/posts/grafana-oncall.md index b7dc945..b05d788 100644 --- a/blog/content/posts/grafana-oncall.md +++ b/blog/content/posts/grafana-oncall.md @@ -3,6 +3,7 @@ title: "Grafana Oncall" date: 2022-09-13T10:52:53-07:00 tags: - homelab + - k8s - observability --- diff --git a/blog/content/posts/pvc-debug-pod.md b/blog/content/posts/pvc-debug-pod.md new file mode 100644 index 0000000..926382d --- /dev/null +++ b/blog/content/posts/pvc-debug-pod.md @@ -0,0 +1,47 @@ +--- +title: "PVC Debug Pod" +date: 2024-03-04T22:05:41-08:00 +tags: + - k8s + +--- +I've been annoyed sufficiently-often by the fact that there is no single `kubectl` command to "_create a pod, and attach a PVC to it_" that I threw together the following script: + +```bash +#!/bin/bash + +set -ex + +# This script assumes the existence and correct configuration of `kubectl` and `fzf`. +# TODO - cool feature would be to grab namespaces with `kubectl get ns` and pipe through `fzf` to select - but, 99% of the time, this'll just be for the current namespace anyway + +PVC_TO_MOUNT=$(kubectl get pvc --no-headers | awk '{print $1}' | fzf) +POD_CREATE_OUTPUT=$(cat < diff --git a/blog/content/posts/self-hosted-analytics.md b/blog/content/posts/self-hosted-analytics.md index 8187716..063de97 100644 --- a/blog/content/posts/self-hosted-analytics.md +++ b/blog/content/posts/self-hosted-analytics.md @@ -3,6 +3,7 @@ title: "Self-Hosted Analytics" date: 2022-08-02T20:23:48-07:00 tags: - homelab + - k8s - meta --- diff --git a/blog/content/posts/vpn-on-kubernetes.md b/blog/content/posts/vpn-on-kubernetes.md index c41c37c..bd7cea0 100644 --- a/blog/content/posts/vpn-on-kubernetes.md +++ b/blog/content/posts/vpn-on-kubernetes.md @@ -3,6 +3,7 @@ title: "VPN on Kubernetes" date: 2022-12-15T22:28:24-08:00 tags: - homelab + - k8s --- I was surprised to find that there's not much discussion of putting Kubernetes pods behind a VPN. Given how useful both tools are, you'd think more people would use them in concert.