board?
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Simple_Not 2023-07-01 23:58:54 +10:00
parent 36795411a9
commit 23569ef919
5 changed files with 98 additions and 0 deletions

View 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

View 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

View 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

View 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

View 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