neu way of manifestos
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Simple_Not
2023-11-16 19:52:51 +10:00
parent 1eaf295724
commit d0c9250c30
41 changed files with 36 additions and 517 deletions

View File

@@ -0,0 +1,22 @@
---
apiVersion: gateway.networking.k8s.io/v1beta1
kind: Gateway
metadata:
name: my-gateway
labels:
color: coral
spec:
gatewayClassName: cilium
addresses:
- value: "0.0.0.0"
- type: IPAddress
value: 192.168.0.105
- type: IPAddress
value: 10.0.10.251
listeners:
- protocol: HTTP
port: 80
name: web-gw
allowedRoutes:
namespaces:
from: All

View File

@@ -0,0 +1,9 @@
apiVersion: "cilium.io/v2alpha1"
kind: CiliumLoadBalancerIPPool
metadata:
name: "lb-pool"
spec:
cidrs:
- cidr: "10.0.10.0/24"

View File

@@ -1,39 +0,0 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: flask-htmx-dev
namespace: vdk2ch
spec:
revisionHistoryLimit: 3
replicas: 2
selector:
matchLabels:
app: flask-htmx-dev
template:
metadata:
labels:
app: flask-htmx-dev
spec:
containers:
- name: flask-htmx-dev
image: flask-htmx-board1:dev
ports:
- containerPort: 5000
#### таймауты и прочее взяты с потолка
livenessProbe:
httpGet:
path: /liveness
port: 5000
initialDelaySeconds: 2
timeoutSeconds: 2
periodSeconds: 5
failureThreshold: 2
readinessProbe:
httpGet:
path: /readiness
port: 5000
initialDelaySeconds: 3
timeoutSeconds: 3
periodSeconds: 10
failureThreshold: 3

View File

@@ -1,39 +0,0 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: flask-htmx-master
namespace: vdk2ch
spec:
revisionHistoryLimit: 5
replicas: 2
selector:
matchLabels:
app: flask-htmx-master
template:
metadata:
labels:
app: flask-htmx-master
spec:
containers:
- name: flask-htmx-master
image: flask-htmx-board1:master-of-slaves
ports:
- containerPort: 5000
#### таймауты и прочее взяты с потолка
livenessProbe:
httpGet:
path: /liveness
port: 5000
initialDelaySeconds: 2
timeoutSeconds: 2
periodSeconds: 5
failureThreshold: 2
readinessProbe:
httpGet:
path: /readiness
port: 5000
initialDelaySeconds: 3
timeoutSeconds: 3
periodSeconds: 10
failureThreshold: 3

View File

@@ -1,39 +0,0 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: flask-htmx-our-style
namespace: vdk2ch
spec:
revisionHistoryLimit: 3
replicas: 2
selector:
matchLabels:
app: flask-htmx-our-style
template:
metadata:
labels:
app: flask-htmx-our-style
spec:
containers:
- name: flask-htmx-our-style
image: flask-htmx-board1:our-style
ports:
- containerPort: 5000
#### таймауты и прочее взяты с потолка
livenessProbe:
httpGet:
path: /liveness
port: 5000
initialDelaySeconds: 2
timeoutSeconds: 2
periodSeconds: 5
failureThreshold: 2
readinessProbe:
httpGet:
path: /readiness
port: 5000
initialDelaySeconds: 3
timeoutSeconds: 3
periodSeconds: 10
failureThreshold: 3

View File

@@ -1,34 +0,0 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: helloworld
namespace: vdk2ch
annotations:
description: 'my frontend running nginx'
labels:
labe1: my_test_label1
labe2: my_test_label
spec:
revisionHistoryLimit: 0
selector:
matchLabels:
app: helloworld
replicas: 1 # tells deployment to run 1 pods matching the template
template: # create pods using pod definition in this template
metadata:
labels:
app: helloworld
what-ever-label-i-add-here: 'test_string-asfd14123UE.asdfeee333DS'
what/here.com: '312321'
labe2: my_test_label
labe3: my_test_label3
annotations:
imageregistry: "https://hub.docker.com/"
what/here.com2: "https://github.com/"
anno: 'where it will stop??'
spec:
containers:
- name: helloworld
image: karthequian/helloworld:latest
ports:
- containerPort: 80

View File

@@ -0,0 +1,41 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: flask-htmx-dev
namespace: vdk2ch
spec:
revisionHistoryLimit: 5
replicas: 2
selector:
matchLabels:
app: flask-htmx-dev
template:
metadata:
labels:
app: flask-htmx-dev
spec:
containers:
- name: flask-htmx-dev
image: harbor.guaranteedstruggle.host/library/flask-htmx-board1:dev
imagePullPolicy: Always
ports:
- containerPort: 5000
#### таймауты и прочее взяты с потолка
#livenessProbe:
# httpGet:
# path: /liveness
# port: 5000
# initialDelaySeconds: 2
# timeoutSeconds: 2
# periodSeconds: 5
# failureThreshold: 2
#readinessProbe:
# httpGet:
# path: /readiness
# port: 5000
# initialDelaySeconds: 3
# timeoutSeconds: 3
# periodSeconds: 10
# failureThreshold: 3

