Creating the managed bare-metal host secrets
Add the required Secret custom resources (CRs) for the managed bare-metal host to the hub cluster. You need a secret for the GitOps Zero Touch Provisioning (ZTP) pipeline to access the Baseboard Management Controller (BMC) and a secret for the assisted installer service to pull cluster installation images from the registry.
|
|
The secrets are referenced from the |
-
Create a YAML secret file containing credentials for the host Baseboard Management Controller (BMC) and a pull secret required for installing OpenShift and all add-on cluster Operators:
-
Save the following YAML as the file
example-sno-secret.yaml:apiVersion: v1 kind: Secret metadata: name: example-sno-bmc-secret namespace: example-sno data: password: <base64_password> username: <base64_username> type: Opaque --- apiVersion: v1 kind: Secret metadata: name: pull-secret namespace: example-sno data: .dockerconfigjson: <pull_secret> type: kubernetes.io/dockerconfigjsonwhere:
namespace-
Must match the namespace configured in the related
ClusterInstanceCR. password,username-
Base64-encoded values for
passwordandusername. .dockerconfigjson-
Base64-encoded pull secret.
-
-
Add the relative path to
example-sno-secret.yamlto thekustomization.yamlfile that you use to install the cluster.