4.1 SCCs Flashcards

1
Q

Con que role debe de ejecutarse la SSCs

A

cluster-admin

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Para que sirve sccs (security context constraints)

A

Limitar acceso de pods corriendo

Pods privilegiados 
Solicitar capacidades extra de contenedores 
Usar directorios de host como volúmenes
Cambiar selinux de contenedor 
Cambiar id de usuario
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Cuales son los 8 scc que provee openshift

A

hostaccess
hostmount-anyuid
hostnetwork
node-exporter
anyuid
nonroot
provileged
restricted

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Como se puede obtener más información de un sccs

A

oc describe scc anyuid

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Cómo se puede obtener los scc de un pod

A

oc describe pod console-5abcd -n project |grep scc

openshift.io/scc: restricted

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

oc get pod podname -o yaml | oc adm policy scc-subject-review -f -

A

Oc get modules

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Listar los security context constraints que requiere el pod test para funcionar

A

oc get pod test -o yaml| oc adm policy scc-subject-review -f -

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Que significa scc

A

Security context constraints

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Como se agrega un contexto de seguridad a una cuenta de servicio

A

oc adm policy add-scc-to-user SCC -z serviceAccount

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Como se puede corregir el scc del pod test usando el service account sa-test para el deployment test-app

A

oc get pod/test-app -o yaml| oc adm policy scc-subject-review -f -

oc create serviceaccount sa-test

oc adm policy add-scc-to-user anyuid -z sa-test

oc set serviceaccount deployment/test-app sa-test

How well did you know this?
1
Not at all
2
3
4
5
Perfectly