This commit is contained in:
Roxedus 2022-06-04 22:19:19 +02:00
parent 334d6bc4ba
commit da29395ebe
Signed by: Roxedus
GPG Key ID: 9B4E311961C63639
2 changed files with 22 additions and 38 deletions

View File

@ -40,6 +40,25 @@ traefik:
envFrom:
- secretRef:
name: cloudflared-secrets
- image: roxedus/playground:cloudflare
name: auto-cloudflare
resources:
limits:
cpu: "800m"
memory: "100Mi"
requests:
cpu: "300m"
memory: "40Mi"
envFrom:
- secretRef:
name: auto-cloudflared-secrets
env:
- name: TRAEFIK_SERVICE_ENDPOINT
value: http://localhost:8080
- name: TRAEFIK_API_ENDPOINT
value: http://localhost:9000
- name: TRAEFIK_ENTRYPOINT
value: web
# volumeMounts:
# - name: dsdsocket
# mountPath: /socket
@ -299,7 +318,7 @@ traefik:
# liveness probes, but you can adjust its config to your liking
traefik:
port: 9000
expose: true
expose: false
# The exposed port for this service
exposedPort: 9000
# The port protocol (TCP/UDP)
@ -307,8 +326,8 @@ traefik:
web:
port: 8000
# hostPort: 8000
expose: true
#exposedPort: 80
expose: false
exposedPort: 80
# The port protocol (TCP/UDP)
protocol: TCP
# Use nodeport if set. This is useful if you have configured Traefik in a

View File

@ -1,35 +0,0 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: auto-cloudflare
spec:
replicas: 1
revisionHistoryLimit: 3
selector:
matchLabels:
app: auto-cloudflare
template:
metadata:
labels:
app: auto-cloudflare
spec:
containers:
- image: roxedus/playground:cloudflare
name: auto-cloudflare
resources:
limits:
cpu: "800m"
memory: "100Mi"
requests:
cpu: "300m"
memory: "40Mi"
envFrom:
- secretRef:
name: auto-cloudflared-secrets
env:
- name: TRAEFIK_SERVICE_ENDPOINT
value: http://traefik:8080
- name: TRAEFIK_API_ENDPOINT
value: http://traefik:9000
- name: TRAEFIK_ENTRYPOINT
value: web