mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-01 01:28:11 -03:30
cert-manager: add trusted internal ca when configured (#8135)
* cert-manager: add trusted internal ca when configured * wrong check for inventory variable * Update documentation
This commit is contained in:
@@ -875,6 +875,17 @@ spec:
|
||||
resources:
|
||||
{}
|
||||
---
|
||||
{% if cert_manager_trusted_internal_ca is defined %}
|
||||
apiVersion: v1
|
||||
data:
|
||||
internal-ca.pem: |
|
||||
{{ cert_manager_trusted_internal_ca | indent(width=4, indentfirst=False) }}
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: ca-internal-truststore
|
||||
namespace: {{ cert_manager_namespace }}
|
||||
---
|
||||
{% endif %}
|
||||
# Source: cert-manager/templates/deployment.yaml
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
@@ -928,6 +939,17 @@ spec:
|
||||
fieldPath: metadata.namespace
|
||||
resources:
|
||||
{}
|
||||
{% if cert_manager_trusted_internal_ca is defined %}
|
||||
volumeMounts:
|
||||
- mountPath: /etc/ssl/certs/internal-ca.pem
|
||||
name: ca-internal-truststore
|
||||
subPath: internal-ca.pem
|
||||
volumes:
|
||||
- configMap:
|
||||
defaultMode: 420
|
||||
name: ca-internal-truststore
|
||||
name: ca-internal-truststore
|
||||
{% endif %}
|
||||
---
|
||||
# Source: cert-manager/templates/webhook-deployment.yaml
|
||||
apiVersion: apps/v1
|
||||
|
||||
Reference in New Issue
Block a user