Skip to content
Snippets Groups Projects
Commit 0e24d95d authored by OZGCloud's avatar OZGCloud
Browse files

OZG-4453 fix certificate mounts

parent 17a5fcee
Branches
Tags
No related merge requests found
...@@ -93,7 +93,7 @@ spec: ...@@ -93,7 +93,7 @@ spec:
subPath: type subPath: type
readOnly: true readOnly: true
- name: elasticsearch-certificate - name: elasticsearch-certificate
mountPath: "/bindings/ca-certificates/elasticsearch-certificate.pem" mountPath: "/bindings/ca-certificates/es-root-ca.pem"
subPath: ca.crt subPath: ca.crt
readOnly: true readOnly: true
volumes: volumes:
......
...@@ -32,6 +32,7 @@ rules: ...@@ -32,6 +32,7 @@ rules:
- "" - ""
resourceNames: resourceNames:
- {{ required "elasticsearch.adminSecretName must be set" (.Values.elasticsearch).adminSecretName }} - {{ required "elasticsearch.adminSecretName must be set" (.Values.elasticsearch).adminSecretName }}
- {{ required "elasticsearch.certificateSecretName must be set" (.Values.elasticsearch).certificateSecretName }}
resources: resources:
- secrets - secrets
verbs: verbs:
......
...@@ -5,3 +5,4 @@ image: ...@@ -5,3 +5,4 @@ image:
elasticsearch: elasticsearch:
namespace: elastic-system namespace: elastic-system
adminSecretName: ozg-search-cluster-es-elastic-user adminSecretName: ozg-search-cluster-es-elastic-user
certificateSecretName: ozg-search-cluster-es-ozg-search-es-transport-certs
...@@ -9,8 +9,8 @@ ozgcloud: ...@@ -9,8 +9,8 @@ ozgcloud:
host: ozg-search-cluster-es-http.${ozgcloud.elasticsearch.server.namespace} host: ozg-search-cluster-es-http.${ozgcloud.elasticsearch.server.namespace}
port: 9200 port: 9200
scheme: https scheme: https
certificateNamespace: ozgcloud-elasticsearch-operator certificateNamespace: elastic-system
certificateSecretName: elasticsearch-certificate certificateSecretName: ozg-search-cluster-es-ozg-search-es-transport-certs
certificateSecretDataKey: ca.crt certificateSecretDataKey: ca.crt
management: management:
......
...@@ -81,6 +81,6 @@ tests: ...@@ -81,6 +81,6 @@ tests:
path: spec.template.spec.containers[0].volumeMounts path: spec.template.spec.containers[0].volumeMounts
content: content:
name: elasticsearch-certificate name: elasticsearch-certificate
mountPath: "/bindings/ca-certificates/elasticsearch-certificate.pem" mountPath: "/bindings/ca-certificates/es-root-ca.pem"
subPath: ca.crt subPath: ca.crt
readOnly: true readOnly: true
\ No newline at end of file
...@@ -60,6 +60,7 @@ tests: ...@@ -60,6 +60,7 @@ tests:
- "" - ""
resourceNames: resourceNames:
- ozg-search-cluster-es-elastic-user - ozg-search-cluster-es-elastic-user
- ozg-search-cluster-es-ozg-search-es-transport-certs
resources: resources:
- secrets - secrets
verbs: verbs:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment