penguin/AstroJS

Javascript framework for my blog

commit cc9c5905810ec84be6b5e085ad27ea43657f404c

author斟酌 鵬兄 <tgckpg@gmail.com>
date2021-09-05T16:29:08Z
subjectFixed ingress misconf for k8s
commit cc9c5905810ec84be6b5e085ad27ea43657f404c
Author: 斟酌 鵬兄 <tgckpg@gmail.com>
Date:   2021-09-05T16:29:08Z

    Fixed ingress misconf for k8s
---
 k8s.yaml     | 7 ++++---
 settings.ini | 2 +-
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/k8s.yaml b/k8s.yaml
index b8e8ac5..635acb3 100644
--- a/k8s.yaml
+++ b/k8s.yaml
@@ -19,7 +19,7 @@ spec:
             path: /srv/astrostorage
       containers:
         - name: web
-          image: 192.168.80.4:32000/sites/astrojs:b00032
+          image: 192.168.80.4:32000/sites/astrojs:b00034
           volumeMounts:
             - mountPath: "/app/cache"
               name: astrojs-cache
@@ -33,7 +33,7 @@ spec:
         - name: redis
           image: redis:6.0.8-alpine
         - name: compiler
-          image: 192.168.80.4:32000/sites/astrojs:b00032
+          image: 192.168.80.4:32000/sites/astrojs:b00034
           volumeMounts:
             - mountPath: "/app/cache"
               name: astrojs-cache
@@ -61,11 +61,12 @@ kind: Ingress
 metadata:
   name: astrojs
 spec:
+  ingressClassName: nginx
   rules:
   - host: botanjs.astropenguin.net
     http:
       paths:
-      - path: "/"
+      - path: /
         pathType: Prefix
         backend:
           service:
diff --git a/settings.ini b/settings.ini
index a61da86..ab9f7d0 100644
--- a/settings.ini
+++ b/settings.ini
@@ -13,7 +13,7 @@ Cache = ${SiteRoot}/cache
 [BotanJS]
 SrcDir = ${Paths:Runtime}/botanjs/src
 
-CeleryBroker = redis://:@redis:6379/9
+CeleryBroker = redis://:@localhost:6379/9
 
 ClosureCompiler = /opt/utils/closure.jar
 YuiCompressor = /opt/utils/yuicompressor.jar