forked from Botanical/BotanJS
71 lines
1.4 KiB
YAML
71 lines
1.4 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: astrojs
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: astrojs
|
|
replicas: 1
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: astrojs
|
|
spec:
|
|
volumes:
|
|
- name: astrojs-cache
|
|
nfs:
|
|
server: astrofile.astrohost
|
|
path: /srv/astrostorage
|
|
containers:
|
|
- name: web
|
|
image: 192.168.80.4:32000/sites/astrojs:b00027
|
|
volumeMounts:
|
|
- mountPath: "/app/cache"
|
|
name: astrojs-cache
|
|
env:
|
|
- name: FLASK_DEBUG
|
|
value: "0"
|
|
- name: FLASK_ENV
|
|
value: "production"
|
|
- name: RUN_MODE
|
|
value: "web"
|
|
- name: redis
|
|
image: redis:6.0.8-alpine
|
|
- name: compiler
|
|
image: 192.168.80.4:32000/sites/astrojs:b00027
|
|
volumeMounts:
|
|
- mountPath: "/app/cache"
|
|
name: astrojs-cache
|
|
env:
|
|
- name: RUN_MODE
|
|
value: "tasks"
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: astrojs
|
|
spec:
|
|
selector:
|
|
app: astrojs
|
|
ports:
|
|
- port: 5000
|
|
targetPort: 5000
|
|
|
|
---
|
|
|
|
apiVersion: networking.k8s.io/v1beta1
|
|
kind: Ingress
|
|
metadata:
|
|
name: name-virtual-host-ingress
|
|
spec:
|
|
rules:
|
|
- host: botanjs.botanical.astropenguin.net
|
|
http:
|
|
paths:
|
|
- backend:
|
|
serviceName: astrojs
|
|
servicePort: 5000
|