Skip to content

Instantly share code, notes, and snippets.

@cclloyd
cclloyd / deployment.yml
Created June 8, 2020 19:05
PeerTube Kubernetes
apiVersion: apps/v1
kind: Deployment
metadata:
name: peertube
labels:
app: peertube
spec:
replicas: 1
selector:
matchLabels:
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: foundry
labels:
app: foundry
spec:
replicas: 1
selector:
@cclloyd
cclloyd / copy_certificates.bash
Created January 26, 2025 22:05
Copy LetsEncrypt ACME Certificates from OPNSense to Kubernetes
#!/usr/local/bin/bash
#
# This script takes any certificates found from the ACME client plugin in OPNSense and copies them to one or more namespaces in kubernetes.
# Useful for setting as an automation script in the ACME plugin.
#
# Required env variables: KUBE_TOKEN, KUBE_HOST
# Optional variables: KUBE_PORT, NAMESPACES (space separated string of namespaces)
#
# NOTE: This script requires you to install base64 and bash. Run `pkg install base64 bash`