Add escalator admin

This commit is contained in:
Julius 2023-04-20 01:02:02 +02:00
parent acecae02ed
commit aa72c90566
Signed by: j00lz
GPG key ID: AF241B0AA237BBA2
5 changed files with 66 additions and 0 deletions

View file

@ -0,0 +1,27 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: escalator-admin-deployment
namespace: misc
labels:
app: escalator-admin-deployment
keel.sh/policy: force
keel.sh/match-tag: "true"
spec:
replicas: 1
selector:
matchLabels:
app: escalator-admin-deployment
template:
metadata:
labels:
app: escalator-admin-deployment
spec:
containers:
- name: escalator-admin-deployment
imagePullPolicy: Always
image: registry.asraphiel.dev/library/escalator-admin:main
ports:
- containerPort: 80
imagePullSecrets:
- name: registry-creds

View file

@ -0,0 +1,17 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: escalator-admin-deployment-ingress
namespace: misc
spec:
rules:
- host: "escalator-admin.asraphiel.dev"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: escalator-admin-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: escalator-admin-deployment-service
namespace: misc
spec:
selector:
app: escalator-admin-deployment
ports:
- protocol: TCP
port: 80
targetPort: 80

View file

@ -120,6 +120,10 @@ in {
virtualHosts."galeriewoerden.nl" = redirect "galerievanslagmaat.nl"; virtualHosts."galeriewoerden.nl" = redirect "galerievanslagmaat.nl";
virtualHosts."www.galeriewoerden.nl" = redirect "galerievanslagmaat.nl"; virtualHosts."www.galeriewoerden.nl" = redirect "galerievanslagmaat.nl";
virtualHosts."escalator.asraphiel.dev" = k8sProxy;
virtualHosts."escalator-admin.asraphiel.dev" = k8sProxy;
virtualHosts."escalator-api.asraphiel.dev" = k8sProxy;
virtualHosts."weg.asraphiel.dev" = k8sProxy; virtualHosts."weg.asraphiel.dev" = k8sProxy;
}; };