2024-05-11 22:52:17 +00:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: simplysyncedllc-com-deployment
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
2024-05-12 02:57:31 +00:00
|
|
|
app: simplysyncedllc_com
|
2024-05-11 22:52:17 +00:00
|
|
|
replicas: 2
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
2024-05-12 02:57:31 +00:00
|
|
|
app: simplysyncedllc_com
|
2024-05-11 22:52:17 +00:00
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: simplysyncedllc-com-site
|
2024-05-12 02:57:31 +00:00
|
|
|
image: gitea.simplysyncedllc.com/dex/simplysyncedllc_website:1.0.0
|
2024-05-11 22:52:17 +00:00
|
|
|
ports:
|
|
|
|
- containerPort: 3000
|
2024-05-12 04:52:04 +00:00
|
|
|
---
|
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: cloudflared
|
|
|
|
name: cloudflared-deployment
|
|
|
|
namespace: simplysyncedllc-com
|
|
|
|
spec:
|
|
|
|
replicas: 2
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
pod: cloudflared
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
creationTimestamp: null
|
|
|
|
labels:
|
|
|
|
pod: cloudflared
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- command:
|
|
|
|
- cloudflared
|
|
|
|
- tunnel
|
|
|
|
# In a k8s environment, the metrics server needs to listen outside the pod it runs on.
|
|
|
|
# The address 0.0.0.0:2000 allows any pod in the namespace.
|
|
|
|
- --metrics
|
|
|
|
- 0.0.0.0:2000
|
|
|
|
- run
|
|
|
|
args:
|
|
|
|
- --token
|
2024-05-12 18:33:54 +00:00
|
|
|
- $(TUNNEL_TOKEN)
|
2024-05-12 04:52:04 +00:00
|
|
|
env:
|
|
|
|
- name: TUNNEL_TOKEN
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
key: token
|
|
|
|
name: cf-secrets
|
|
|
|
image: cloudflare/cloudflared:latest
|
|
|
|
name: cloudflared
|
|
|
|
livenessProbe:
|
|
|
|
httpGet:
|
|
|
|
# Cloudflared has a /ready endpoint which returns 200 if and only if
|
|
|
|
# it has an active connection to the edge.
|
|
|
|
path: /ready
|
|
|
|
port: 2000
|
|
|
|
failureThreshold: 1
|
|
|
|
initialDelaySeconds: 10
|
|
|
|
periodSeconds: 10
|