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:
|
||||
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"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue