forked from public/stack
Merge branch 'main' of git.distrust.co:public/stack
This commit is contained in:
commit
e04bec7cc8
|
@ -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
|
|
@ -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
|
|
@ -0,0 +1,8 @@
|
|||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
namespace: milksad-website
|
||||
resources:
|
||||
- namespace.yaml
|
||||
- ingress.yaml
|
||||
- website.yaml
|
||||
- issuer.yaml
|
|
@ -0,0 +1,4 @@
|
|||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: milksad-website
|
|
@ -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
|
|
@ -14,7 +14,8 @@ spec:
|
|||
spec:
|
||||
containers:
|
||||
- name: website
|
||||
image: codeberg.org/distrust/distrust-co
|
||||
image: git.distrust.co/public/website
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- containerPort: 80
|
||||
---
|
||||
|
|
Loading…
Reference in New Issue