penguin/AstroJS

Javascript framework for my blog

commit 962baf8d81b90e655df05eb50bc06aaea9850a59

author斟酌 鵬兄 <tgckpg@gmail.com>
date2022-03-20T03:34:42Z
subjectbind nginx conf from Secrets
commit 962baf8d81b90e655df05eb50bc06aaea9850a59
Author: 斟酌 鵬兄 <tgckpg@gmail.com>
Date:   2022-03-20T03:34:42Z

    bind nginx conf from Secrets
---
 k8s/deployments.yaml | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/k8s/deployments.yaml b/k8s/deployments.yaml
index 3d05730..d6e9d93 100644
--- a/k8s/deployments.yaml
+++ b/k8s/deployments.yaml
@@ -60,10 +60,15 @@ spec:
           volumeMounts:
             - mountPath: "/usr/share/nginx/html"
               name: cache
+            - mountPath: "/etc/nginx/templates"
+              name: nginx-conf-templates
       volumes:
         - name: cache
           persistentVolumeClaim:
             claimName: astrojs-cache
+        - name: nginx-conf-templates
+          secret:
+            secretName: nginx-conf-templates
 
 ---