add cloudflare-ddns
This commit is contained in:
1 parent
a9e8bed8fe
commit
3d4097c688
4 files changed
+59
No files matched your search
@@ -0,0 +1,33 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: cloudflare-ddns-configmap
|
||||||
|
data:
|
||||||
|
DOMAINS: nginx.tap-tap.win,nginx2.tap-tap.win,homeassistant.tap-tap.win,nextcloud.tap-tap.win,onlyoffice.tap-tap.win,jellyfin.tap-tap.win,gitea.tap-tap.win,plex.tap-tap.win,vaultwarden.tap-tap.win,argocd.tap-tap.win,hashicorp-vault.tap-tap.win
|
||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: cloudflare-ddns-deployment
|
||||||
|
labels:
|
||||||
|
app: cloudflare-ddns
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: cloudflare-ddns
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: cloudflare-ddns
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: cloudflare-ddns
|
||||||
|
image: favonia/cloudflare-ddns:latest
|
||||||
|
envFrom:
|
||||||
|
- configMapRef:
|
||||||
|
name: cloudflare-ddns-configmap
|
||||||
|
- secretRef:
|
||||||
|
name: cloudflare-api-token
|
||||||
|
|
||||||
|
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
apiVersion: external-secrets.io/v1
|
||||||
|
kind: ExternalSecret
|
||||||
|
metadata:
|
||||||
|
name: cloudflare-api-token
|
||||||
|
spec:
|
||||||
|
refreshPolicy: CreatedOnce
|
||||||
|
secretStoreRef:
|
||||||
|
name: vault-backend
|
||||||
|
kind: ClusterSecretStore
|
||||||
|
target:
|
||||||
|
name: cloudflare-api-token
|
||||||
|
dataFrom:
|
||||||
|
- extract:
|
||||||
|
key: cloudflare-ddns
|
||||||
|
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
namespace: cloudflare-ddns
|
||||||
|
resources:
|
||||||
|
- namespace.yaml
|
||||||
|
- cloudflare-ddns.yaml
|
||||||
|
- external-secret.yaml
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: cloudflare-ddns
|
||||||
Reference in new issue
Block a user