Merge branch 'main' of git.distrust.co:public/stack

This commit is contained in:
Lance Vick 2023-08-31 20:41:07 -07:00
commit e04bec7cc8
Signed by: lrvick
GPG Key ID: 8E47A1EC35A1551D
6 changed files with 101 additions and 1 deletions

View File

@ -0,0 +1,39 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: website
annotations:
cert-manager.io/issuer: letsencrypt-milksad-http01
nginx.ingress.kubernetes.io/enable-cors: "true"
external-dns.alpha.kubernetes.io/hostname: milksad-web.distrust.co
spec:
ingressClassName: nginx
rules:
- host: milksad.info
http:
paths:
- path: /.well-known/openpgpkey
pathType: Prefix
backend:
service:
name: wellknown-openpgp
port:
number: 80
- path: /.well-known/matrix
pathType: Prefix
backend:
service:
name: wellknown-matrix
port:
number: 80
- path: /
pathType: Prefix
backend:
service:
name: website
port:
number: 80
tls:
- hosts:
- milksad.info
secretName: website-tls

View File

@ -0,0 +1,14 @@
apiVersion: cert-manager.io/v1
kind: Issuer
metadata:
name: letsencrypt-milksad-http01
spec:
acme:
email: team@distrust.co
privateKeySecretRef:
name: letsencrypt
server: https://acme-v02.api.letsencrypt.org/directory
solvers:
- http01:
ingress:
class: nginx

View File

@ -0,0 +1,8 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: milksad-website
resources:
- namespace.yaml
- ingress.yaml
- website.yaml
- issuer.yaml

View File

@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: milksad-website

View File

@ -0,0 +1,34 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: website
spec:
replicas: 2
selector:
matchLabels:
app: website
template:
metadata:
labels:
app: website
annotations:
pod.kubernetes.io/lifetime: 300s
spec:
containers:
- name: website
image: codeberg.org/distrust/milksad-distrust-co
imagePullPolicy: Always
ports:
- containerPort: 80
---
apiVersion: v1
kind: Service
metadata:
name: website
spec:
ports:
- name: http
port: 80
targetPort: 80
selector:
app: website

View File

@ -14,7 +14,8 @@ spec:
spec: spec:
containers: containers:
- name: website - name: website
image: codeberg.org/distrust/distrust-co image: git.distrust.co/public/website
imagePullPolicy: Always
ports: ports:
- containerPort: 80 - containerPort: 80
--- ---