Add whoami

This commit is contained in:
Julius 2022-05-25 20:42:04 +02:00
parent 450c6b8200
commit bf1a045e68
Signed by: j00lz
GPG key ID: AF241B0AA237BBA2
7 changed files with 66 additions and 2 deletions

View file

@ -3,3 +3,4 @@ kind: Kustomization
resources:
- pinbot
- registry-creds.yaml
- whoami

View file

@ -0,0 +1,25 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: whoami-deployment
namespace: misc
labels:
app: whoami-deployment
keel.sh/policy: force
keel.sh/match-tag: "true"
spec:
replicas: 1
selector:
matchLabels:
app: whoami-deployment
template:
metadata:
labels:
app: whoami-deployment
spec:
containers:
- name: whoami-deployment
imagePullPolicy: Always
image: containous/whoami
ports:
- containerPort: 80

View file

@ -0,0 +1,17 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: whoami-deployment-ingress
namespace: misc
spec:
rules:
- host: "whoami.asraphiel.dev"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: whoami-deployment-service
port:
number: 80

View file

@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- deployment.yaml
- ingress.yaml
- service.yaml

View file

@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: whoami-deployment-service
namespace: misc
spec:
selector:
app: whoami-deployment
ports:
- protocol: TCP
port: 80
targetPort: 80

View file

@ -27,9 +27,9 @@ spec:
globalArguments: []
additionalArguments:
- "--entryPoints.web.forwardedHeaders.insecure=true"
- "--entryPoints.web.forwardedHeaders.trustedIPs=127.0.0.1/32,10.42.0.0/16"
- "--entryPoints.web.forwardedHeaders.trustedIPs=127.0.0.1/32,10.0.0.0/8"
- "--entryPoints.websecure.forwardedHeaders.insecure=true"
- "--entryPoints.websecure.forwardedHeaders.trustedIPs=127.0.0.1/32,10.42.0.0/16"
- "--entryPoints.websecure.forwardedHeaders.trustedIPs=127.0.0.1/32,10.0.0.0/8"
ports:
traefik:
port: 9000

View file

@ -64,6 +64,7 @@ in {
virtualHosts."vaultwarden.asraphiel.dev" =
proxy "http://vaultwarden.lxd:8000/";
virtualHosts."analytics.asraphiel.dev" = k8sProxy;
virtualHosts."whoami.asraphiel.dev" = k8sProxy;
virtualHosts."groenehartansichtkaarten.nl" = k8sProxy;
virtualHosts."ansichtkaarten.asraphiel.dev" = k8sProxy;
@ -79,6 +80,8 @@ in {
globalRedirect = "galerievanslagmaat.nl";
};
virtualHosts."test.asraphiel.dev" = proxy "http://hosting-test.lxd:8080/";
};
security.acme.email = "acme@voidcorp.nl";