Changes

Jump to: navigation, search

Openshift basics

2 bytes removed, 16:45, 6 August 2019
SecurityContextConstraints
https://medium.com/bitnami-perspectives/running-containers-in-openshift-629af79945b5
 
<pre>
# kubectl get SecurityContextConstraints anyuid -n default -o yaml
</pre>
<source lang="C++">
# kubectl get SecurityContextConstraints anyuid -n default -o yaml
allowHostDirVolumePlugin: false
allowHostIPC: false
kubernetes.io/description: anyuid provides all features of the restricted SCC
but allows users to run with any UID and any GID.
creationTimestamp: "2019-07-05T14:25:44Z"
name: anyuid
resourceVersion: "641"
selfLink: /apis/security.openshift.io/v1/securitycontextconstraints/anyuid
uid: c6610551-9f30-11e9-ba85-525400efb4ec
priority: 10
readOnlyRootFilesystem: false
supplementalGroups:
type: RunAsAny
users: []- system:serviceaccount:mynamespace:default
volumes:
- configMap
- secret
</source>
 
 
 
'''Run container as root'''<br>
<pre>
# oc edit scc anyuid
securitycontextconstraints.security.openshift.io/anyuid edited
</pre>

Navigation menu