aboutsummaryrefslogtreecommitdiff
path: root/blog/k8s.yaml
diff options
context:
space:
mode:
authoralex <alex@pdp7.net>2025-03-15 10:54:12 +0100
committeralexpdp7 <alex@corcoles.net>2025-03-15 12:26:40 +0100
commitb9c92eafc3026dd5f73f3a1b2754de0b4bb0323d (patch)
tree081066112a167935fe1db9907ba678b878e6b7a7 /blog/k8s.yaml
parente28553db86742887fbb7fe7e0fd92f1c0ec94233 (diff)
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
Diffstat (limited to 'blog/k8s.yaml')
-rw-r--r--blog/k8s.yaml45
1 files changed, 24 insertions, 21 deletions
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: