This commit is contained in:
parent
ad10eb371b
commit
147b72c5e5
@ -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
|
@ -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
|
15
manifests/03-services/svc-thread-visualizah-dev.yaml
Normal file
15
manifests/03-services/svc-thread-visualizah-dev.yaml
Normal 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
|
||||
|
15
manifests/03-services/svc-thread-visualizah-master.yaml
Normal file
15
manifests/03-services/svc-thread-visualizah-master.yaml
Normal 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
|
||||
|
20
manifests/04-routes/httproute-thread-visualizah-dev.yaml
Normal file
20
manifests/04-routes/httproute-thread-visualizah-dev.yaml
Normal 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
|
20
manifests/04-routes/httproute-thread-visualizah-master.yaml
Normal file
20
manifests/04-routes/httproute-thread-visualizah-master.yaml
Normal 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
|
Loading…
Reference in New Issue
Block a user