You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: [NPM] add windows documentation and update links to MSDocs (#1805)
* add windows and update doc links
* update main README to say NPM supports Windows
* update preview wording to be clearer
---------
Co-authored-by: Vamsi Kalapala <[email protected]>
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ This repository contains container networking services and plugins for Linux and
14
14
15
15
*[Azure CNI network and IPAM plugins](docs/cni.md) for Kubernetes.
16
16
*[Azure CNM (libnetwork) network and IPAM plugins](docs/cnm.md) for Docker Engine. **(MAINTENANCE MODE)**
17
-
*[Azure NPM - Kubernetes Network Policy Manager](docs/npm.md) (Supports only linux for now).
17
+
*[Azure NPM - Kubernetes Network Policy Manager](docs/npm.md) (Linux and (preview) Windows Server 2022)
18
18
19
19
The `azure-vnet` network plugins connect containers to your [Azure VNET](https://docs.microsoft.com/en-us/azure/virtual-network/virtual-networks-overview), to take advantage of Azure SDN capabilities. The `azure-vnet-ipam` IPAM plugins provide address management functionality for container IP addresses allocated from Azure VNET address space.
Copy file name to clipboardExpand all lines: docs/npm.md
+41-9Lines changed: 41 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -4,20 +4,29 @@
4
4
5
5
`azure-npm` Network Policy plugin implements the [Kubernetes Network Policy](https://kubernetes.io/docs/concepts/services-networking/network-policies/)
6
6
7
-
The plugin is available on Linux platform. Windows support is planned.
7
+
The plugin is available on Linux and (preview) Windows Server 2022.
8
8
9
9
Azure-NPM serves as a distributed firewall for the Kubernetes cluster, and it can be easily controlled by `kubectl`.
10
10
11
+
## Documentation
12
+
1.[Secure traffic between pods using network policies in Azure Kubernetes Service (AKS)](https://learn.microsoft.com/en-us/azure/aks/use-network-policies)
13
+
2.[Monitor and Visualize Network Configurations with Azure NPM](https://learn.microsoft.com/en-us/azure/virtual-network/kubernetes-network-policies#monitor-and-visualize-network-configurations-with-azure-npm)
14
+
11
15
## Install
16
+
Specify `--network-policy=azure` when creating an AKS cluster. For more information, see the [Microsoft Docs](https://learn.microsoft.com/en-us/azure/aks/use-network-policies#create-an-aks-cluster-and-enable-network-policy).
12
17
18
+
### Manual Installation
13
19
Running the command below will bring up one azure-npm instance on each Kubernetes node.
$env:REPO = "mcr.microsoft.com/azure-npm:" # include colon at end
48
+
$env:IMAGE = "$env:REPO$env:VERSION"
49
+
docker build `
50
+
-f npm/windows.Dockerfile `
51
+
-t $env:IMAGE `
52
+
--build-arg VERSION=$env:VERSION `
53
+
--build-arg NPM_AI_PATH=$env:NPM_AI_PATH `
54
+
--build-arg NPM_AI_ID=$env:NPM_AI_ID `
55
+
.
56
+
docker push $env:IMAGE
57
+
echo $env:IMAGE
58
+
```
33
59
34
-
Microsoft docs has a detailed step by step example on how to use Kubernetes network policy.
35
-
1.[Deny all inbound traffic to a pod](https://docs.microsoft.com/en-us/azure/aks/use-network-policies#deny-all-inbound-traffic-to-a-pod)
36
-
2.[Allow inbound traffic based on a pod label](https://docs.microsoft.com/en-us/azure/aks/use-network-policies#allow-inbound-traffic-based-on-a-pod-label)
37
-
3.[Allow traffic only from within a defined namespace](https://docs.microsoft.com/en-us/azure/aks/use-network-policies#allow-traffic-only-from-within-a-defined-namespace)
60
+
## Usage
61
+
[Microsoft Docs](https://learn.microsoft.com/en-us/azure/aks/use-network-policies#verify-network-policy-setup) has a detailed step by step example on how to use Kubernetes network policy.
38
62
39
63
## Troubleshooting
40
-
41
-
`azure-npm` translates Kubernetes network policies into a set of `iptables` rules under the hood.
42
64
When `azure-npm` isn't working as expected, try to **delete all networkpolicies and apply them again**.
43
65
Also, a good practice is to merge all network policies targeting the same set of pods/labels into one yaml file.
44
66
This way, operators can keep the minimum number of network policies and makes it easier for operators to troubleshoot.
67
+
68
+
### Linux
69
+
NPM adds firewall rules via `iptables` and `ipset`. You can examine the configuration on a given node with:
0 commit comments