Skip to content

Instantly share code, notes, and snippets.

@JTarasovic
Last active May 13, 2025 17:06
Show Gist options
  • Save JTarasovic/7313e38d71988180ea73dee5aaee322f to your computer and use it in GitHub Desktop.
Save JTarasovic/7313e38d71988180ea73dee5aaee322f to your computer and use it in GitHub Desktop.
static-test-pod
---
apiVersion: v1
kind: Pod
metadata:
annotations:
name: write-hosts-toml
namespace: kube-system
spec:
containers:
- command:
- sh
- -c
- echo '[host."http://kind-registry:5000"]' | tee /config/hosts.toml
image: alpine
name: writer
volumeMounts:
- mountPath: /config
name: containerd-config
volumes:
- name: containerd-config
hostPath:
type: DirectoryOrCreate
path: /etc/containerd/certs.d/localhost:5000/
tolerations:
- operator: Exists
effect: NoSchedule
- operator: Exists
effect: NoExecute
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment