Skip to content

Commit 714b2cc

Browse files
committed
cleanup
1 parent 5231723 commit 714b2cc

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

docs/search/02-search-enterprise-deploy/code_snippets/02_0302_configure_tls_prerequisites.sh

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,6 @@ kubectl --context "${K8S_CTX}" get secret "${MDB_TLS_CA_SECRET_NAME}" -n "${CERT
3939

4040
cat "${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.
5042
kubectl --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
5951
fi
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.
6453
kubectl apply --context "${K8S_CTX}" -n "${MDB_NS}" -f - <<EOF_MANIFEST
6554
apiVersion: cert-manager.io/v1
6655
kind: Issuer

0 commit comments

Comments
 (0)