Add missing escalators

This commit is contained in:
Julius 2023-04-20 01:55:11 +02:00
parent 6d57a3c878
commit 95f11f80d5
Signed by: j00lz
GPG key ID: AF241B0AA237BBA2
9 changed files with 126 additions and 0 deletions

View file

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

View file

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

View file

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

View file

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

View file

@ -6,3 +6,5 @@ resources:
- whoami - whoami
- tickets - tickets
- escalator-admin - escalator-admin
- escalator-display
- escalator-backend