OCP K8S Matrix
| COCP | K8S | CoreOS |
|---|---|---|
| 4.10 | 1.23 | RHEL 8.4 |
| 4.11 | 1.24 | RHEL 8.6 |
| 4.12 | 1.25 | RHEL 8.6 |
| 4.13 | 1.26 | RHEL 8.6 |
| … | … | … |
| COCP | K8S | CoreOS |
|---|---|---|
| 4.10 | 1.23 | RHEL 8.4 |
| 4.11 | 1.24 | RHEL 8.6 |
| 4.12 | 1.25 | RHEL 8.6 |
| 4.13 | 1.26 | RHEL 8.6 |
| … | … | … |
https://kubernetes.io/docs/concepts/security/pod-security-standards/
https://cloud.redhat.com/blog/pod-security-admission-in-openshift-4.11
pod-security.kubernetes.io/enforce=privileged
pod-security.kubernetes.io/audit=restricted
pod-security.kubernetes.io/warn=restricted
security.openshift.io/scc.podSecurityLabelSync=true #DefaultsecurityContext:
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
containers:
- name: my-cronjob-container
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop: ['ALL']$ oc label --dry-run=server --overwrite ns --all pod-security.kubernetes.io/enforce=restricted
A simple kickstart for easy deploy