nodeselector pathces

This commit is contained in:
2024-03-28 21:14:20 +01:00
parent 7393552809
commit cc860d1fc9
26 changed files with 187 additions and 7 deletions

View File

@@ -0,0 +1,9 @@
apiVersion: apps/v1
kind: not-important
metadata:
name: not-important
spec:
template:
spec:
nodeSelector:
region: front

View File

@@ -1,9 +1,9 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: website-deployment
labels:
app: website
name: website
spec:
replicas: 1
selector:
@@ -14,9 +14,11 @@ spec:
labels:
app: website
spec:
nodeName: gatekeeper
containers:
- name: website
image: registry.steffenillium.de/website
ports:
- containerPort: 80
- image: ghcr.io/illiumst/website:latest
name: website
ports:
- containerPort: 80
protocol: TCP
resources: {}
restartPolicy: Always

View File

@@ -0,0 +1,15 @@
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: website-ingress
namespace: website
spec:
entryPoints:
- web
- websecure
routes:
- match: Host(`www.steffenillium.de`) || Host(`steffenillium.de`)
kind: Rule
services:
- name: website
port: 80

View File

@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: website

View File

@@ -0,0 +1,13 @@
apiVersion: v1
kind: Service
metadata:
labels:
app: website
name: website
spec:
ports:
- name: "http"
port: 80
targetPort: 80
selector:
app: website

View File

@@ -0,0 +1,15 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: website
resources:
- base/website-deployment.yaml
- base/website-ingress.yaml
- base/website-namespace.yaml
- base/website-service.yaml
patches:
- path: patches/nodeselector.yaml
target:
kind: (StatefulSet|Deployment|Job)