View File

@@ -0,0 +1,41 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: flask-htmx-master
namespace: vdk2ch
spec:
revisionHistoryLimit: 5
replicas: 2
selector:
matchLabels:
app: flask-htmx-master
template:
metadata:
labels:
app: flask-htmx-master
spec:
containers:
- name: flask-htmx-master
image: harbor.guaranteedstruggle.host/library/flask-htmx-board1:master-of-slaves
imagePullPolicy: Always
ports:
- containerPort: 5000
#### таймауты и прочее взяты с потолка
#livenessProbe:
# httpGet:
# path: /liveness
# port: 5000
# initialDelaySeconds: 2
# timeoutSeconds: 2
# periodSeconds: 5
# failureThreshold: 2
#readinessProbe:
# httpGet:
# path: /readiness
# port: 5000
# initialDelaySeconds: 3
# timeoutSeconds: 3
# periodSeconds: 10
# failureThreshold: 3

View File

@@ -0,0 +1,41 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: flask-htmx-our-style
namespace: vdk2ch
spec:
revisionHistoryLimit: 5
replicas: 2
selector:
matchLabels:
app: flask-htmx-our-style
template:
metadata:
labels:
app: flask-htmx-our-style
spec:
containers:
- name: flask-htmx-our-style
image: harbor.guaranteedstruggle.host/library/flask-htmx-board1:our-style
imagePullPolicy: Always
ports:
- containerPort: 5000
#### таймауты и прочее взяты с потолка
#livenessProbe:
# httpGet:
# path: /liveness
# port: 5000
# initialDelaySeconds: 2
# timeoutSeconds: 2
# periodSeconds: 5
# failureThreshold: 2
#readinessProbe:
# httpGet:
# path: /readiness
# port: 5000
# initialDelaySeconds: 3
# timeoutSeconds: 3
# periodSeconds: 10
# failureThreshold: 3

View File

@@ -1,24 +0,0 @@
apiVersion: v1
kind: Service
metadata:
name: hw-service
namespace: vdk2ch
spec:
type: NodePort
selector:
app: helloworld
ports:
- port: 80
targetPort: 80
nodePort: 30001
# - protocol: TCP
# port: 8080
# targetPort: 8080
# nodePort: 32129
#name: http
#protocol: TCP
#nodePort: 30001

View File

@@ -1,51 +0,0 @@
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: flask-htmx-ingress
namespace: vdk2ch
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /$1
#nginx.ingress.kubernetes.io/app-root: /
spec:
rules:
- host: master.board.vdk2ch.ru
http:
paths:
- path: /(.*)
pathType: Prefix
backend:
service:
name: flask-htmx-master-service
port:
number: 5000
- host: dev.board.vdk2ch.ru
http:
paths:
- path: /(.*)
pathType: Prefix
backend:
service:
name: flask-htmx-dev-service
port:
number: 5000
- host: our-style.board.vdk2ch.ru
http:
paths:
- path: /(.*)
pathType: Prefix
backend:
service:
name: flask-htmx-our-style-service
port:
number: 5000
- host: q.q.vdk2ch.ru
http:
paths:
- path: /(.*)
pathType: Prefix
backend:
service:
name: flask-htmx-our-style-service
port:
number: 5000

View File

@@ -1,27 +0,0 @@
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: hw-ingress
namespace: vdk2ch
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /$1
spec:
rules:
- host: asdf.vdk2ch.ru
http:
paths:
- path: /v1
pathType: Prefix
backend:
service:
name: hw-service
port:
number: 80
# - path: /
# pathType: Prefix
# backend:
# service:
# name: hw-service
# port:
# number: 80

View File

@@ -1,22 +0,0 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: minikube-dashboard-ingress
namespace: kubernetes-dashboard
annotations:
#nginx.ingress.kubernetes.io/rewrite-target: /$1
nginx.ingress.kubernetes.io/rewrite-target: /
nginx.ingress.kubernetes.io/enable-cors: "false"
spec:
rules:
- host: minikube.guaranteedstruggle.host
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: kubernetes-dashboard
port:
number: 80

View File

@@ -1,19 +0,0 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: example-ingress
namespace: vdk2ch
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /$1
spec:
rules:
- host: asdf.vdk2ch.ru
http:
paths:
- path: /v2
pathType: Prefix
backend:
service:
name: web2
port:
number: 8080

