infra/k8s/shlink/shlink.yaml

89 lines
1.6 KiB
YAML
Raw Normal View History

2024-04-21 05:52:41 +00:00
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: shlink
namespace: shlink
spec:
rules:
- host: s.janky.bot
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: shlink
port:
name: web
2024-04-23 18:33:05 +00:00
- host: dl.janky.bot
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: shlink
port:
name: web
2024-04-21 05:52:41 +00:00
---
apiVersion: v1
kind: Service
metadata:
name: shlink
namespace: shlink
spec:
ports:
- name: web
port: 8080
selector:
app: shlink
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: shlink
namespace: shlink
spec:
selector:
matchLabels:
app: shlink
serviceName: shlink
replicas: 1
template:
metadata:
labels:
app: shlink
spec:
containers:
2024-05-17 05:34:37 +00:00
- image: ghcr.io/shlinkio/shlink:latest
2024-04-21 05:52:41 +00:00
name: shlink
resources: {}
ports:
- name: web
containerPort: 8080
envFrom:
- configMapRef:
name: shlink
volumeMounts:
- name: storage
mountPath: /etc/shlink/data
volumeClaimTemplates:
- metadata:
name: storage
spec:
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 1Gi
---
apiVersion: v1
kind: ConfigMap
metadata:
name: shlink
namespace: shlink
data:
DEFAULT_DOMAIN: s.janky.bot
IS_HTTPS_ENABLED: "true"
2024-04-21 06:38:39 +00:00
DISABLE_TRACKING: "true"
2024-06-15 07:36:26 +00:00
RR_NUM_WORKERS: "2"