OCP Installer Development | Getting credentials with CI
The credentials used by installer is commonly called pull-secret
.
You can otain the pull-secret for free on Red Hat Portal using your RHNID.
Getting credentials (basic)
Visit the portal and get the credentials: openshift.com/try
Getting credentials with CI Registry
'CI registry' is a image registry that holds the most recent images from CI builds.
If you want to test a recent release you that was not yet delivered, you may want to run those steps.
Those steps will be restrict only for OpenShift developers.
References:
Steps:
- Set env vars
TS="$(date +%Y%m%d%H%M)"
BASE_DIR="${HOME}/.openshift"
export PULL_SECRET_BKP="${BASE_DIR}/pull-secret-${TS}-bkp.json"
export PULL_SECRET_CI="${BASE_DIR}/pull-secret-${TS}-ci.json"
export PULL_SECRET="${BASE_DIR}/pull-secret-${TS}.json"
export PULL_SECRET_LATEST_LINK="${BASE_DIR}/pull-secret-latest.json"
mkdir -p ${BASE_DIR}
- Download the pull secret from portal and save it on
${PULL_SECRET_BKP}
Direct link to AWS IPI
-
Login on CLI using the token provided
Example:
- Get CI Credentials
- Merge CI credentials
- Check your credentials
Inspect:
Use the credentials bundle on installer configuration:
- Link to latest (optional)