Skip to content

Commit fca9d0c

Browse files
authored
Merge pull request #179747 from nehakulkarni123/patch-2
Small changes to the K8S Policy Doc
2 parents c9df468 + a4ce377 commit fca9d0c

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

articles/governance/policy/concepts/policy-for-kubernetes.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ For an overview of the extensions platform, see [Azure Arc cluster extensions](/
218218
> Note: If you have already deployed Azure Policy for Kubernetes on an Azure Arc cluster using Helm directly without extensions, follow the instructions listed to [delete the Helm chart](#remove-the-add-on-from-azure-arc-enabled-kubernetes). Once the deletion is done, you can then proceed.
219219
1. Ensure your Kubernetes cluster is a supported distribution.
220220

221-
> Note: Azure Policy for Arc extension is supported on [the following Kubernetes distributions](/azure-arc/kubernetes/conceptual-extensions).
221+
> Note: Azure Policy for Arc extension is supported on [the following Kubernetes distributions](/azure/azure-arc/kubernetes/validation-program).
222222
1. Ensure you have met all the common prerequisites for Kubernetes extensions listed [here](/azure/azure-arc/kubernetes/extensions) including [connecting your cluster to Azure Arc](/azure/azure-arc/kubernetes/quickstart-connect-cluster?tabs=azure-cli).
223223

224224
> Note: Azure Policy extension is supported for Arc enabled Kubernetes clusters [in these regions](https://azure.microsoft.com/global-infrastructure/services/?products=azure-arc).
@@ -261,19 +261,19 @@ For an overview of the extensions platform, see [Azure Arc cluster extensions](/
261261
>
262262
To create an extension instance, for your Arc enabled cluster, run the following command substituting `<>` with your values:
263263
264-
```console
264+
```azurecli-interactive
265265
az k8s-extension create --cluster-type connectedClusters --cluster-name <CLUSTER_NAME> --resource-group <RESOURCE_GROUP> --extension-type Microsoft.PolicyInsights --name <EXTENSION_INSTANCE_NAME>
266266
```
267267

268268
#### Example:
269269

270-
```console
270+
```azurecli-interactive
271271
az k8s-extension create --cluster-type connectedClusters --cluster-name my-test-cluster --resource-group my-test-rg --extension-type Microsoft.PolicyInsights --name azurepolicy
272272
```
273273

274274
#### Example Output:
275275

276-
```
276+
```json
277277
{
278278
"aksAssignedIdentity": null,
279279
"autoUpgradeMinorVersion": true,
@@ -328,20 +328,20 @@ az k8s-extension show --cluster-type connectedClusters --cluster-name <CLUSTER_N
328328
az k8s-extension show --cluster-type connectedClusters --cluster-name my-test-cluster --resource-group my-test-rg --name azurepolicy
329329
```
330330

331-
#### To validate that the add-on installation was successful and that the azure-policy and gatekeeper pods are running, run the following command:
331+
To validate that the extension installation was successful and that the azure-policy and gatekeeper pods are running, run the following command:
332332

333-
```console
333+
```bash
334+
# azure-policy pod is installed in kube-system namespace
334335
kubectl get pods -n kube-system
335-
```
336336

337-
```console
337+
# gatekeeper pod is installed in gatekeeper-system namespace
338338
kubectl get pods -n gatekeeper-system
339339
```
340340

341341
### Delete Azure Policy extension
342342
To delete the extension instance, run the following command substituting `<>` with your values:
343343

344-
```console
344+
```azurecli-interactive
345345
az k8s-extension delete --cluster-type connectedClusters --cluster-name <CLUSTER_NAME> --resource-group <RESOURCE_GROUP> --name <EXTENSION_INSTANCE_NAME>
346346
```
347347

0 commit comments

Comments
 (0)