|
564 | 564 | - name: --safeguards-excluded-ns |
565 | 565 | type: string |
566 | 566 | short-summary: Comma-separated list of Kubernetes namespaces to exclude from deployment safeguards |
| 567 | + - name: --pod-security-standards-level |
| 568 | + type: string |
| 569 | + short-summary: The Pod Security Standards level. Accepted Values are [Privileged, Baseline, Restricted]. Requires safeguards to be enabled |
567 | 570 | - name: --enable-asm --enable-azure-service-mesh |
568 | 571 | type: bool |
569 | 572 | short-summary: Enable Azure Service Mesh. |
|
762 | 765 | text: az aks create -g MyResourceGroup -n MyManagedCluster --safeguards-level Warning --enable-addons azure-policy |
763 | 766 | - name: Create a kubernetes cluster with safeguards set to "Warning" and some namespaces excluded |
764 | 767 | text: az aks create -g MyResourceGroup -n MyManagedCluster --safeguards-level Warning --safeguards-excluded-ns ns1,ns2 --enable-addons azure-policy |
| 768 | + - name: Create a kubernetes cluster with safeguards and Pod Security Standards set to "Baseline" |
| 769 | + text: az aks create -g MyResourceGroup -n MyManagedCluster --safeguards-level Warning --pod-security-standards-level Baseline --enable-addons azure-policy |
765 | 770 | - name: Create a kubernetes cluster with Azure Service Mesh enabled. |
766 | 771 | text: az aks create -g MyResourceGroup -n MyManagedCluster --enable-azure-service-mesh |
767 | 772 | - name: Create a kubernetes cluster with Azure Monitor Metrics enabled. |
|
1486 | 1491 | text: az aks update -g MyResourceGroup -n MyManagedCluster --disable-azure-monitor-logs |
1487 | 1492 | - name: Update a kubernetes cluster to clear any namespaces excluded from safeguards. Assumes azure policy addon is already enabled |
1488 | 1493 | text: az aks update -g MyResourceGroup -n MyManagedCluster --safeguards-excluded-ns "" |
| 1494 | + - name: Update a kubernetes cluster with safeguards and Pod Security Standards set to "Baseline". Assumes azure policy addon is already enabled |
| 1495 | + text: az aks update -g MyResourceGroup -n MyManagedCluster --safeguards-level Warning --pod-security-standards-level Baseline |
1489 | 1496 | - name: Update a kubernetes cluster to enable a managed installation of Gateway API CRDs from the standard release channel. |
1490 | 1497 | text: az aks update -g MyResourceGroup -n MyManagedCluster --enable-gateway-api |
1491 | 1498 | - name: Update a kubernetes cluster to disable the managed installation of Gateway API CRDs. |
|
4347 | 4354 | - name: Show a specific JWT authenticator configuration |
4348 | 4355 | text: az aks jwtauthenticator show -g MyResourceGroup --cluster-name MyCluster --name myjwt |
4349 | 4356 | """ |
| 4357 | + |
| 4358 | +helps['aks safeguards'] = """ |
| 4359 | + type: group |
| 4360 | + short-summary: Manage Deployment Safeguards for a Managed Cluster (preview). |
| 4361 | +""" |
| 4362 | + |
| 4363 | +helps['aks safeguards create'] = """ |
| 4364 | + type: command |
| 4365 | + short-summary: Enable Deployment Safeguards for a Managed Cluster with Pod Security Standards support (preview). |
| 4366 | + parameters: |
| 4367 | + - name: --level |
| 4368 | + type: string |
| 4369 | + short-summary: The deployment safeguards level. Accepted values are Warn and Enforce. |
| 4370 | + - name: --excluded-namespaces --excluded-ns |
| 4371 | + type: string |
| 4372 | + short-summary: Space-separated list of namespaces to exclude from Deployment Safeguards. |
| 4373 | + - name: --pod-security-standards-level |
| 4374 | + type: string |
| 4375 | + short-summary: The Pod Security Standards level. Accepted values are Privileged, Baseline, Restricted. |
| 4376 | + examples: |
| 4377 | + - name: Create DeploymentSafeguards at Warn level with Pod Security Standards Baseline |
| 4378 | + text: az aks safeguards create -g MyResourceGroup -n MyCluster --level Warn --pod-security-standards-level Baseline |
| 4379 | + - name: Create DeploymentSafeguards at Enforce level with excluded namespaces |
| 4380 | + text: az aks safeguards create -g MyResourceGroup -n MyCluster --level Enforce --excluded-ns kube-system ns1 ns2 |
| 4381 | + - name: Create DeploymentSafeguards with all security features enabled |
| 4382 | + text: az aks safeguards create -g MyResourceGroup -n MyCluster --level Enforce --pod-security-standards-level Restricted |
| 4383 | +""" |
| 4384 | + |
| 4385 | +helps['aks safeguards update'] = """ |
| 4386 | + type: command |
| 4387 | + short-summary: Update Deployment Safeguards configuration for a Managed Cluster with Pod Security Standards support (preview). |
| 4388 | + parameters: |
| 4389 | + - name: --level |
| 4390 | + type: string |
| 4391 | + short-summary: The deployment safeguards level. Accepted values are Warn and Enforce. |
| 4392 | + - name: --excluded-namespaces --excluded-ns |
| 4393 | + type: string |
| 4394 | + short-summary: Space-separated list of namespaces to exclude from Deployment Safeguards. |
| 4395 | + - name: --pod-security-standards-level |
| 4396 | + type: string |
| 4397 | + short-summary: The Pod Security Standards level. Accepted values are Privileged, Baseline, Restricted. |
| 4398 | + examples: |
| 4399 | + - name: Update DeploymentSafeguards to Enforce level |
| 4400 | + text: az aks safeguards update -g MyResourceGroup -n MyCluster --level Enforce |
| 4401 | + - name: Update Pod Security Standards level to Restricted |
| 4402 | + text: az aks safeguards update -g MyResourceGroup -n MyCluster --pod-security-standards-level Restricted |
| 4403 | + - name: Update excluded namespaces |
| 4404 | + text: az aks safeguards update -g MyResourceGroup -n MyCluster --excluded-ns kube-system custom-ns |
| 4405 | +""" |
| 4406 | + |
| 4407 | +helps['aks safeguards show'] = """ |
| 4408 | + type: command |
| 4409 | + short-summary: Show Deployment Safeguards configuration for a Managed Cluster (preview). |
| 4410 | + examples: |
| 4411 | + - name: Show DeploymentSafeguards configuration |
| 4412 | + text: az aks safeguards show -g MyResourceGroup -n MyCluster |
| 4413 | +""" |
| 4414 | + |
| 4415 | +helps['aks safeguards delete'] = """ |
| 4416 | + type: command |
| 4417 | + short-summary: Disable Deployment Safeguards for a Managed Cluster (preview). |
| 4418 | + examples: |
| 4419 | + - name: Delete DeploymentSafeguards |
| 4420 | + text: az aks safeguards delete -g MyResourceGroup -n MyCluster |
| 4421 | +""" |
| 4422 | + |
| 4423 | +helps['aks safeguards list'] = """ |
| 4424 | + type: command |
| 4425 | + short-summary: List DeploymentSafeguards by parent resource (preview). |
| 4426 | + examples: |
| 4427 | + - name: List DeploymentSafeguards for a cluster |
| 4428 | + text: az aks safeguards list -g MyResourceGroup -n MyCluster |
| 4429 | +""" |
0 commit comments