Add cloudflare-ddns/deployments.yaml
This commit is contained in:
parent
6224e8f53f
commit
a28c7e7fde
63
cloudflare-ddns/deployments.yaml
Normal file
63
cloudflare-ddns/deployments.yaml
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
deployment.kubernetes.io/revision: '1'
|
||||||
|
name: cloudflare-ddns
|
||||||
|
namespace: cloudflare-ddns
|
||||||
|
spec:
|
||||||
|
progressDeadlineSeconds: 600
|
||||||
|
replicas: 1
|
||||||
|
revisionHistoryLimit: 10
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: cloudflare-ddns
|
||||||
|
strategy:
|
||||||
|
rollingUpdate:
|
||||||
|
maxSurge: 25%
|
||||||
|
maxUnavailable: 25%
|
||||||
|
type: RollingUpdate
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: cloudflare-ddns
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- env:
|
||||||
|
- name: CF_API_TOKEN
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
key: CF_API_TOKEN
|
||||||
|
name: cloudflare-ddns-secret
|
||||||
|
- name: DOMAINS
|
||||||
|
value: chemavx.xyz,n8n.chemavx.xyz,openclaw.chemavx.xyz
|
||||||
|
- name: PROXIED
|
||||||
|
value: 'false'
|
||||||
|
- name: UPDATE_CRON
|
||||||
|
value: '@every 5m'
|
||||||
|
image: favonia/cloudflare-ddns:latest
|
||||||
|
imagePullPolicy: Always
|
||||||
|
name: cloudflare-ddns
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 50m
|
||||||
|
memory: 64Mi
|
||||||
|
requests:
|
||||||
|
cpu: 10m
|
||||||
|
memory: 32Mi
|
||||||
|
securityContext:
|
||||||
|
allowPrivilegeEscalation: false
|
||||||
|
capabilities:
|
||||||
|
drop:
|
||||||
|
- ALL
|
||||||
|
readOnlyRootFilesystem: true
|
||||||
|
runAsNonRoot: true
|
||||||
|
runAsUser: 1000
|
||||||
|
terminationMessagePath: /dev/termination-log
|
||||||
|
terminationMessagePolicy: File
|
||||||
|
dnsPolicy: ClusterFirst
|
||||||
|
restartPolicy: Always
|
||||||
|
schedulerName: default-scheduler
|
||||||
|
securityContext: {}
|
||||||
|
terminationGracePeriodSeconds: 30
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user