Skip to content

Commit 429e99f

Browse files
committed
[docs] Update Install docs for CNP and later (B)ANP.
We don't release install.yaml artifact anymore, simply use `crd/standard` files from the right tag/main branch. Add mkdocs feature that enables "copy to clipboard" button on the bash commands. Signed-off-by: Nadia Pinaeva <[email protected]>
1 parent 428703d commit 429e99f

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ theme:
1717
- search.highlight
1818
- navigation.tabs
1919
- navigation.top
20+
- content.code.copy
2021
edit_uri: edit/master/site-src/
2122
plugins:
2223
- search

site-src/getting-started.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,19 @@ doc for details on the supportability matrix.
88

99
**2. Install the Network Policy API CRDs**
1010

11-
The following commands will install the latest release version of the `AdminNetworkPolicy` and
12-
`BaselineAdminNetworkPolicy` CRDs in your K8s cluster:
11+
We don't have a released version of the `ClusterNetworkPolicy` API yet, but you can try out
12+
the latest version from the `main` branch by applying the following manifest:
1313

1414
```bash
15-
kubectl apply -f https://github.com/kubernetes-sigs/network-policy-api/releases/download/v0.1.1/install.yaml
15+
kubectl apply -f https://raw.githubusercontent.com/kubernetes-sigs/network-policy-api/refs/heads/main/config/crd/standard/policy.networking.k8s.io_clusternetworkpolicies.yaml
16+
```
17+
18+
The latest released version of the `AdminNetworkPolicy` and `BaselineAdminNetworkPolicy` is `v0.1.7`.
19+
Use the following command to install it in your cluster:
20+
21+
```bash
22+
kubectl apply -f https://raw.githubusercontent.com/kubernetes-sigs/network-policy-api/refs/tags/v0.1.7/config/crd/standard/policy.networking.k8s.io_adminnetworkpolicies.yaml \
23+
-f https://raw.githubusercontent.com/kubernetes-sigs/network-policy-api/refs/tags/v0.1.7/config/crd/standard/policy.networking.k8s.io_baselineadminnetworkpolicies.yaml
1624
```
1725

1826
**3. Try out one of the sample yamls for specific user stories**

0 commit comments

Comments
 (0)