diff --git a/roles/eda/templates/eda-api.deployment.yaml.j2 b/roles/eda/templates/eda-api.deployment.yaml.j2 index ac8a2352..2bb85bf9 100644 --- a/roles/eda/templates/eda-api.deployment.yaml.j2 +++ b/roles/eda/templates/eda-api.deployment.yaml.j2 @@ -446,6 +446,14 @@ spec: mountPath: /var/cache/nginx - name: nginx-run mountPath: /var/run +{% if bundle_ca_crt %} + - name: "ca-trust-extracted" + mountPath: "/etc/pki/ca-trust/extracted" + - name: "{{ ansible_operator_meta.name }}-bundle-cacert" + mountPath: /etc/pki/ca-trust/source/anchors/bundle-ca.crt + subPath: bundle-ca.crt + readOnly: true +{% endif %} {% if combined_api.resource_requirements is defined %} resources: {{ combined_api.resource_requirements }} {% endif %} diff --git a/roles/eda/templates/eda-event-stream.deployment.yaml.j2 b/roles/eda/templates/eda-event-stream.deployment.yaml.j2 index 9294c8c8..cabf6239 100644 --- a/roles/eda/templates/eda-event-stream.deployment.yaml.j2 +++ b/roles/eda/templates/eda-event-stream.deployment.yaml.j2 @@ -235,6 +235,14 @@ spec: mountPath: /var/cache/nginx - name: nginx-run mountPath: /var/run +{% if bundle_ca_crt %} + - name: "ca-trust-extracted" + mountPath: "/etc/pki/ca-trust/extracted" + - name: "{{ ansible_operator_meta.name }}-bundle-cacert" + mountPath: /etc/pki/ca-trust/source/anchors/bundle-ca.crt + subPath: bundle-ca.crt + readOnly: true +{% endif %} restartPolicy: Always volumes: - name: '{{ ansible_operator_meta.name }}-nginx-event-stream-conf'