View File

@@ -12,3 +12,4 @@ spec:
name: board
port: 5000
targetPort: 5000

View File

@@ -12,3 +12,4 @@ spec:
name: board
port: 5000
targetPort: 5000

View File

@@ -12,3 +12,4 @@ spec:
name: board
port: 5000
targetPort: 5000

View File

@@ -0,0 +1,20 @@
---
apiVersion: gateway.networking.k8s.io/v1beta1
kind: HTTPRoute
metadata:
name: http-dashy
namespace: dashy
spec:
hostnames:
- dashy.guaranteedstruggle.host
parentRefs:
- name: my-gateway
namespace: default
rules:
- matches:
- path:
type: PathPrefix
value: /
backendRefs:
- name: dashy
port: 10310

View File

@@ -0,0 +1,21 @@
---
apiVersion: gateway.networking.k8s.io/v1beta1
kind: HTTPRoute
metadata:
name: http-flask-htmx-board-dev
namespace: vdk2ch
spec:
hostnames:
#- board.guaranteedstruggle.host
- dev.board.vdk2ch.ru
parentRefs:
- name: my-gateway
namespace: default
rules:
- matches:
- path:
type: PathPrefix
value: /
backendRefs:
- name: flask-htmx-dev-service
port: 5000

View File

@@ -0,0 +1,21 @@
---
apiVersion: gateway.networking.k8s.io/v1beta1
kind: HTTPRoute
metadata:
name: http-flask-htmx-board-master
namespace: vdk2ch
spec:
hostnames:
#- board.guaranteedstruggle.host
- master.board.vdk2ch.ru
parentRefs:
- name: my-gateway
namespace: default
rules:
- matches:
- path:
type: PathPrefix
value: /
backendRefs:
- name: flask-htmx-master-service
port: 5000

View File

@@ -0,0 +1,21 @@
---
apiVersion: gateway.networking.k8s.io/v1beta1
kind: HTTPRoute
metadata:
name: http-flask-htmx-board-our-style
namespace: vdk2ch
spec:
hostnames:
#- board.guaranteedstruggle.host
- our-style.board.vdk2ch.ru
parentRefs:
- name: my-gateway
namespace: default
rules:
- matches:
- path:
type: PathPrefix
value: /
backendRefs:
- name: flask-htmx-our-style-service
port: 5000

View File

@@ -0,0 +1,20 @@
---
apiVersion: gateway.networking.k8s.io/v1beta1
kind: HTTPRoute
metadata:
name: http-harbor
namespace: default
spec:
hostnames:
- harbor.guaranteedstruggle.host
parentRefs:
- name: my-gateway
namespace: default
rules:
- matches:
- path:
type: PathPrefix
value: /
backendRefs:
- name: harbor
port: 80

View File

@@ -0,0 +1,20 @@
---
apiVersion: gateway.networking.k8s.io/v1beta1
kind: HTTPRoute
metadata:
name: http-hubble
namespace: kube-system
spec:
hostnames:
- hubble.guaranteedstruggle.host
parentRefs:
- name: my-gateway
namespace: default
rules:
- matches:
- path:
type: PathPrefix
value: /
backendRefs:
- name: hubble-ui
port: 80

View File

@@ -0,0 +1,20 @@
---
apiVersion: gateway.networking.k8s.io/v1beta1
kind: HTTPRoute
metadata:
name: http-longhorn
namespace: longhorn-system
spec:
hostnames:
- longhorn.guaranteedstruggle.host
parentRefs:
- name: my-gateway
namespace: default
rules:
- matches:
- path:
type: PathPrefix
value: /
backendRefs:
- name: longhorn-frontend
port: 80

View File

@@ -0,0 +1,26 @@
---
apiVersion: gateway.networking.k8s.io/v1beta1
kind: HTTPRoute
metadata:
name: http-rancher
namespace: default
spec:
hostnames:
- rancher.guaranteedstruggle.host
parentRefs:
- name: my-gateway
namespace: default
rules:
- matches:
- path:
type: PathPrefix
value: /
filters:
- type: RequestHeaderModifier
requestHeaderModifier:
set:
- name: X-Forwarded-Proto
value: https
backendRefs:
- name: myrancher
port: 80

View File

@@ -0,0 +1,20 @@
---
apiVersion: gateway.networking.k8s.io/v1beta1
kind: HTTPRoute
metadata:
name: http-weave
namespace: weave
spec:
hostnames:
- weave.guaranteedstruggle.host
parentRefs:
- name: my-gateway
namespace: default
rules:
- matches:
- path:
type: PathPrefix
value: /
backendRefs:
- name: weave-scope-app
port: 80