Please fill in the following information:
URL: | https://rol.redhat.com/rol/app/courses/do0019l-4.14/pages/ch01s03 |
Reporter RHNID: | rh-ee-tshi |
Section Title: | Lab: Secure Applications |
Issue description
beeper-api pod cannot be created in this GE
Steps to reproduce:
oc create namespace workshop-support
oc label namespace workshop-support category=support
oc adm policy add-cluster-role-to-group admin workshop-support
oc create quota workshop-support --hard=limits.cpu=4,limits.memory=4Gi,requests.cpu=3500m,requests.memory=3Gi -n workshop-support
Create a yaml file : limit-range.yaml
apiVersion: v1
kind: LimitRange
metadata:
name: workshop-support
spec:
limits:
- default:
cpu: 300m
memory: 400Mi
defaultRequest:
cpu: 100m
memory: 250Mi
type: Container
oc apply -f limit-range.yaml -n workshop-support
oc create sa project-cleaner-sa -n workshop-support
oc apply -f project-cleaner/cluster-role.yaml
oc adm policy add-cluster-role-to-user project-cleaner -z project-cleaner-sa
oc adm policy add-role-to-user project-cleaner -z project-cleaner-sa -n workshop-support
oc apply -f project-cleaner/example-pod.yaml -n workshop-support
oc apply -f beeper-api/beeper-db.yaml -n workshop-support
oc apply -f beeper-api/deployment.yaml -n workshop-support
oc create secret tls beeper-api-tls --cert=certs/beeper-api.pem --key=certs/beeper-api.key -n workshop-support
Change the deployment.yaml and apply it
oc create route passthrough beeper-api-route --service=beeper-api --hostname beeper-api.apps.ocp4.example.com -n workshop-support
The beeper api won't up.
Workaround:
No workaround yet
Expected result:
Finish this GE perfectly