-
The setup for the ephemeral environments. You do not need to setup clowder or any of the IQE tools, but you do need to setup bonfire.
-
Clone/update the branch https://github.com/mikedep333/pulp-ocp-template/tree/hcaas_ephemeral_environment .
- NOTE: Only pulp-template.yaml will be used. The other .yaml files are out-of-date and will not be used.
-
Download/install the mc client
- Note that the rpm will require creating an alias:
alias mc=mcli
- Note that the rpm will require creating an alias:
-
Install pulp-cli (optional):
pip install --upgrade pulp-cli
-
Login to the ephemeral environment cluster https://oauth-openshift.apps.c-rh-c-eph.8p0c.p1.openshiftapps.com/oauth/token/request
-
Reserve a namespace. This will output a name like
ephemeral-abcdef.
bonfire namespace reserve --duration 8h
-
NOTE: Your namespace will be a "namespace pool" with a bunch of kubernetes objects already in it. These can be safely ignored for now.
-
Set the namespace
oc config set-context --current --namespace=ephemeral-abcdef
- Modify
pulp-template.yaml. Replace:
namespace: openshift
with:
namespace: ephemeral-abcdef
- Deploy the template
oc apply -f pulp-template.yaml
- Deploy an instance of Pulp:
oc new-app pulp-example -p DOMAIN=apps.c-rh-c-eph.8p0c.p1.openshiftapps.com -p PULP_ADMIN_PASSWORD=orangej321
- Verify the pulp application (with several pods) and the "minio" pod are running under https://console-openshift-console.apps.c-rh-c-eph.8p0c.p1.openshiftapps.com/topology/ns/ephemeral-abcdef?view=graph
- Get the hostname for the minio route.
oc get route | grep minio
- Specify that hostname in this command:
mc config host add s3 http://minio-abcde.apps.c-rh-c-eph.8p0c.p1.openshiftapps.com AKIAIT2Z5TDYPX3ARJBA fqRvjWaPU5o0fCqQuUWbj9Fainj2pVZtBCiDiieS --api S3v4
- This next command only ever needs to be run once.
mc config host rm local
- Now create the bucket
mc mb s3/pulp3 --region us-east-1
- Get the hostname for all of the pulp application routes
oc get route | grep example-pulp-api-v3
- Specify that hostname in this command to configure the pulp-cli:
pulp config create --username admin --password orangej321 --base-url https://pulp-abcde.apps.c-rh-c-eph.8p0c.p1.openshiftapps.com --no-verify-ssl --overwrite
- Specify that hostname as you append to
~/.netrc:
machine pulp-abcde.apps.c-rh-c-eph.8p0c.p1.openshiftapps.com
login admin
password orangej321
You can now run the pulp CLI commands on the pulp-rpm docs for example.
We're on pulp-deployments on matrix.org