RedHat Red Hat Certified OpenShift Administrator EX280 Exam Questions

Page: 1 / 14
Total 33 questions
Question 1

SIMULATION

Task 19

Create Project Template

Task information Details:

Generate the bootstrap project template, create it in openshift-config, update the cluster project configuration to use the template, and create a new project to validate it.



Answer : A

Solution:

Generate the default template:

oc adm create-bootstrap-project-template -o yaml > template.yaml

Review and edit template.yaml if required.

Create the template in openshift-config:

oc create -f template.yaml -n openshift-config

Edit the cluster project configuration:

oc edit project.config.openshift.io/cluster

Add or update:

spec:

projectRequestTemplate:

name: project-request

Save and exit.

Create a test project:

oc new-project test123

Verify the template behavior:

oc get project test123 -o yaml

Notes:

The uploaded lab text shows projects.config.openshift.io cluster-admin; the standard resource is project.config.openshift.io/cluster.

This task checks cluster-wide customization of new-project creation behavior.


Page:    1 / 14   
Total 33 questions