From 113214ee42e2b2fdc4a7e7d11ba3063cc3df3162 Mon Sep 17 00:00:00 2001 From: Simple_Not <44047940+moonbaseDelta@users.noreply.github.com> Date: Sun, 16 Jul 2023 02:24:51 +1000 Subject: [PATCH] new subdomain --- .../01-deployments/flask-htmx-our-style.yaml | 39 +++++++++++++++++++ .../flask-htmx-our-style-service.yaml | 14 +++++++ manifests/03-ingress/flask-htmx-ingress.yaml | 12 +++++- 3 files changed, 64 insertions(+), 1 deletion(-) create mode 100644 manifests/01-deployments/flask-htmx-our-style.yaml create mode 100644 manifests/02-services/flask-htmx-our-style-service.yaml diff --git a/manifests/01-deployments/flask-htmx-our-style.yaml b/manifests/01-deployments/flask-htmx-our-style.yaml new file mode 100644 index 0000000..d43ba76 --- /dev/null +++ b/manifests/01-deployments/flask-htmx-our-style.yaml @@ -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 \ No newline at end of file diff --git a/manifests/02-services/flask-htmx-our-style-service.yaml b/manifests/02-services/flask-htmx-our-style-service.yaml new file mode 100644 index 0000000..f0d251d --- /dev/null +++ b/manifests/02-services/flask-htmx-our-style-service.yaml @@ -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 diff --git a/manifests/03-ingress/flask-htmx-ingress.yaml b/manifests/03-ingress/flask-htmx-ingress.yaml index 0f4b7a5..f26d2f8 100644 --- a/manifests/03-ingress/flask-htmx-ingress.yaml +++ b/manifests/03-ingress/flask-htmx-ingress.yaml @@ -28,4 +28,14 @@ spec: service: name: flask-htmx-dev-service port: - number: 5000 \ No newline at end of file + number: 5000 + - host: our-style.board.vdk2ch.ru + http: + paths: + - path: /(.*) + pathType: Prefix + backend: + service: + name: flask-htmx-our-style-service + port: + number: 5000 \ No newline at end of file