File tree Expand file tree Collapse file tree 1 file changed +0
-11
lines changed
docs/search/02-search-enterprise-deploy/code_snippets Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Original file line number Diff line number Diff line change @@ -39,14 +39,6 @@ kubectl --context "${K8S_CTX}" get secret "${MDB_TLS_CA_SECRET_NAME}" -n "${CERT
3939
4040cat " ${TMP_DIR} /ca.crt" > " ${TMP_DIR} /mms-ca.crt"
4141
42- # Publish the CA certificate through a ConfigMap because the MongoDB Enterprise
43- # Operator reads the `spec.security.tls.ca` reference from the MongoDB custom
44- # resource and mounts the ConfigMap contents into both the database and Search
45- # (mongot) pods. The duplicate keys (`ca-pem` and `mms-ca.crt`) keep parity with
46- # the default file names that the Automation Agent expects when it provisions
47- # TLS assets inside the pods. Without this ConfigMap the Operator cannot inject
48- # the CA bundle required for TLS validation, so the deployment fails during the
49- # initial automation bootstrap.
5042kubectl --context " ${K8S_CTX} " create configmap " ${MDB_TLS_CA_CONFIGMAP} " -n " ${MDB_NS} " \
5143 --from-file=ca-pem=" ${TMP_DIR} /mms-ca.crt" --from-file=mms-ca.crt=" ${TMP_DIR} /mms-ca.crt" \
5244 --dry-run=client -o yaml | kubectl --context " ${K8S_CTX} " apply -f -
@@ -58,9 +50,6 @@ if ! kubectl --context "${K8S_CTX}" -n "${MDB_NS}" get secret "${MDB_TLS_CA_SECR
5850 | kubectl --context " ${K8S_CTX} " apply -n " ${MDB_NS} " -f - || echo " Warning: failed to copy ${MDB_TLS_CA_SECRET_NAME} to ${MDB_NS} " >&2
5951fi
6052
61- # Create a namespaced CA Issuer for the application namespace once the CA
62- # secret is available locally. This Issuer is referenced by the Search
63- # resources to issue workload certificates.
6453kubectl apply --context " ${K8S_CTX} " -n " ${MDB_NS} " -f - << EOF_MANIFEST
6554apiVersion: cert-manager.io/v1
6655kind: Issuer
You can’t perform that action at this time.
0 commit comments