|
| 1 | +// Module included in the following assemblies: |
| 2 | +// |
| 3 | +// * installing/installing_nutanix/installing-nutanix-installer-provisioned.adoc |
| 4 | + |
| 5 | +:_content-type: PROCEDURE |
| 6 | +[id="nutanix-ccm-config_{context}"] |
| 7 | += Adding config map and secret resources required for Nutanix CCM |
| 8 | + |
| 9 | +Installations on Nutanix require additional `ConfigMap` and `Secret` resources to integrate with the Nutanix Cloud Controller Manager (CCM). |
| 10 | + |
| 11 | +.Prerequisites |
| 12 | + |
| 13 | +* You have created a `manifests` directory within your installation directory. |
| 14 | +
|
| 15 | +.Procedure |
| 16 | + |
| 17 | +. Navigate to the `manifests` directory: |
| 18 | ++ |
| 19 | +[source,terminal] |
| 20 | +---- |
| 21 | +$ cd <path_to_installation_directory>/manifests |
| 22 | +---- |
| 23 | + |
| 24 | +. Create a file with the name `openshift-cloud-controller-manager-nutanix-credentials-credentials.yaml` and add the following information: |
| 25 | ++ |
| 26 | +[source,yaml] |
| 27 | +---- |
| 28 | +apiVersion: v1 |
| 29 | +kind: Secret |
| 30 | +metadata: |
| 31 | + name: nutanix-credentials |
| 32 | + namespace: openshift-cloud-controller-manager |
| 33 | +type: Opaque |
| 34 | +stringData: |
| 35 | + credentials: "[{ |
| 36 | + \"type\":\"basic_auth\", |
| 37 | + \"data\":{ |
| 38 | + \"prismCentral\":{ |
| 39 | + \"username\":\"<username_for_prism_central>\", <1> |
| 40 | + \"password\":\"<password_for_prism_central>\"}, <2> |
| 41 | + \"prismElements\":null |
| 42 | + } |
| 43 | + }]" |
| 44 | +---- |
| 45 | +<1> Specify the Prism Central username. |
| 46 | +<2> Specify the Prism Central password. |
| 47 | + |
| 48 | +. Create the `cloud-conf` `ConfigMap` file with the name `openshift-cloud-controller-manager-cloud-config.yaml` and add the following information: |
| 49 | ++ |
| 50 | +[source,yaml] |
| 51 | +---- |
| 52 | +apiVersion: v1 |
| 53 | +kind: ConfigMap |
| 54 | +metadata: |
| 55 | + name: cloud-conf |
| 56 | + namespace: openshift-cloud-controller-manager |
| 57 | +data: |
| 58 | + cloud.conf: "{ |
| 59 | + \"prismCentral\": { |
| 60 | + \"address\": \"<prism_central_FQDN/IP>\", <1> |
| 61 | + \"port\": 9440, |
| 62 | + \"credentialRef\": { |
| 63 | + \"kind\": \"Secret\", |
| 64 | + \"name\": \"nutanix-credentials\", |
| 65 | + \"namespace\": \"openshift-cloud-controller-manager\" |
| 66 | + } |
| 67 | + }, |
| 68 | + \"topologyDiscovery\": { |
| 69 | + \"type\": \"Prism\", |
| 70 | + \"topologyCategories\": null |
| 71 | + }, |
| 72 | + \"enableCustomLabeling\": true |
| 73 | + }" |
| 74 | +---- |
| 75 | +<1> Specify the Prism Central FQDN/IP. |
| 76 | + |
| 77 | +. Verify that the file `cluster-infrastructure-02-config.yml` exists and has the following information: |
| 78 | ++ |
| 79 | +[source,yaml] |
| 80 | +---- |
| 81 | +spec: |
| 82 | + cloudConfig: |
| 83 | + key: config |
| 84 | + name: cloud-provider-config |
| 85 | +---- |
0 commit comments