Skip to content

Commit b018787

Browse files
Merge pull request #269594 from seanmck/aks-deployment-safeguards-remove-ps
Remove Windows/PS references from examples
2 parents 150dc55 + 9e633bf commit b018787

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/aks/deployment-safeguards.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ After deploying your Kubernetes manifest, if the cluster isn't compliant with de
125125
**Warning**
126126

127127
```
128-
PS C:\Users\testUser\Code> kubectl apply -f pod.yml
128+
$ kubectl apply -f pod.yml
129129
Warning: [azurepolicy-k8sazurev2containerenforceprob-0e8a839bcd103e7b96a8] Container <my-container> in your Pod <my-pod> has no <livenessProbe>. Required probes: ["readinessProbe", "livenessProbe"]
130130
Warning: [azurepolicy-k8sazurev2containerenforceprob-0e8a839bcd103e7b96a8] Container <my-container> in your Pod <my-pod> has no <readinessProbe>. Required probes: ["readinessProbe", "livenessProbe"]
131131
Warning: [azurepolicy-k8sazurev1restrictedlabels-67c4210cc58f28acdfdb] Label <{"kubernetes.azure.com"}> is reserved for AKS use only
@@ -137,7 +137,7 @@ pod/my-pod created
137137
**Enforcement**
138138

139139
```
140-
PS C:\Users\testUser\Code> kubectl apply -f pod.yml
140+
$ kubectl apply -f pod.yml
141141
Error from server (Forbidden): error when creating ".\pod.yml": admission webhook "validation.gatekeeper.sh" denied the request: [azurepolicy-k8sazurev2containerenforceprob-0e8a839bcd103e7b96a8] Container <my-container> in your Pod <my-pod> has no <livenessProbe>. Required probes: ["readinessProbe", "livenessProbe"]
142142
[azurepolicy-k8sazurev2containerenforceprob-0e8a839bcd103e7b96a8] Container <my-container> in your Pod <my-pod> has no <readinessProbe>. Required probes: ["readinessProbe", "livenessProbe"]
143143
[azurepolicy-k8sazurev2containerallowedimag-1ff6d14b2f8da22019d7] Container image my-image for container my-container has not been allowed.

0 commit comments

Comments
 (0)