microshift-io / microshift-documentation

Documentation source for microshift.io
https://microshift.io
Creative Commons Attribution 4.0 International
10 stars 29 forks source link

[BUG] Deploy a basic application](https://microshift.io/docs/user-documentation/how-tos/example-usage/) doesn't work as expected #207

Open wangke19 opened 1 year ago

wangke19 commented 1 year ago

What is not documented correctly:

Deploy a basic application doesn't work as expected, will hit the following errors, $ oc apply -f https://raw.githubusercontent.com/metallb/metallb/v0.11.0/manifests/metallb.yaml ... deployment.apps/controller created resource mapping not found for name: "controller" namespace: "metallb-system" from "https://raw.githubusercontent.com/metallb/metallb/v0.11.0/manifests/metallb.yaml": no matches for kind "PodSecurityPolicy" in version "policy/v1beta1" ensure CRDs are installed first resource mapping not found for name: "speaker" namespace: "metallb-system" from "https://raw.githubusercontent.com/metallb/metallb/v0.11.0/manifests/metallb.yaml": no matches for kind "PodSecurityPolicy" in version "policy/v1beta1"

What you expected or propose to be documented:

We need to find an available solution for this example. For MicroShift, we don't have PodSecurityPolicy resource actually. $ oc api-resources | grep -i PodSecurityPolicy

Environment:

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 9" REDHAT_BUGZILLA_PRODUCT_VERSION=9.1 REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux" REDHAT_SUPPORT_PRODUCT_VERSION="9.1"

dhellmann commented 1 year ago

The PodSecurityPolicy API has been removed from Kubernetes, and therefore from MicroShift. See https://kubernetes.io/docs/concepts/security/pod-security-policy/ for details.

Perhaps a newer version of MetalLB does not require PSP?