From 8b6b2d12c873a79bbe5ee217d864359d5207f0d4 Mon Sep 17 00:00:00 2001 From: Finn Date: Sat, 20 Apr 2024 22:52:41 -0700 Subject: [PATCH] add shlink --- k8s/shlink/shlink.yaml | 76 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 k8s/shlink/shlink.yaml diff --git a/k8s/shlink/shlink.yaml b/k8s/shlink/shlink.yaml new file mode 100644 index 0000000..4ff5ecb --- /dev/null +++ b/k8s/shlink/shlink.yaml @@ -0,0 +1,76 @@ +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 +--- +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: + - image: docker.io/shlinkio/shlink:latest + 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"