Skip to content

Instantly share code, notes, and snippets.

@rhemz
Last active November 14, 2023 06:35
Show Gist options
  • Save rhemz/843622965393f42369a303a8d34b01d2 to your computer and use it in GitHub Desktop.
Save rhemz/843622965393f42369a303a8d34b01d2 to your computer and use it in GitHub Desktop.
DuckDNS Kubernetes
---
apiVersion: v1
kind: Namespace
metadata:
name: duckdns
---
apiVersion: v1
kind: Secret
metadata:
name: secret-duckdns
namespace: duckdns
data:
token: <DUCKDNS API TOKEN, BASE64-ENCODED>
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: duckdns
namespace: duckdns
labels:
app: duckdns
spec:
selector:
matchLabels:
app: duckdns
replicas: 1
progressDeadlineSeconds: 60
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 0
template:
metadata:
labels:
app: duckdns
spec:
terminationGracePeriodSeconds: 10
containers:
- name: duckdns
image: ghcr.io/linuxserver/duckdns
imagePullPolicy: IfNotPresent
env:
- name: TOKEN
valueFrom:
secretKeyRef:
name: secret-duckdns
key: token
- name: SUBDOMAINS
value: <subdomains to update, comma-delimeted>
resources:
requests:
memory: 16Mi
cpu: 50m
limits:
memory: 48Mi
cpu: 150m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment