starting new
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Simple_Not 2024-01-26 02:04:19 +10:00
parent ad10eb371b
commit 147b72c5e5
6 changed files with 114 additions and 0 deletions

View File

@ -0,0 +1,22 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: thread-visualizah-dev
namespace: vdk2ch
spec:
revisionHistoryLimit: 5
replicas: 2
selector:
matchLabels:
app: thread-visualizah-dev
template:
metadata:
labels:
app: thread-visualizah-dev
spec:
containers:
- name: thread-visualizah-dev
image: harbor.guaranteedstruggle.host/library/thread-visualizah:dev
imagePullPolicy: Always
ports:
- containerPort: 8050

View File

@ -0,0 +1,22 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: thread-visualizah-master
namespace: vdk2ch
spec:
revisionHistoryLimit: 5
replicas: 2
selector:
matchLabels:
app: thread-visualizah-master
template:
metadata:
labels:
app: thread-visualizah-master
spec:
containers:
- name: thread-visualizah-master
image: harbor.guaranteedstruggle.host/library/thread-visualizah:master
imagePullPolicy: Always
ports:
- containerPort: 8050

View File

@ -0,0 +1,15 @@
---
apiVersion: v1
kind: Service
metadata:
name: thread-visualizah-dev-service
namespace: vdk2ch
spec:
selector:
app: thread-visualizah-dev
ports:
- protocol: TCP
name: board
port: 8050
targetPort: 8050

View File

@ -0,0 +1,15 @@
---
apiVersion: v1
kind: Service
metadata:
name: thread-visualizah-master-service
namespace: vdk2ch
spec:
selector:
app: thread-visualizah-master
ports:
- protocol: TCP
name: board
port: 8050
targetPort: 8050

View File

@ -0,0 +1,20 @@
---
apiVersion: gateway.networking.k8s.io/v1beta1
kind: HTTPRoute
metadata:
name: http-thread-visualizah-dev
namespace: vdk2ch
spec:
hostnames:
- dev.thread-visualizah.vdk2ch.ru
parentRefs:
- name: my-gateway
namespace: default
rules:
- matches:
- path:
type: PathPrefix
value: /
backendRefs:
- name: thread-visualizah-dev-service
port: 8050

View File

@ -0,0 +1,20 @@
---
apiVersion: gateway.networking.k8s.io/v1beta1
kind: HTTPRoute
metadata:
name: http-thread-visualizah-master
namespace: vdk2ch
spec:
hostnames:
- master.thread-visualizah.vdk2ch.ru
parentRefs:
- name: my-gateway
namespace: default
rules:
- matches:
- path:
type: PathPrefix
value: /
backendRefs:
- name: thread-visualizah-master-service
port: 8050