From b9c92eafc3026dd5f73f3a1b2754de0b4bb0323d Mon Sep 17 00:00:00 2001 From: alex Date: Sat, 15 Mar 2025 10:54:12 +0100 Subject: Rebuild deployment - Use uv instead of poetry - Do not build a container image, just use live uv installing - Use src layout - Fix resource handling Fixes #362 --- blog/k8s.yaml | 45 ++++++++++++++++++++++++--------------------- 1 file changed, 24 insertions(+), 21 deletions(-) (limited to 'blog/k8s.yaml') diff --git a/blog/k8s.yaml b/blog/k8s.yaml index 01cff113..3fb78fc4 100644 --- a/blog/k8s.yaml +++ b/blog/k8s.yaml @@ -22,27 +22,30 @@ items: app: blog spec: containers: - - command: - - /cnb/lifecycle/launcher - - python - - -m - - blog - - --key-cert - - /tls-gemini/tls.key - - /tls-gemini/tls.crt - - https - - alex.corcoles.net - env: - - name: OTEL_EXPORTER_OTLP_ENDPOINT - value: http://clickhouse.h1.int.pdp7.net:4317 - - name: OTEL_EXPORTER_OTLP_INSECURE - value: "true" - image: quay.io/alexpdp7/blog:latest - imagePullPolicy: Always - name: blog - volumeMounts: - - mountPath: /tls-gemini - name: tls-gemini + - image: ghcr.io/astral-sh/uv:debian + command: + - uv + - run + - --with + - git+https://github.com/alexpdp7/alexpdp7.git@blog-respect-dark-mode#subdirectory=blog + - python + - -m + - blog + - --key-cert + - /tls-gemini/tls.key + - /tls-gemini/tls.crt + - https + - alex.corcoles.net + env: + - name: OTEL_EXPORTER_OTLP_ENDPOINT + value: http://clickhouse.h1.int.pdp7.net:4317 + - name: OTEL_EXPORTER_OTLP_INSECURE + value: "true" + imagePullPolicy: Always + name: blog + volumeMounts: + - mountPath: /tls-gemini + name: tls-gemini volumes: - name: tls-gemini secret: -- cgit v1.2.3