Remove cert from nginx deployment
* Remove ToDo in HTTP ingress def
This commit is contained in:
parent
53de3ea31b
commit
ce00fc3058
3 changed files with 3 additions and 18 deletions
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue