Skip to content

Commit 7e460b5

Browse files
authored
Merge pull request #57250 from jeana-redhat/OSDOCS-5528-ccoctl-upgrade-alibaba
[OSDOCS-5528]: Incorporate ccoctl upgrade steps for AliCloud
2 parents 8dfa454 + 4d721fa commit 7e460b5

22 files changed

+670
-309
lines changed

_topic_maps/_topic_map.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ Topics:
569569
- Name: Configuring additional devices in an IBM zSystems or IBM LinuxONE environment
570570
File: ibmz-post-install
571571
- Name: Regions and zones for a VMware vCenter
572-
File: post-install-vsphere-zones-regions-configuration
572+
File: post-install-vsphere-zones-regions-configuration
573573
- Name: Red Hat Enterprise Linux CoreOS image layering
574574
File: coreos-layering
575575
Distros: openshift-enterprise
@@ -597,6 +597,8 @@ Topics:
597597
Distros: openshift-origin
598598
- Name: Preparing to perform an EUS-to-EUS update
599599
File: preparing-eus-eus-upgrade
600+
- Name: Preparing to update a cluster with manually maintained credentials
601+
File: preparing-manual-creds-update
600602
- Name: Updating a cluster using the web console
601603
File: updating-cluster-within-minor
602604
- Name: Updating a cluster using the CLI
@@ -3875,7 +3877,7 @@ Topics:
38753877
- Name: Resolving image tags to digests
38763878
File: resolving-image-tags-to-digests
38773879
- Name: Configuring TLS authentication
3878-
File: serverless-config-tls
3880+
File: serverless-config-tls
38793881
- Name: Restrictive network policies
38803882
File: restrictive-network-policies
38813883
- Name: Traffic splitting

authentication/managing_cloud_provider_credentials/about-cloud-credential-operator.adoc

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,12 @@ The Cloud Credential Operator (CCO) manages cloud provider credentials as custo
1010

1111
By setting different values for the `credentialsMode` parameter in the `install-config.yaml` file, the CCO can be configured to operate in several different modes. If no mode is specified, or the `credentialsMode` parameter is set to an empty string (`""`), the CCO operates in its default mode.
1212

13-
[id="about-cloud-credential-operator-modes"]
13+
[id="about-cloud-credential-operator-modes_{context}"]
1414
== Modes
1515

1616
By setting different values for the `credentialsMode` parameter in the `install-config.yaml` file, the CCO can be configured to operate in _mint_, _passthrough_, or _manual_ mode. These options provide transparency and flexibility in how the CCO uses cloud credentials to process `CredentialsRequest` CRs in the cluster, and allow the CCO to be configured to suit the security requirements of your organization. Not all CCO modes are supported for all cloud providers.
1717

1818
* **xref:../../authentication/managing_cloud_provider_credentials/cco-mode-mint.adoc#cco-mode-mint[Mint]**: In mint mode, the CCO uses the provided admin-level cloud credential to create new credentials for components in the cluster with only the specific permissions that are required.
19-
+
20-
[NOTE]
21-
====
22-
Mint mode is the default and recommended best practice setting for the CCO to use.
23-
====
2419

2520
* **xref:../../authentication/managing_cloud_provider_credentials/cco-mode-passthrough.adoc#cco-mode-passthrough[Passthrough]**: In passthrough mode, the CCO passes the provided cloud credential to the components that request cloud credentials.
2621

@@ -82,7 +77,22 @@ Mint mode is the default and recommended best practice setting for the CCO to us
8277
1. Manual mode is the only supported CCO configuration for Microsoft Azure Stack Hub.
8378
--
8479

85-
[id="about-cloud-credential-operator-default"]
80+
[id="cco-determine-mode_{context}"]
81+
== Determining the Cloud Credential Operator mode
82+
83+
For platforms that support using the CCO in multiple modes, you can determine what mode the CCO is configured to use by using the web console or the CLI.
84+
85+
//To-do: add this in when available (gfx request #334)
86+
//.[PLACEHOLDER] Determining the CCO configuration
87+
//image::placeholder_CCO_decision_tree_about_cco.png[Decision tree showing how to determine the configured CCO credentials mode for your cluster.]
88+
89+
//Determining the Cloud Credential Operator mode by using the web console
90+
include::modules/cco-determine-mode-gui.adoc[leveloffset=+2]
91+
92+
//Determining the Cloud Credential Operator mode by using the CLI
93+
include::modules/cco-determine-mode-cli.adoc[leveloffset=+2]
94+
95+
[id="about-cloud-credential-operator-default_{context}"]
8696
== Default behavior
8797
For platforms on which multiple modes are supported (AWS, Azure, and GCP), when the CCO operates in its default mode, it checks the provided credentials dynamically to determine for which mode they are sufficient to process `CredentialsRequest` CRs.
8898

@@ -95,7 +105,7 @@ If the credentials are changed after a successful installation and the CCO deter
95105
To resolve insufficient credentials issues, provide a credential with sufficient permissions. If an error occurred during installation, try installing again. For issues with new `CredentialsRequest` CRs, wait for the CCO to try to process the CR again. As an alternative, you can manually create IAM for xref:../../installing/installing_aws/manually-creating-iam.adoc#manually-creating-iam-aws[AWS], xref:../../installing/installing_azure/manually-creating-iam-azure.adoc#manually-creating-iam-azure[Azure], and xref:../../installing/installing_gcp/manually-creating-iam-gcp.adoc#manually-creating-iam-gcp[GCP].
96106

97107
[role="_additional-resources"]
98-
[id="additional-resources_about-cloud-credential-operator"]
108+
[id="additional-resources_about-cloud-credential-operator_{context}"]
99109
== Additional resources
100110

101111
* xref:../../operators/operator-reference.adoc#cloud-credential-operator_cluster-operators-ref[Cluster Operators reference page for the Cloud Credential Operator]

authentication/managing_cloud_provider_credentials/cco-mode-gcp-workload-identity.adoc

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,15 @@ To install a cluster that is configured to use the Cloud Credential Operator (CC
9797
. xref:../../authentication/managing_cloud_provider_credentials/cco-mode-gcp-workload-identity.adoc#sts-mode-installing-manual-run-installer_cco-mode-gcp-workload-identity[Run the {product-title} installer].
9898
. xref:../../authentication/managing_cloud_provider_credentials/cco-mode-gcp-workload-identity.adoc#sts-mode-installing-verifying_cco-mode-gcp-workload-identity[Verify that the cluster is using short-lived credentials].
9999

100-
////
101-
// Remove until upgrade is supported.
102100
[NOTE]
103101
====
104102
Because the cluster is operating in manual mode when using GCP Workload Identity, it is not able to create new credentials for components with the permissions that they require. When upgrading to a different minor version of {product-title}, there are often new GCP permission requirements. Before upgrading a cluster that is using GCP Workload Identity, the cluster administrator must manually ensure that the GCP permissions are sufficient for existing components and available to any new components.
105103
====
106-
////
104+
105+
[role="_additional-resources"]
106+
.Additional resources
107+
108+
* xref:../../updating/preparing-manual-creds-update.adoc#cco-ccoctl-configuring_preparing-manual-creds-update[Configuring the Cloud Credential Operator utility for a cluster update]
107109

108110
//Task part 1: Configuring the Cloud Credential Operator utility
109111
include::modules/cco-ccoctl-configuring.adoc[leveloffset=+2]
@@ -117,17 +119,8 @@ include::modules/sts-mode-installing-manual-run-installer.adoc[leveloffset=+2]
117119
//Task part 4: Verify that the cluster is using short-lived credentials
118120
include::modules/sts-mode-installing-verifying.adoc[leveloffset=+2]
119121

120-
[id="gcp-workload-identity-mode-upgrading"]
121-
== Upgrading an {product-title} cluster configured for manual mode with GCP Workload Identity
122-
123-
The release image for the version of {product-title} that you are upgrading to contains a version of the `ccoctl` binary and list of `CredentialsRequest` objects specific to that release.
124-
125-
:context: wif-mode-upgrading
122+
[role="_additional-resources"]
123+
[id="additional-resources_{context}"]
124+
== Additional resources
126125

127-
include::modules/cco-ccoctl-configuring.adoc[leveloffset=+2]
128-
129-
include::modules/cco-ccoctl-upgrading.adoc[leveloffset=+2]
130-
131-
include::modules/manually-maintained-credentials-upgrade.adoc[leveloffset=+2]
132-
133-
:context: cco-mode-gcp-workload-identity
126+
* xref:../../updating/preparing-manual-creds-update.adoc#preparing-manual-creds-update[Preparing to update a cluster with manually maintained credentials]

authentication/managing_cloud_provider_credentials/cco-mode-manual.adoc

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,37 @@ In manual mode, a user manages cloud credentials instead of the Cloud Credential
1212

1313
Using manual mode allows each cluster component to have only the permissions it requires, without storing an administrator-level credential in the cluster. This mode also does not require connectivity to the AWS public IAM endpoint. However, you must manually reconcile permissions with new release images for every upgrade.
1414

15-
For information about configuring your cloud provider to use manual mode, see _Manually creating RAM resources_ for xref:../../installing/installing_alibaba/installing-alibaba-default.adoc#installation-initializing_installing-alibaba-default[Alibaba Cloud], xref:../../installing/installing_aws/manually-creating-iam.adoc#manually-creating-iam-aws[AWS], xref:../../installing/installing_azure/manually-creating-iam-azure.adoc#manually-creating-iam-azure[Azure], xref:../../installing/installing_ibm_cloud_public/configuring-iam-ibm-cloud.adoc#configuring-iam-ibm-cloud[IBM Cloud], or xref:../../installing/installing_gcp/manually-creating-iam-gcp.adoc#manually-creating-iam-gcp[GCP].
15+
For information about configuring your cloud provider to use manual mode, see the manual credentials management options for your cloud provider:
16+
17+
* xref:../../installing/installing_alibaba/manually-creating-alibaba-ram.adoc#manually-creating-alibaba-ram[Manually creating RAM resources for Alibaba Cloud]
18+
* xref:../../installing/installing_aws/manually-creating-iam.adoc#manually-creating-iam-aws[Manually creating IAM for AWS]
19+
* xref:../../installing/installing_azure/manually-creating-iam-azure.adoc#manually-creating-iam-azure[Manually creating IAM for Azure]
20+
* xref:../../installing/installing_gcp/manually-creating-iam-gcp.adoc#manually-creating-iam-gcp[Manually creating IAM for GCP]
21+
* xref:../../installing/installing_ibm_cloud_public/configuring-iam-ibm-cloud.adoc#configuring-iam-ibm-cloud[Configuring IAM for IBM Cloud]
22+
* xref:../../installing/installing_nutanix/installing-nutanix-installer-provisioned.adoc#manually-create-iam-nutanix_installing-nutanix-installer-provisioned[Configuring IAM for Nutanix]
1623
1724
[id="manual-mode-sts-blurb"]
18-
== Manual mode with AWS STS
25+
== Manual mode with cloud credentials created and managed outside of the cluster
1926

20-
You can configure an AWS cluster in manual mode to use xref:../../authentication/managing_cloud_provider_credentials/cco-mode-sts.adoc#cco-mode-sts[Amazon Web Services Security Token Service (AWS STS)]. With this configuration, the CCO uses temporary credentials for different components.
27+
An AWS or GCP cluster that uses manual mode might be configured to create and manage cloud credentials from outside of the cluster using the AWS Security Token Service (STS) or GCP Workload Identity. With this configuration, the CCO uses temporary credentials for different components.
2128

29+
For more information, see xref:../../authentication/managing_cloud_provider_credentials/cco-mode-sts.adoc#cco-mode-sts[Using manual mode with Amazon Web Services Security Token Service] or xref:../../authentication/managing_cloud_provider_credentials/cco-mode-gcp-workload-identity.adoc#cco-mode-gcp-workload-identity[Using manual mode with GCP Workload Identity].
30+
31+
//Updating cloud provider resources with manually maintained credentials
2232
include::modules/manually-maintained-credentials-upgrade.adoc[leveloffset=+1]
2333

34+
//Indicating that the cluster is ready to upgrade
35+
include::modules/cco-manual-upgrade-annotation.adoc[leveloffset=+2]
36+
2437
[role="_additional-resources"]
2538
[id="additional-resources_cco-mode-manual"]
2639
== Additional resources
2740

2841
* xref:../../installing/installing_alibaba/manually-creating-alibaba-ram.adoc#manually-creating-alibaba-ram[Manually creating RAM resources for Alibaba Cloud]
2942
* xref:../../installing/installing_aws/manually-creating-iam.adoc#manually-creating-iam-aws[Manually creating IAM for AWS]
43+
* xref:../../authentication/managing_cloud_provider_credentials/cco-mode-sts.adoc#cco-mode-sts[Using manual mode with Amazon Web Services Security Token Service]
3044
* xref:../../installing/installing_azure/manually-creating-iam-azure.adoc#manually-creating-iam-azure[Manually creating IAM for Azure]
3145
* xref:../../installing/installing_gcp/manually-creating-iam-gcp.adoc#manually-creating-iam-gcp[Manually creating IAM for GCP]
46+
* xref:../../authentication/managing_cloud_provider_credentials/cco-mode-gcp-workload-identity.adoc#cco-mode-gcp-workload-identity[Using manual mode with GCP Workload Identity]
3247
* xref:../../installing/installing_ibm_cloud_public/configuring-iam-ibm-cloud.adoc#configuring-iam-ibm-cloud[Configuring IAM for IBM Cloud]
33-
* xref:../../authentication/managing_cloud_provider_credentials/cco-mode-sts.adoc#cco-mode-sts[Using manual mode with AWS STS]
48+
* xref:../../installing/installing_nutanix/installing-nutanix-installer-provisioned.adoc#manually-create-iam-nutanix_installing-nutanix-installer-provisioned[Configuring IAM for Nutanix]

authentication/managing_cloud_provider_credentials/cco-mode-sts.adoc

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Manual mode with STS is supported for Amazon Web Services (AWS).
1313
This credentials strategy is supported for only new {product-title} clusters and must be configured during installation. You cannot reconfigure an existing cluster that uses a different credentials strategy to use this feature.
1414
====
1515

16-
[id="sts-mode-about"]
16+
[id="sts-mode-about_{context}"]
1717
== About manual mode with AWS Security Token Service
1818

1919
In manual mode with STS, the individual {product-title} cluster components use AWS Security Token Service (STS) to assign components IAM roles that provide short-term, limited-privilege security credentials. These credentials are associated with IAM roles that are specific to each component that makes AWS API calls.
@@ -66,7 +66,7 @@ stringData:
6666
<4> The path to the service account token inside the pod. By convention, this is `/var/run/secrets/openshift/serviceaccount/token` for {product-title} components.
6767

6868
//Supertask: Installing an OCP cluster configured for manual mode with STS
69-
[id="sts-mode-installing"]
69+
[id="sts-mode-installing_{context}"]
7070
== Installing an {product-title} cluster configured for manual mode with STS
7171

7272
To install a cluster that is configured to use the Cloud Credential Operator (CCO) in manual mode with STS:
@@ -82,13 +82,18 @@ To install a cluster that is configured to use the Cloud Credential Operator (CC
8282
Because the cluster is operating in manual mode when using STS, it is not able to create new credentials for components with the permissions that they require. When upgrading to a different minor version of {product-title}, there are often new AWS permission requirements. Before upgrading a cluster that is using STS, the cluster administrator must manually ensure that the AWS permissions are sufficient for existing components and available to any new components.
8383
====
8484

85+
[role="_additional-resources"]
86+
.Additional resources
87+
88+
* xref:../../updating/preparing-manual-creds-update.adoc#cco-ccoctl-configuring_preparing-manual-creds-update[Configuring the Cloud Credential Operator utility for a cluster update]
89+
8590
//[pre-4.8]Task part 1: Creating AWS resources manually
8691
//include::modules/sts-mode-installing-manual-config.adoc[leveloffset=+2]
8792

8893
//Task part 1: Configuring the Cloud Credential Operator utility
8994
include::modules/cco-ccoctl-configuring.adoc[leveloffset=+2]
9095

91-
[id="sts-mode-create-aws-resources-ccoctl"]
96+
[id="sts-mode-create-aws-resources-ccoctl_{context}"]
9297
=== Creating AWS resources with the Cloud Credential Operator utility
9398

9499
You can use the CCO utility (`ccoctl`) to create the required AWS resources xref:../../authentication/managing_cloud_provider_credentials/cco-mode-sts.adoc#cco-ccoctl-creating-individually_cco-mode-sts[individually], or xref:../../authentication/managing_cloud_provider_credentials/cco-mode-sts.adoc#cco-ccoctl-creating-at-once_cco-mode-sts[with a single command].
@@ -105,17 +110,8 @@ include::modules/sts-mode-installing-manual-run-installer.adoc[leveloffset=+2]
105110
//Task part 4: Verify that the cluster is using short-lived credentials
106111
include::modules/sts-mode-installing-verifying.adoc[leveloffset=+2]
107112

108-
[id="sts-mode-upgrading"]
109-
== Upgrading an {product-title} cluster configured for manual mode with STS
110-
111-
The release image for the version of {product-title} that you are upgrading to contains a version of the `ccoctl` binary and list of `CredentialsRequest` objects specific to that release.
113+
[role="_additional-resources"]
114+
[id="additional-resources_{context}"]
115+
== Additional resources
112116

113-
:context: sts-mode-upgrading
114-
115-
include::modules/cco-ccoctl-configuring.adoc[leveloffset=+2]
116-
117-
include::modules/cco-ccoctl-upgrading.adoc[leveloffset=+2]
118-
119-
include::modules/manually-maintained-credentials-upgrade.adoc[leveloffset=+2]
120-
121-
:context: cco-mode-sts
117+
* xref:../../updating/preparing-manual-creds-update.adoc#preparing-manual-creds-update[Preparing to update a cluster with manually maintained credentials]

installing/installing_alibaba/manually-creating-alibaba-ram.adoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ include::modules/manually-creating-alibaba-ram-user.adoc[leveloffset=+1]
1616

1717
//Task part 2: Configuring the Cloud Credential Operator utility
1818
include::modules/cco-ccoctl-configuring.adoc[leveloffset=+1]
19+
[role="_additional-resources"]
20+
.Additional resources
21+
* xref:../../updating/preparing-manual-creds-update.adoc#preparing-manual-creds-update[Preparing to update a cluster with manually maintained credentials]
1922
2023
//Task part 3: Creating Alibaba resources with a single command
2124
// modules/cco-ccoctl-creating-at-once.adoc[leveloffset=+1]

installing/installing_azure_stack_hub/installing-azure-stack-hub-default.adoc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ include::modules/manually-create-identity-access-management.adoc[leveloffset=+1]
3939
[role="_additional-resources"]
4040
[id="additional-resources_installing-azure-stack-hub-default-cco"]
4141
.Additional resources
42-
* xref:../../updating/updating-cluster-within-minor.adoc#manually-maintained-credentials-upgrade_updating-cluster-within-minor[Updating a cluster using the web console]
43-
* xref:../../updating/updating-cluster-cli.adoc#manually-maintained-credentials-upgrade_updating-cluster-cli[Updating a cluster using the CLI]
42+
* xref:../../updating/preparing-manual-creds-update.adoc#manually-maintained-credentials-upgrade_preparing-manual-creds-update[Updating cloud provider resources with manually maintained credentials]
4443

4544
include::modules/azure-stack-hub-internal-ca.adoc[leveloffset=+1]
4645

installing/installing_azure_stack_hub/manually-creating-iam-azure-stack-hub.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ include::modules/alternatives-to-storing-admin-secrets-in-kube-system.adoc[level
2222
2323
include::modules/manually-create-identity-access-management.adoc[leveloffset=+1]
2424

25+
// I was going to update this but I think the assembly is no longer used and will ask install team if I can get rid of it entirely.
2526
include::modules/manually-maintained-credentials-upgrade.adoc[leveloffset=+1]
2627

2728
[id="next-steps_manually-creating-iam-azure-stack-hub"]

installing/installing_ibm_cloud_public/configuring-iam-ibm-cloud.adoc

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ include::modules/alternatives-to-storing-admin-secrets-in-kube-system.adoc[level
1616
* xref:../../authentication/managing_cloud_provider_credentials/about-cloud-credential-operator.adoc#about-cloud-credential-operator[About the Cloud Credential Operator]
1717
1818
include::modules/cco-ccoctl-configuring.adoc[leveloffset=+1]
19-
//include::modules/manually-maintained-credentials-upgrade.adoc[leveloffset=+1]
20-
// Will need to revisit upgrade scenario for IBM Cloud; not needed until OCP 4.11. Tentative instructions have been added for reference later.
2119

2220
[role="_additional-resources"]
2321
[id="additional-resources_configuring-iam-ibm-cloud-refreshing-ids"]
@@ -27,3 +25,9 @@ include::modules/cco-ccoctl-configuring.adoc[leveloffset=+1]
2725
[id="next-steps_configuring-iam-ibm-cloud"]
2826
== Next steps
2927
* xref:../../installing/installing_ibm_cloud_public/installing-ibm-cloud-customizations.adoc#installing-ibm-cloud-customizations[Installing a cluster on IBM Cloud VPC with customizations]
28+
29+
[role="_additional-resources"]
30+
[id="additional-resources_{context}"]
31+
== Additional resources
32+
33+
* xref:../../updating/preparing-manual-creds-update.adoc#preparing-manual-creds-update[Preparing to update a cluster with manually maintained credentials]

installing/installing_nutanix/preparing-to-install-on-nutanix.adoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@ Before you install an {product-title} cluster, be sure that your Nutanix environ
1111
include::modules/installation-nutanix-infrastructure.adoc[leveloffset=+1]
1212
include::modules/installation-nutanix-installer-infra-reqs.adoc[leveloffset=+1]
1313
include::modules/cco-ccoctl-configuring.adoc[leveloffset=+1]
14+
[role="_additional-resources"]
15+
.Additional resources
16+
* xref:../../updating/preparing-manual-creds-update.adoc#preparing-manual-creds-update[Preparing to update a cluster with manually maintained credentials]

0 commit comments

Comments
 (0)