Add ansichtkaarten site

This commit is contained in:
Julius 2022-05-24 12:57:27 +02:00
parent 0ce5577c73
commit 6997a00979
Signed by: j00lz
GPG key ID: AF241B0AA237BBA2
4 changed files with 72 additions and 0 deletions

View file

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

View file

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