feat: Cloudflare | add DDNS container

This commit is contained in:
2024-10-01 17:19:02 +05:00
parent 9a0bd728ac
commit 601a15cca5
2 changed files with 54 additions and 0 deletions

44
cloudflare/ddns.yaml Normal file
View File

@@ -0,0 +1,44 @@
---
apiVersion: v1
kind: ConfigMap
metadata:
name: cloudflare-domains-config
namespace: cloudflare-system
data:
DOMAINS: "postgres.dogar.dev,git.dogar.dev"
PROXIED: "false"
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: cloudflare-ddns
namespace: cloudflare-system
spec:
replicas: 1
selector:
matchLabels:
app: cloudflare-ddns
template:
metadata:
labels:
app: cloudflare-ddns
spec:
containers:
- name: cloudflare-ddns
image: favonia/cloudflare-ddns:latest
env:
- name: CF_API_TOKEN
valueFrom:
secretKeyRef:
name: cloudflare-token
key: credential
- name: DOMAINS
valueFrom:
configMapKeyRef:
name: cloudflare-domains-config
key: DOMAINS
- name: PROXIED
valueFrom:
configMapKeyRef:
name: cloudflare-domains-config
key: PROXIED