Difference between revisions of "OpenShift Notes"

From Bitbull Wiki
Jump to navigation Jump to search
(Created page with "=General= This is stuff I don't want to remember and don't want to forget! So I keep it here! =Security= ==SCC Review== Get a list with pods and their assigned scc oc get pod...")
 
Line 5: Line 5:
 
=Security=
 
=Security=
 
==SCC Review==
 
==SCC Review==
Get a list with pods and their assigned scc
+
;Get a list with pods and their assigned scc
oc get pod --all-namespaces | awk '{print $2 " -n "$1}' | grep -v NAME | while read p ; do echo "======= pod $p" ; oc describe pod $p | grep scc: ; done
+
oc get pod --all-namespaces | awk '{print $2 " -n "$1}' | grep -v NAME | while read p ; do echo "======= pod $p" ; oc describe pod $p | grep scc: ; done
  
 +
[[Category:OpenShift]]
 
[[Category:V4x]]
 
[[Category:V4x]]
[[Category:OpenShift]]
 

Revision as of 06:39, 2 April 2021

1 General

This is stuff I don't want to remember and don't want to forget! So I keep it here!

2 Security

2.1 SCC Review

Get a list with pods and their assigned scc
oc get pod --all-namespaces | awk '{print $2 " -n "$1}' | grep -v NAME | while read p ; do echo "======= pod $p" ; oc describe pod $p | grep scc: ; done