|
| 1 | +// Module included in the following assemblies: |
| 2 | +// |
| 3 | +// * installing/installing_oci/installing-oci-assisted-installer.adoc [Using the Assisted Installer to install a cluster on OCI] |
| 4 | + |
| 5 | +:_mod-docs-content-type: PROCEDURE |
| 6 | +[id="downloading-manifest-files-resources-oci_{context}"] |
| 7 | += Downloading manifest files and deployment resources |
| 8 | + |
| 9 | +You must download the archive file that includes files for creating cluster resources and custom manifests. After you extract the contents of the archive file, you must upload the extracted files to an {oci-first} stack. The archive file contains a script that when run creates OCI resources, such as DNS records, an instance, and so on. |
| 10 | + |
| 11 | +A stack is an {oci} feature where you can automate the provisioning of all necessary {oci} infrastructure resources, such as the custom image, that are required for installing an {product-title} cluster on {oci}. |
| 12 | + |
| 13 | +The script uses the {oci-first} Compute Service to create a virtual machine (VM) instance on {oci}. This instance can then automatically attach to a virtual network interface controller (vNIC) in the virtual cloud network (VNC) subnet. On specifying the IP address of your {product-title} cluster in the custom manifest template files, the {oci} instance can communicate with your cluster over the VNC. |
| 14 | + |
| 15 | +.Prerequisites |
| 16 | + |
| 17 | +* You uploaded a generated Agent ISO image to {oci}. See the "Using the Assisted Installer to generate an OCI-compatible Agent ISO image" section. |
| 18 | +* You have permissions to access the `oracle-quickstart / oci-openshift` GitHub repository. |
| 19 | +* You logged in to your Oracle Cloud Infrastructure account with administrator privileges. |
| 20 | +
|
| 21 | +.Procedure |
| 22 | + |
| 23 | +. From the link:https://github.com/oracle-quickstart/oci-openshift[`oracle-quickstart / oci-openshift`] GitHub web page, click the **<> Code** button and then click **Download ZIP**. The following list details these resources: |
| 24 | ++ |
| 25 | +** link:https://github.com/oracle-quickstart/oci-openshift/tree/main/custom_manifests[CCM and CSI custom manifests]. |
| 26 | +** link:https://github.com/oracle-quickstart/oci-openshift/blob/main/README.md[Download the {oci} Resource Manager configuration to provision resources for deploying Openshift on {oci}]. |
| 27 | ++ |
| 28 | +[NOTE] |
| 29 | +==== |
| 30 | +Consider using the example configurations in link:https://github.com/oracle-quickstart/oci-openshift/tree/main/custom_manifests/manifests[manifests] GitHub page as a guide for configuring a cloud infrastructure to meet your organization's needs. |
| 31 | +==== |
| 32 | + |
| 33 | +. Create a stack by completing the link:https://docs.oracle.com/en-us/iaas/Content/ResourceManager/Tasks/create-stack-compartment.htm[Creating a Stack from an Existing Compartment] procedure in the Oracle documentation. Ensure that you also complete the following subtasks: |
| 34 | ++ |
| 35 | +.. Upload the archive file, `.zip`, that you downloaded previously from the `oracle-quickstart / oci-openshift` repository. This file contains a script and after you upload the script to OCI, the script creates OCI resources within your child compartment. |
| 36 | +.. From the **Stack information** section, specify a name for your stack. |
| 37 | +.. From the **Configure variables** section, complete the following fields. Ensure you replace the examples with your actual values: |
| 38 | +... **cluster_name:** `ocicluster`. |
| 39 | +... **compartment_ocid:** Specify the {ocid} from the parent compartment. For example, `ocid1.compartment.oc1..aaaaaaaa6r2iu3qndqgz5ogqkgnh2u2ajy5iou5ugkjr2ksmkrtdqrvxsvyq`. |
| 40 | +... **home_region:** `us-sanjose-1` |
| 41 | +... **zone_dns:** `openshift-demo.devcluster.openshift.com`. |
| 42 | +... **enable_private_dns:** Set the DNS zone to public or private. Specifying a value of `true`, creates a private DNS zone; specifying a value of `false` creates a public DNS zone. For a private DNS zone, you must configure your local `/etc/hosts` file to reach the cluster. |
| 43 | +... **openshift_image_source_url:** Specify the URL that you copied from a previous step of the quick-start procedure. |
| 44 | + |
| 45 | +. Click the **Apply** button to start an apply job. Check the **Logs** section to confirm that your stack was successfully created. |
| 46 | + |
| 47 | +. Copy the `oci_ccm_config` cloud configuration from the **Outputs** section of the log. |
| 48 | + |
| 49 | +. Extract the archive file that you downloaded in a previous step from the link:https://github.com/oracle-quickstart/oci-openshift[`oracle-quickstart / oci-openshift`] repository. A new directory displays on your file explorer. Open the directory in your preferred code editor. |
| 50 | + |
| 51 | +. Open the custom manifest template, `oci-ccm.yml`, and replace the cloud configuration section of the template file with the configuration that you previously copied from the **Logs** section on {oci}. Perform the same steps to update the configuration of the CSI driver in the `oci-csi.yml` file. |
| 52 | ++ |
| 53 | +The following example replaced the `region:` to `rateLimitBucketWrite` parameters of the `oci-csi.yml` file with the configuration from the `oci_ccm_config` cloud configuration on {oci}: |
| 54 | ++ |
| 55 | +[source,yaml] |
| 56 | +---- |
| 57 | +# … |
| 58 | +config.yaml: | |
| 59 | + auth: |
| 60 | + region: <region_name> |
| 61 | + useInstancePrincipals: true |
| 62 | + compartment: <compartment_ocid> |
| 63 | + vcn: <virtual_cloud_network_ocid> |
| 64 | + loadBalancer: |
| 65 | + subnet1: <subnet_ocid> |
| 66 | + securityListManagementMode: Frontend |
| 67 | + rateLimiter: |
| 68 | + rateLimitQPSRead: 20.0 |
| 69 | + rateLimitBucketRead: 5 |
| 70 | + rateLimitQPSWrite: 20.0 |
| 71 | + rateLimitBucketWrite: 5 |
| 72 | +# … |
| 73 | +---- |
0 commit comments