Uploaded image for project: 'Product Technical Learning'
  1. Product Technical Learning
  2. PTL-11035

Lab error - The pod never comes up to Running. [student@workstation openshift-lab]$ oc create -f deployment.yaml Warning: would violate PodSecurity

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • en-US (English)

       Description:  The proposed solution for this lab (text) fails. - The pod never comes up to Running. [student@workstation openshift-lab]$ oc create -f deployment.yaml Warning: would violate PodSecurity "restricted:v1.24": allowPrivilegeEscalation != false (container "podman-quotes-api" must set securityContext.allowPrivilegeEscalation=false), unrestricted capabilities (container "podman-quotes-api" must set securityContext.capabilities.drop=["ALL"]), runAsNonRoot != true (pod or container "podman-quotes-api" must set securityContext.runAsNonRoot=true), seccompProfile (pod or container "podman-quotes-api" must set securityContext.seccompProfile.type to "RuntimeDefault" or "Localhost") deployment.apps/quotes-api created [student@workstation openshift-lab]$ oc get po NAME READY STATUS RESTARTS AGE quotes-api-6446fd8f5d-lwt4s 0/1 CrashLoopBackOff 1 (2s ago) 5s <<<<<<<<< If I delete the pod, it gets recreated and goes to Error instead. quotes-ui-564f958b6d-kmnlj 0/1 CrashLoopBackOff 4 (47s ago) 2m13s 

              gls-curriculum-ocp-adv@redhat.com PTL - AppDev Team
              yuvaraj-rhls yuvaraj b
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: