Added gotosocial to experiment with

Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
2023-02-04 05:16:20 +00:00
parent 089ec74af7
commit 665836a4a3
2 changed files with 102 additions and 0 deletions

View File

@@ -0,0 +1,74 @@
apiVersion: v1
kind: Service
metadata:
name: gotosocial
namespace: gotosocial
spec:
type: ClusterIP
ports:
- port: 80
targetPort: web
name: web
selector:
app: gotosocial
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: gotosocial
namespace: gotosocial
spec:
replicas: 1
selector:
matchLabels:
app: gotosocial
template:
metadata:
labels:
app: gotosocial
spec:
containers:
- name: web
image: superseriousbusiness/gotosocial:0.6.0
imagePullPolicy: IfNotPresent
ports:
- containerPort: 8080
name: web
env:
- name: GTS_HOST
value: gotosocial.cluster.fun
- name: GTS_DB_TYPE
value: sqlite
- name: GTS_DB_ADDRESS
value: /gotosocial/storage/sqlite.db
- name: GTS_LETSENCRYPT_ENABLED
value: "false"
- name: GTS_LETSENCRYPT_EMAIL_ADDRESS
value: ""
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: gotosocial
namespace: gotosocial
annotations:
cert-manager.io/cluster-issuer: letsencrypt
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
spec:
ingressClassName: nginx
tls:
- hosts:
- gotosocial.cluster.fun
secretName: gotosocial-ingress
rules:
- host: gotosocial.cluster.fun
http:
paths:
- path: /
pathType: ImplementationSpecific
backend:
service:
name: gotosocial
port:
number: 80