jspaint
This commit is contained in:
parent
90e8920d62
commit
e5309c1794
2 changed files with 34 additions and 31 deletions
|
|
@ -1,46 +1,46 @@
|
||||||
# ================================
|
# ==========================================
|
||||||
# EXCALIDRAW - STATELESS
|
# JS PAINT (STATELESS)
|
||||||
# https://excalidraw.com
|
# ==========================================
|
||||||
# ================================
|
|
||||||
|
|
||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: excalidraw
|
name: jspaint
|
||||||
labels:
|
|
||||||
app: excalidraw
|
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: excalidraw
|
app: jspaint
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: excalidraw
|
app: jspaint
|
||||||
spec:
|
spec:
|
||||||
|
nodeSelector:
|
||||||
|
kubernetes.io/hostname: mist
|
||||||
|
|
||||||
containers:
|
containers:
|
||||||
- name: excalidraw
|
- name: jspaint
|
||||||
image: excalidraw/excalidraw:latest
|
image: ghcr.io/1j01/jspaint:latest
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 80
|
- containerPort: 80
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: "100m"
|
cpu: "50m"
|
||||||
memory: "128Mi"
|
memory: "64Mi"
|
||||||
limits:
|
limits:
|
||||||
cpu: "300m"
|
cpu: "200m"
|
||||||
memory: "256Mi"
|
memory: "128Mi"
|
||||||
|
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: excalidraw
|
name: jspaint
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
app: excalidraw
|
app: jspaint
|
||||||
ports:
|
ports:
|
||||||
- port: 80
|
- port: 80
|
||||||
targetPort: 80
|
targetPort: 80
|
||||||
|
|
@ -49,17 +49,16 @@ spec:
|
||||||
apiVersion: traefik.io/v1alpha1
|
apiVersion: traefik.io/v1alpha1
|
||||||
kind: IngressRoute
|
kind: IngressRoute
|
||||||
metadata:
|
metadata:
|
||||||
name: excalidraw-ingressroute
|
name: jspaint-ingress
|
||||||
spec:
|
spec:
|
||||||
entryPoints:
|
entryPoints:
|
||||||
- websecure
|
- websecure
|
||||||
routes:
|
routes:
|
||||||
- match: Host(`draw.juntekim.com`)
|
- match: Host(`jspaint.juntekim.com`)
|
||||||
kind: Rule
|
kind: Rule
|
||||||
services:
|
services:
|
||||||
- name: excalidraw
|
- name: jspaint
|
||||||
port: 80
|
port: 80
|
||||||
|
passHostHeader: true
|
||||||
tls:
|
tls:
|
||||||
certResolver: myresolver
|
certResolver: myresolver
|
||||||
domains:
|
|
||||||
- main: draw.juntekim.com
|
|
||||||
|
|
@ -88,8 +88,6 @@ apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: tandoor-postgres
|
name: tandoor-postgres
|
||||||
labels:
|
|
||||||
app: tandoor-postgres
|
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
|
|
@ -139,8 +137,6 @@ apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: tandoor-redis
|
name: tandoor-redis
|
||||||
labels:
|
|
||||||
app: tandoor-redis
|
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
|
|
@ -178,8 +174,6 @@ apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: tandoor
|
name: tandoor
|
||||||
labels:
|
|
||||||
app: tandoor
|
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
|
|
@ -192,12 +186,16 @@ spec:
|
||||||
spec:
|
spec:
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
kubernetes.io/hostname: mist
|
kubernetes.io/hostname: mist
|
||||||
|
|
||||||
|
enableServiceLinks: false # 🔥 CRITICAL FIX
|
||||||
|
|
||||||
containers:
|
containers:
|
||||||
- name: tandoor
|
- name: tandoor
|
||||||
image: vabene1111/recipes:latest
|
image: vabene1111/recipes:latest
|
||||||
env:
|
env:
|
||||||
- name: SECRET_KEY
|
- name: SECRET_KEY
|
||||||
value: replace-with-very-long-random-string
|
value: replace-with-long-random-string
|
||||||
|
|
||||||
- name: DB_ENGINE
|
- name: DB_ENGINE
|
||||||
value: django.db.backends.postgresql
|
value: django.db.backends.postgresql
|
||||||
- name: POSTGRES_HOST
|
- name: POSTGRES_HOST
|
||||||
|
|
@ -210,19 +208,25 @@ spec:
|
||||||
value: tandoorpassword
|
value: tandoorpassword
|
||||||
- name: POSTGRES_DB
|
- name: POSTGRES_DB
|
||||||
value: tandoor
|
value: tandoor
|
||||||
|
|
||||||
- name: REDIS_HOST
|
- name: REDIS_HOST
|
||||||
value: tandoor-redis
|
value: tandoor-redis
|
||||||
- name: REDIS_PORT
|
- name: REDIS_PORT
|
||||||
value: "6379"
|
value: "6379"
|
||||||
|
|
||||||
- name: ALLOWED_HOSTS
|
- name: ALLOWED_HOSTS
|
||||||
value: recipes.juntekim.com
|
value: "*"
|
||||||
|
|
||||||
- name: DEBUG
|
- name: DEBUG
|
||||||
value: "0"
|
value: "0"
|
||||||
|
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8080
|
- containerPort: 8080
|
||||||
|
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: media-storage
|
- name: media-storage
|
||||||
mountPath: /opt/recipes/mediafiles
|
mountPath: /opt/recipes/mediafiles
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: media-storage
|
- name: media-storage
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue