Initial Commit
This commit is contained in:
21
apps/cloudflared/configmap.yaml
Normal file
21
apps/cloudflared/configmap.yaml
Normal file
@@ -0,0 +1,21 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: cloudflared-config
|
||||
namespace: cloudflared
|
||||
data:
|
||||
config.yaml: |
|
||||
tunnel: 63418c8c-38c2-45db-968b-7f3fab3c75a6
|
||||
credentials-file: /etc/cloudflared/creds/credentials.json
|
||||
|
||||
|
||||
ingress:
|
||||
- hostname: jellyfin.panopticons.org
|
||||
service: http://10.0.20.52:8096
|
||||
- hostname: plex.panopticons.org
|
||||
service: http://10.0.20.53:32400
|
||||
- hostname: "*.panopticons.org"
|
||||
service: https://traefik.kube-system.svc.cluster.local:443
|
||||
originRequest:
|
||||
noTLSVerify: true
|
||||
- service: http_status:404
|
||||
67
apps/cloudflared/deployment.yaml
Normal file
67
apps/cloudflared/deployment.yaml
Normal file
@@ -0,0 +1,67 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: cloudflared
|
||||
namespace: cloudflared
|
||||
spec:
|
||||
replicas: 2
|
||||
selector:
|
||||
matchLabels:
|
||||
app: cloudflared
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: cloudflared
|
||||
spec:
|
||||
securityContext:
|
||||
runAsNonRoot: true
|
||||
runAsUser: 65532
|
||||
runAsGroup: 65532
|
||||
fsGroup: 65532
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
containers:
|
||||
- name: cloudflared
|
||||
image: cloudflare/cloudflared:2025.4.0
|
||||
args:
|
||||
- tunnel
|
||||
- --config
|
||||
- /etc/cloudflared/config.yaml
|
||||
- --metrics
|
||||
- 0.0.0.0:2000
|
||||
- --protocol
|
||||
- http2
|
||||
- --no-autoupdate
|
||||
- run
|
||||
volumeMounts:
|
||||
- name: config
|
||||
mountPath: /etc/cloudflared/config.yaml
|
||||
subPath: config.yaml
|
||||
- name: creds
|
||||
mountPath: /etc/cloudflared/creds
|
||||
readOnly: true
|
||||
resources:
|
||||
requests:
|
||||
memory: "256Mi"
|
||||
cpu: "100m"
|
||||
limits:
|
||||
memory: "512Mi"
|
||||
cpu: "500m"
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /ready
|
||||
port: 2000
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 10
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: False
|
||||
capabilities:
|
||||
drop:
|
||||
- ALL
|
||||
volumes:
|
||||
- name: config
|
||||
configMap:
|
||||
name: cloudflared-config
|
||||
- name: creds
|
||||
secret:
|
||||
secretName: tunnel-credentials
|
||||
Reference in New Issue
Block a user