Installing OpenShift Platform Plus by using policy sets

OpenShift Container Platform uses specific policy sets to automate the installation of additional products and services. These policies ensure that your environment remains compliant and secure while you extend the platform’s capabilities across your infrastructure.

Before you begin

  • Edit the policyGenerator.yaml file to remove any products that you do not want to install. You can delete the product entries or comment out the lines.

About this task

To install the policy sets using gitops, follow the steps in "Deploying policies using gitops". Use the actual path to the policy set instead of the path in the example path policygenerator/policy-sets/stable/openshift-plus. Otherwise, use the following procedure to install the policy sets by using CLI.

Procedure

  1. Install the PolicyGenerator plugin by following the instructions in Installing and using the PolicyGenerator Kustomize plug-in.
  2. Clone the policy-collection repository.
  3. Navigate to the policy set directory:
    $ cd policy-collection/policygenerator/policy-sets/stable/openshift-plus
  4. Generate and apply the policies by using the following command:
    $ kustomize build --enable-alpha-plugins | oc apply -f -

    The policy sets install the remaining products on the OpenShift Container Platform cluster.