penguin/AstroJS

Javascript framework for my blog

commit 3f02576dd8482c893022981013345cc07268b06d

author斟酌 鵬兄 <tgckpg@gmail.com>
date2022-03-15T20:28:01Z
subjectAdded nginx sidecar for direct access
commit 3f02576dd8482c893022981013345cc07268b06d
Author: 斟酌 鵬兄 <tgckpg@gmail.com>
Date:   2022-03-15T20:28:01Z

    Added nginx sidecar for direct access
---
 k8s/deployments.yaml | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/k8s/deployments.yaml b/k8s/deployments.yaml
index 132aee7..3d05730 100644
--- a/k8s/deployments.yaml
+++ b/k8s/deployments.yaml
@@ -55,6 +55,11 @@ spec:
           volumeMounts:
           - name: cache
             mountPath: "/app/cache"
+        - name: assets
+          image: nginx:alpine
+          volumeMounts:
+            - mountPath: "/usr/share/nginx/html"
+              name: cache
       volumes:
         - name: cache
           persistentVolumeClaim:
@@ -85,3 +90,7 @@ spec:
   ports:
     - port: 5000
       targetPort: 5000
+      name: application
+    - port: 80
+      targetPort: 80
+      name: files