NDR activation failed in air-gap mode at 68%
SSP 5.0
we need to execute the bash script from SSPI to activate NDR in air-gap mode as per the steps mentioned in the below document to set the airgap mode as False .
Configuring Network Detection and Response for the Air-Gap Environment
we can verify airgap mode status by executing below commands
export KUBECONFIG=/config/clusterctl/1/workload.kubeconfig
kubectl -n nsxi-platform describe cronjob nsx-metadata-service-load-feed-cronjob | grep AIRGAP
AIRGAP: true >> airgap mode should display here as False
Script failed at SSPI with the below error when we executed script on SSPI and issue is due formatting issue in the script: the following line was split across multiple lines, causing the failure:
${NAPPK[@]} patch cronjob nsx-metadata-service-load-feed-cronjob -p '{"spec":{"jobTemplate":{"spec":{"template":{"spec":{"containers":[{"name":"nsx-metadata-load-feed-job","env":[{"name":"AIRGAP","value":"true"}]}]}}}}}}'
failed script execution output wil be similar to the below lines:
Error from server (Bad Request): invalid character '\n' in string literal
Failed to enable airgap mode
Resolution
Ensure that the following line is not split across multiple lines and the entire command must appear as one continuous line.
${NAPPK[@]} patch cronjob nsx-metadata-service-load-
4. Re-execute the corrected script from the SSPI to enable NDR in air-gap mode.
5. Verify successful execution using the following command:
export KUBECONFIG=/config/clusterctl/1/workload.kubeconfig
kubectl -n nsxi-platform describe cronjob nsx-metadata-service-load-feed-cronjob | grep AIRGAP
The output should display:
AIRGAP: false