This commit is contained in:
parent
b04aefbe28
commit
113214ee42
39
manifests/01-deployments/flask-htmx-our-style.yaml
Normal file
39
manifests/01-deployments/flask-htmx-our-style.yaml
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
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
|
14
manifests/02-services/flask-htmx-our-style-service.yaml
Normal file
14
manifests/02-services/flask-htmx-our-style-service.yaml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: flask-htmx-our-style-service
|
||||||
|
namespace: vdk2ch
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: flask-htmx-our-style
|
||||||
|
ports:
|
||||||
|
- protocol: TCP
|
||||||
|
name: board
|
||||||
|
port: 5000
|
||||||
|
targetPort: 5000
|
@ -29,3 +29,13 @@ spec:
|
|||||||
name: flask-htmx-dev-service
|
name: flask-htmx-dev-service
|
||||||
port:
|
port:
|
||||||
number: 5000
|
number: 5000
|
||||||
|
- host: our-style.board.vdk2ch.ru
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /(.*)
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: flask-htmx-our-style-service
|
||||||
|
port:
|
||||||
|
number: 5000
|
Loading…
Reference in New Issue
Block a user