build
This commit is contained in:
parent
e5309c1794
commit
e9148bc1af
1 changed files with 23 additions and 3 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
# ==========================================
|
# ==========================================
|
||||||
# JS PAINT (STATELESS)
|
# JS PAINT (STATIC DEPLOYMENT)
|
||||||
# ==========================================
|
# ==========================================
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
@ -20,11 +20,31 @@ spec:
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
kubernetes.io/hostname: mist
|
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:
|
containers:
|
||||||
- name: jspaint
|
- name: nginx
|
||||||
image: ghcr.io/1j01/jspaint:latest
|
image: nginx:alpine
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 80
|
- containerPort: 80
|
||||||
|
volumeMounts:
|
||||||
|
- name: web-content
|
||||||
|
mountPath: /usr/share/nginx/html
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: "50m"
|
cpu: "50m"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue