This commit is contained in:
Jun-te Kim 2026-02-23 21:17:07 +00:00
parent e5309c1794
commit e9148bc1af

View file

@ -1,5 +1,5 @@
# ==========================================
# JS PAINT (STATELESS)
# JS PAINT (STATIC DEPLOYMENT)
# ==========================================
---
@ -20,11 +20,31 @@ spec:
nodeSelector:
kubernetes.io/hostname: mist
volumes:
- name: web-content
emptyDir: {}
initContainers:
- name: fetch-jspaint
image: alpine/git
command:
- sh
- -c
- |
git clone --depth=1 https://github.com/1j01/jspaint.git /tmp/jspaint && \
cp -r /tmp/jspaint/* /web
volumeMounts:
- name: web-content
mountPath: /web
containers:
- name: jspaint
image: ghcr.io/1j01/jspaint:latest
- name: nginx
image: nginx:alpine
ports:
- containerPort: 80
volumeMounts:
- name: web-content
mountPath: /usr/share/nginx/html
resources:
requests:
cpu: "50m"