Repository navigation
Expand file tree
/
Copy pathdeployment-persistent.yaml
More file actions
59 lines (56 loc) · 1.64 KB
/
Copy pathdeployment-persistent.yaml
File metadata and controls
59 lines (56 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: ddclient-persistent-volume-claim
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 1Mi
storageClassName: ddclient
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: ddclient-deployment
spec:
replicas: 1 # Request a single replica
template:
metadata:
labels:
app: ddclient
spec:
containers:
- name: ddclient
image: steasdal/ddclient-alpine:latest
volumeMounts:
- mountPath: "/var/cache/ddclient"
name: ddclient-pvc
env:
- name: DDNS_USERNAME
valueFrom:
secretKeyRef:
name: ddclient-secret
key: username
- name: DDNS_PASSWORD
valueFrom:
secretKeyRef:
name: ddclient-secret
key: password
- name: DDNS_DAEMON_OR_ONESHOT
value: "<daemon -OR- oneshot>"
- name: DDNS_AUTOPUBLIC_OR_INTERFACE
value: "<autopublic -OR- interface>"
- name: DDNS_SERVER
value: "<PUT YOUR DDNS PROVIDER'S UPDATE HOSTNAME HERE (e.g. api.dynu.com)>"
- name: DDNS_DOMAIN
value: "<PUT YOUR DOMAIN NAME HERE (e.g. my.address.net)>"
- name: DDNS_CHECKIP_URL
value: "<OPTIONAL - URL OF YOUR DDNS PROVIDER'S IP CHECK PAGE (defaults to checkip.dyndns.com)>"
- name: DDNS_DAEMON_REFRESH_INTERVAL
value: "<OPTIONAL - DAEMON REFRESH INTERVAL IN SECONDS (defaults to 30)>"
volumes:
- name: ddclient-pvc
persistentVolumeClaim:
claimName: ddclient-persistent-volume-claim