nodeselector pathces
This commit is contained in:
9
projects/website/base/nodeselector.yaml
Normal file
9
projects/website/base/nodeselector.yaml
Normal file
@@ -0,0 +1,9 @@
|
||||
apiVersion: apps/v1
|
||||
kind: not-important
|
||||
metadata:
|
||||
name: not-important
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
nodeSelector:
|
||||
region: front
|
||||
@@ -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
|
||||
15
projects/website/base/website-ingress.yaml
Normal file
15
projects/website/base/website-ingress.yaml
Normal 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
|
||||
4
projects/website/base/website-namespace.yaml
Normal file
4
projects/website/base/website-namespace.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: website
|
||||
13
projects/website/base/website-service.yaml
Normal file
13
projects/website/base/website-service.yaml
Normal 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
|
||||
15
projects/website/kustomization.yaml
Normal file
15
projects/website/kustomization.yaml
Normal 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)
|
||||
Reference in New Issue
Block a user