Remove cert from nginx deployment

* Remove ToDo in HTTP ingress def
This commit is contained in:
erik 2022-11-04 12:01:58 +01:00
parent 53de3ea31b
commit ce00fc3058
3 changed files with 3 additions and 18 deletions

View file

@ -15,7 +15,7 @@ spec:
paths:
- pathType: Prefix
path: "/"
backend: # TODO: Review jem 2022/10/26: wo backend as we should only do a redirect here ... ?
backend:
service:
name: SERVICE_NAME
port:

View file

@ -29,9 +29,6 @@ spec:
- mountPath: /var/www/html/website
name: website-content-volume
readOnly: true
- mountPath: /etc/certs
name: website-cert
readOnly: true
volumes:
- name: nginx-config-volume
configMap:
@ -48,12 +45,4 @@ spec:
- name: website-content-volume
persistentVolumeClaim:
claimName: NAME-content-volume
- name: website-cert
secret:
secretName: NAME-cert
items:
- key: tls.crt
path: tls.crt
- key: tls.key
path: tls.key

View file

@ -99,8 +99,7 @@
:volumeMounts
[{:mountPath "/etc/nginx", :readOnly true, :name "nginx-config-volume"}
{:mountPath "/var/log/nginx", :name "log"}
{:mountPath "/var/www/html/website", :name "website-content-volume", :readOnly true}
{:mountPath "/etc/certs", :name "website-cert", :readOnly true}]}],
{:mountPath "/var/www/html/website", :name "website-content-volume", :readOnly true}]}],
:volumes
[{:name "nginx-config-volume",
:configMap
@ -110,10 +109,7 @@
{:key "website.conf", :path "conf.d/website.conf"}
{:key "mime.types", :path "mime.types"}]}}
{:name "log", :emptyDir {}}
{:name "website-content-volume", :persistentVolumeClaim {:claimName "test-io-content-volume"}}
{:name "website-cert",
:secret
{:secretName "test-io-cert", :items [{:key "tls.crt", :path "tls.crt"} {:key "tls.key", :path "tls.key"}]}}]}}}}
{:name "website-content-volume", :persistentVolumeClaim {:claimName "test-io-content-volume"}}]}}}}
(cut/generate-nginx-deployment {:unique-name "test.io",
:gitea-host "gitea.evilorg",
:gitea-repo "none",