Skip to content

Commit 8d17909

Browse files
committed
Tiny changes
1 parent 8fd4af5 commit 8d17909

1 file changed

Lines changed: 10 additions & 13 deletions

File tree

‎content/deploy/scc-anyuid.md‎

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ subjects:
6767

6868
### without-anyuid
6969

70-
```yaml
70+
```yaml title="YAML, without-anyuid Deployment"
7171
kind: Deployment
7272
apiVersion: apps/v1
7373
metadata:
@@ -95,17 +95,14 @@ spec:
9595
sleep infinity
9696
```
9797
98-
```shell
98+
```shell title="Log output of the Pod"
9999
% oc logs deployment/without-anyuid
100100
id: uid=1000750000(1000750000) gid=0(root) groups=0(root),1000750000
101101
```
102102
103103
### with-anyuid
104104
105-
!!! note
106-
Important is the and `serviceAccountName`!
107-
108-
```yaml
105+
```yaml title="YAML, with-anyuid Deployment" hl_lines="16"
109106
kind: Deployment
110107
apiVersion: apps/v1
111108
metadata:
@@ -134,7 +131,7 @@ spec:
134131
sleep infinity
135132
```
136133
137-
```shell
134+
```shell title="Log output of the Pod"
138135
% oc logs deployment/with-anyuid
139136
id: uid=0(root) gid=0(root) groups=0(root)
140137
```
@@ -220,12 +217,12 @@ subjects:
220217
After restarting pods, many now use the custom SCC — including platform components that shouldn't:
221218
222219
```shell
223-
$ oc get pods -A -o custom-columns=NAMESPACE:.metadata.namespace,NAME:.metadata.name,SCC:.metadata.annotations."openshift\.io/scc" | grep nonroot-v2-with-prio
224-
anyuid-demo without-anyuid-55b5b5fd9f-l5jpq nonroot-v2-with-prio
225-
openshift-image-registry image-pruner-29727360-6r9l5 nonroot-v2-with-prio
226-
openshift-machine-api machine-api-controllers-789b98f676-49d9z nonroot-v2-with-prio
227-
openshift-operators trident-operator-79ccfcdc4d-7l56t nonroot-v2-with-prio
228-
scc-test simple-http-server-555b496bd7-pskl5 nonroot-v2-with-prio
220+
% oc get pods -A -o custom-columns=NAMESPACE:.metadata.namespace,NAME:.metadata.name,SCC:.metadata.annotations."openshift\.io/scc" | grep nonroot-v2-with-prio
221+
anyuid-demo without-anyuid-55b5b5fd9f-l5jpq nonroot-v2-with-prio
222+
openshift-image-registry image-pruner-29727360-6r9l5 nonroot-v2-with-prio
223+
openshift-machine-api machine-api-controllers-789b98f676-49d9z nonroot-v2-with-prio
224+
openshift-operators trident-operator-79ccfcdc4d-7l56t nonroot-v2-with-prio
225+
scc-test simple-http-server-555b496bd7-pskl5 nonroot-v2-with-prio
229226
```
230227

231228
Because the priority is higher than any default SCC, the admission controller picks `nonroot-v2-with-prio` first. Components like `machine-api-controllers` and `trident-operator` now run under an SCC they were never designed for — potentially breaking them.

0 commit comments

Comments
 (0)