diff --git a/manifests/_apps/gotosocial.yaml b/manifests/_apps/gotosocial.yaml new file mode 100644 index 0000000..2747059 --- /dev/null +++ b/manifests/_apps/gotosocial.yaml @@ -0,0 +1,28 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: gotosocial + namespace: argocd + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: cluster.fun + destination: + namespace: gotosocial + name: cluster-fun (scaleway) + source: + path: manifests/gotosocial + repoURL: "https://git.cluster.fun/AverageMarcus/cluster.fun.git" + targetRevision: HEAD + syncPolicy: + automated: {} + syncOptions: + - CreateNamespace=true + ignoreDifferences: + - kind: Secret + jsonPointers: + - /data + - group: apps + kind: Deployment + jqPathExpressions: + - .spec.template.spec.containers[]?.image diff --git a/manifests/gotosocial/gotosocial.yaml b/manifests/gotosocial/gotosocial.yaml new file mode 100644 index 0000000..8b5cff2 --- /dev/null +++ b/manifests/gotosocial/gotosocial.yaml @@ -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 +