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:b00032 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:b00032 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/v1 kind: Ingress metadata: name: astrojs spec: rules: - host: botanjs.astropenguin.net http: paths: - path: "/" pathType: Prefix backend: service: name: astrojs port: number: 5000