Initial checkin

This commit is contained in:
Radar231 2021-08-01 20:29:16 -04:00
commit 83f6107262
5 changed files with 100 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
ddclient.conf

14
README.md Normal file
View File

@ -0,0 +1,14 @@
# ddclient k8s manifest
## Introduction
This deploys a ddclient server, configured to update a dynamic dns record
at namecheap.com.
## Links
* https://hub.docker.com/r/linuxserver/ddclient
* https://ddclient.net/
* https://github.com/ddclient/ddclient
* https://www.namecheap.com/support/knowledgebase/article.aspx/583/11/how-do-i-configure-ddclient/

45
ddclient_deployment.yml Normal file
View File

@ -0,0 +1,45 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: ddclient
spec:
selector:
matchLabels:
app: ddclient
replicas: 1
strategy:
type: Recreate
template:
metadata:
labels:
app: ddclient
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: beta.kubernetes.io/arch
operator: In
values:
- arm64
containers:
- name: ddclient
image: ghcr.io/linuxserver/ddclient
env:
- name: PUID
value: "65534"
- name: PgID
value: "65534"
- name: TZ
value: "EST5EDT"
volumeMounts:
- name: ddclient
mountPath: "/config"
volumes:
- name: ddclient
persistentVolumeClaim:
claimName: ddclient-pvc
# EOF

21
ddclient_pv.yml Normal file
View File

@ -0,0 +1,21 @@
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: ddclient-pv
labels:
name: ddclient-pv
spec:
storageClassName: manual
capacity:
storage: 1Gi
accessModes:
- ReadWriteOnce
mountOptions:
- hard
- nfsvers=4.0
nfs:
server: 192.168.7.11
path: "/volume1/k8s-storage/delfax/ddclient"
# EOF

19
ddclient_pvc.yml Normal file
View File

@ -0,0 +1,19 @@
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: ddclient-pvc
labels:
app: ddclient
spec:
accessModes:
- ReadWriteOnce
storageClassName: "manual"
resources:
requests:
storage: 1Gi
selector:
matchLabels:
name: ddclient-pv
# EOF