Skip to content

Commit 29f5c45

Browse files
Merge pull request #283261 from rickbartra91/main
[operator-nexus] [NC 3.13] Add how-to page to Operator Nexus to install MS Defender for Containers
2 parents 9b5abf9 + bf96dde commit 29f5c45

File tree

3 files changed

+48
-0
lines changed

3 files changed

+48
-0
lines changed

articles/operator-nexus/TOC.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,8 @@
216216
href: howto-kubernetes-cluster-log-collector-script.md
217217
- name: Manage SSH keys
218218
href: howto-kubernetes-cluster-manage-ssh-key.md
219+
- name: Install Microsoft Defender for Containers on a Nexus Kubernetes Cluster
220+
href: howto-kubernetes-cluster-install-microsoft-defender.md
219221
- name: Kubernetes cluster features
220222
href: howto-kubernetes-cluster-features.md
221223
- name: Nexus Virtual Machine
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
title: How to Install Microsoft Defender for Containers on a Nexus Kubernetes Cluster #Required; page title is displayed in search results. Include the brand.
3+
description: Learn how to install Microsoft Defender for Containers on a Nexus Kubernetes Cluster. #Required; article description that is displayed in search results.
4+
author: rickbartra #Required; your GitHub user alias, with correct capitalization.
5+
ms.author: rickbartra #Required; microsoft alias of author; optional team alias.
6+
ms.service: azure-operator-nexus #Required; service per approved list. slug assigned by ACOM.
7+
ms.topic: how-to #Required; leave this attribute/value as-is.
8+
ms.date: 08/01/2024 #Required; mm/dd/yyyy format.
9+
ms.custom: template-how-to-pattern #Required; leave this attribute/value as-is.
10+
---
11+
12+
# Install Microsoft Defender for Containers on Azure Operator Nexus Kubernetes Cluster
13+
14+
This article describes how to install Microsoft Defender for Containers inside a Nexus Kubernetes Cluster. [Microsoft Defender](/azure/defender-for-cloud/defender-for-cloud-introduction) can be used to monitor Kubernetes API Server audit logs and trigger alerts when appropriate. The audit logs are sent to the Defender backend and aren't directly accessible. They can't be queried through Kusto or in the Log Analytics Workspace associated with the installed Defender extension. Visit [Alerts for containers - Kubernetes clusters](/azure/defender-for-cloud/alerts-containers) for a list of alerts that are currently defined for Kubernetes Clusters.
15+
16+
## Prerequisites
17+
18+
Before proceeding with this how-to guide, it's recommended that you:
19+
20+
* Refer to the Operator Nexus Kubernetes cluster [QuickStart guide](./quickstarts-kubernetes-cluster-deployment-bicep.md) for a comprehensive overview and steps involved.
21+
* Ensure that you meet the outlined prerequisites in the quickstart to ensure smooth implementation of the guide.
22+
23+
> [!NOTE]
24+
> This guide assumes that you already have an existing Operator Nexus Kubernetes cluster that was created using the quickstart guide, and that you have access to the Azure CLI. Additionally, along with the networkcloud Azure CLI extension, the k8s-extension Azure CLI extension needs to be installed:
25+
26+
```
27+
az extension add --name k8s-extension
28+
```
29+
30+
## Installing Microsoft Defender for Containers in Nexus Kubernetes Cluster using Azure CLI
31+
32+
Reference the Microsoft Defender for Containers documentation to [install Defender](/azure/defender-for-cloud/defender-for-containers-enable?tabs=aks-deploy-portal%2Ck8s-deploy-cli%2Ck8s-verify-asc%2Ck8s-remove-arc%2Caks-removeprofile-api&pivots=defender-for-container-arc#use-azure-cli-to-deploy-the-defender-sensor) on a Nexus Kubernetes Cluster.
33+
34+
Refer to the Azure CLI command to install the extension in the provided link:
35+
36+
```azurecli
37+
az k8s-extension create --name microsoft.azuredefender.kubernetes --cluster-type connectedClusters --cluster-name <cluster-name> --resource-group <resource-group> --extension-type microsoft.azuredefender.kubernetes
38+
```
39+
40+
In the Azure CLI command, the cluster-name refers to the ARC connected cluster, of type Kubernetes - Azure ARC, representing the Nexus Kubernetes Cluster. As mentioned in the Microsoft Defender for Containers documentation, by default the Kubernetes API Server audit logs should exist in ```/var/log/kube-apiserver/audit.log``` otherwise the path to the audit log must be specified when installing Defender for Containers using the ```--auditLogPath``` flag. Reference the Microsoft Defender for Containers documentation previously linked for more detailed installation information and alternative methods of installation.
41+
42+
## Microsoft Defender for Containers Security Alert Simulation
43+
44+
Reference the documentation here on how to [simulate security alerts](/azure/defender-for-cloud/alert-validation#simulate-alerts-on-kubernetes-) for Microsoft Defender for Containers. This simulation has been performed on a Nexus Kubernetes Cluster and the corresponding alert appeared in the Microsoft Defender for Cloud Dashboard in the Azure portal:
45+
46+
[ ![Screenshot of Security Alerts in Microsoft Defender for Cloud Dashboard in the Azure portal.](media/defender-for-cloud-alerts.png)](media/defender-for-cloud-alerts.png#lightbox)
138 KB
Loading

0 commit comments

Comments
 (0)