This commit is contained in:
parent
36795411a9
commit
23569ef919
20
manifests/01-deployments/flask-htmx-dev.yaml
Normal file
20
manifests/01-deployments/flask-htmx-dev.yaml
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: flask-htmx-dev
|
||||||
|
namespace: vdk2ch
|
||||||
|
spec:
|
||||||
|
replicas: 0
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: ngflask-htmx-dev
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: flask-htmx-dev
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: flask-htmx-dev
|
||||||
|
image: flask-htmx-board1:dev
|
||||||
|
ports:
|
||||||
|
- containerPort: 5000
|
20
manifests/01-deployments/flask-htmx-master.yaml
Normal file
20
manifests/01-deployments/flask-htmx-master.yaml
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: flask-htmx-master
|
||||||
|
namespace: vdk2ch
|
||||||
|
spec:
|
||||||
|
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
|
14
manifests/02-services/flask-htmx-dev-service.yaml
Normal file
14
manifests/02-services/flask-htmx-dev-service.yaml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: flask-htmx-dev-service-service
|
||||||
|
namespace: vdk2ch
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: flask-htmx-dev
|
||||||
|
ports:
|
||||||
|
- protocol: TCP
|
||||||
|
name: board
|
||||||
|
port: 5000
|
||||||
|
targetPort: 5000
|
14
manifests/02-services/flask-htmx-master-service.yaml
Normal file
14
manifests/02-services/flask-htmx-master-service.yaml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: flask-htmx-dev-service-service
|
||||||
|
namespace: vdk2ch
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: flask-htmx-master
|
||||||
|
ports:
|
||||||
|
- protocol: TCP
|
||||||
|
name: board
|
||||||
|
port: 5000
|
||||||
|
targetPort: 5000
|
30
manifests/03-ingress/flask-htmx-ingress.yaml
Normal file
30
manifests/03-ingress/flask-htmx-ingress.yaml
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
---
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: flask-htmx-ingress
|
||||||
|
namespace: vdk2ch
|
||||||
|
annotations:
|
||||||
|
nginx.ingress.kubernetes.io/rewrite-target: /$1
|
||||||
|
spec:
|
||||||
|
rules:
|
||||||
|
- host: master.board.vdk2ch.ru
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /v1
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: flask-htmx-master-service
|
||||||
|
port:
|
||||||
|
number: 80
|
||||||
|
- host: dev.board.vdk2ch.ru
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /v1
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: flask-htmx-dev-service
|
||||||
|
port:
|
||||||
|
number: 80
|
Loading…
Reference in New Issue
Block a user