2020-09-22 17:37:10 +00:00
|
|
|
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
|
2021-09-05 14:02:29 +00:00
|
|
|
image: 192.168.80.4:32000/sites/astrojs:b00032
|
2020-09-22 17:37:10 +00:00
|
|
|
volumeMounts:
|
|
|
|
- mountPath: "/app/cache"
|
|
|
|
name: astrojs-cache
|
|
|
|
env:
|
|
|
|
- name: FLASK_DEBUG
|
|
|
|
value: "0"
|
|
|
|
- name: FLASK_ENV
|
|
|
|
value: "production"
|
|
|
|
- name: RUN_MODE
|
|
|
|
value: "web"
|
2020-09-22 18:03:35 +00:00
|
|
|
- name: redis
|
|
|
|
image: redis:6.0.8-alpine
|
2020-09-22 17:37:10 +00:00
|
|
|
- name: compiler
|
2021-09-05 14:02:29 +00:00
|
|
|
image: 192.168.80.4:32000/sites/astrojs:b00032
|
2020-09-22 17:37:10 +00:00
|
|
|
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
|
|
|
|
|
|
|
|
---
|
|
|
|
|
2021-09-05 14:02:29 +00:00
|
|
|
apiVersion: networking.k8s.io/v1
|
2020-09-22 17:37:10 +00:00
|
|
|
kind: Ingress
|
|
|
|
metadata:
|
2020-09-22 20:22:38 +00:00
|
|
|
name: astrojs
|
2020-09-22 17:37:10 +00:00
|
|
|
spec:
|
|
|
|
rules:
|
2021-09-05 14:02:29 +00:00
|
|
|
- host: botanjs.astropenguin.net
|
2020-09-22 17:37:10 +00:00
|
|
|
http:
|
|
|
|
paths:
|
2021-09-05 14:02:29 +00:00
|
|
|
- path: "/"
|
|
|
|
pathType: Prefix
|
|
|
|
backend:
|
|
|
|
service:
|
|
|
|
name: astrojs
|
|
|
|
port:
|
|
|
|
number: 5000
|