Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions work/ddclient.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,17 @@ spec:
- -xec
- |
apk --no-cache add ddclient

# Some DDNS providers, such as dy.fi, have a 7-day expiration for DDNS records if they're not updated,
# even if the associated IP hasn't changed. ddclient isn't smart enough to figure that out, so remove
# its cache every 5 days to force it to perform an update and keep the record alive.
remove_cache() {
while sleep 5d; do
rm -f /var/cache/ddclient/ddclient.cache
done
}

remove_cache &
exec ddclient -foreground -file /config/ddclient.conf
securityContext:
privileged: false
Expand Down