refactor(k8s): Reorganize into 5-layer structure with production kustomizations
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: duckdns-updater
|
||||
namespace: kube-system
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: duckdns-updater
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: duckdns-updater
|
||||
spec:
|
||||
containers:
|
||||
- name: updater
|
||||
image: curlimages/curl:latest
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- |
|
||||
while true; do
|
||||
curl -fsS "https://www.duckdns.org/update?domains=riotpiao&token=${DUCKDNS_TOKEN}&ip="
|
||||
sleep 300
|
||||
done
|
||||
env:
|
||||
- name: DUCKDNS_TOKEN
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: duckdns-token
|
||||
key: token
|
||||
resources:
|
||||
requests:
|
||||
cpu: 5m
|
||||
memory: 16Mi
|
||||
limits:
|
||||
cpu: 50m
|
||||
memory: 32Mi
|
||||
restartPolicy: Always
|
||||
@@ -0,0 +1,5 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
namespace: duckdns
|
||||
resources: []
|
||||
# DuckDNS deployed via Helm chart or CronJob
|
||||
Reference in New Issue
Block a user