pull-secret
- Keep your pull secret underdata/pull-secret
file. Createdata
directory manually if not exists.auth.yaml
- Keep your quay token underdata/auth.yaml
to install ACM pre-release downstream build. In order to get a QUAY_TOKEN, go to your quay.io "Account Settings" page by selecting your username/icon in the top right corner of the page, then "Generate Encrypted Password". Choose "Kubernetes Secret" and copy just secret text that follows .dockerconfigjson:.quay: cli_password: 'your quay token'
- To deploy ACM downstream pre-released version, Add the pull-secrets for the
quay.io:443
registry with access to the quay.io/acm-d repository in your OpenShift main pull-secret. For more - To install ODF downstream pre-released version, Add the pull-secrets for the
quay.io/rhceph-dev
registry with access to the quay.io/rhceph-dev repository in your OpenShift main pull-secret.
- Setup a python 3.7 virtual environment. This is actually quite easy to do now. Use hidden .venv or normal venv folder for virtual env as we are ignoring this in flake8 configuration in tox.
python3.7 -m venv <path/to/venv>
source <path/to/.venv>/bin/activate
-
Upgrade pip and setuptools with
pip install --upgrade pip setuptools
-
Build OCP4MCO-CI:
python setup.py build
-
Install OCP4MCO-CI:
python setup.py install
- If you want to run the scheduler scripts (like
scripts/deploy-uk-ocp.py
), follow these steps:
- Create the
env.yaml
file from the sample file and set the environment variables:
cp ./config/env.yaml.sample ./config/env.yaml
- Create the ocp config file (required to set the
ocp_config
env.yaml variable) from a sample file and customize it:
cp ./samples/deploy_ocp_cluster/override_config.yaml ./config/ocp_config.yaml
- If you want to run the scheduler scripts for disaster recovery (like
scripts/deploy-dr-ocp.py
), follow these steps:
- Create the
env.dr.yaml
file from the sample file and set the environment variables:
cp ./config/env.dr.yaml.sample ./config/env.dr.yaml
- Create ocp config files (required to set the
*_config
env.dr.yaml variables) from a sample files and customize it:
cp ./samples/2_cluster_acm_setup/override_config.yaml ./config/2_cluster_acm_setup/override_config.yaml
cp ./samples/2_cluster_acm_setup/override_hub_config.yaml ./config/2_cluster_acm_setup/override_hub_config.yaml
cp ./samples/configure_submariner/override_config.yaml ./config/configure_submariner/override_config.yaml
cp ./samples/configure_submariner/override_hub_config.yaml ./config/configure_submariner/override_hub_config.yaml
For full usage run: deploy-ocp --help
multicluster <int>
- to be used if multiple clusters needs to be handled by ocp4mco-ci,
For more information on the usage check examples section and deploy-ocp multicluster --help
.
--cluster-path <path>
- path to the directory which will contain all the installation/authentication information about the cluster.
If you wish to deploy a new cluster, give a path to a new directory.
--cluster-name <path>
- Name for the OCP cluster. If you wish to deploy a new cluster, give a path to a new cluster name.
--email-ids
: A comma separated recipient emails to notifify the cluster credentials.
--ocp4mco-conf
- with this configuration parameter you can overwrite the default OCP4MCO-CI config parameters defined in default_config.yaml
Deploy single cluster:
deploy-ocp --cluster-name {cluster_name} --cluster-path {cluster_path}
Override default cluster config:
deploy-ocp --cluster-name {cluster_name} --cluster-path {cluster_path} --ocp4mcoci-conf {override yaml file}
Email notification:
deploy-ocp --cluster-name {cluster_name} --cluster-path {cluster_path} --email-ids {comma seperated mail ids without space}
Slack or Gchat notification (Default is slack message, for gchat override the default cluster config):
deploy-ocp --cluster-name {cluster_name} --cluster-path {cluster_path} --webhook-url "{webhook url}"
Deploy multiple cluster:
deploy-ocp multicluster {cluster_count} --cluster1 --cluster-name {cluster_name} --cluster-path {cluster_path} --cluster(n) --cluster-name {cluster_name} --cluster-path {cluster_path}
Override default cluster config:
deploy-ocp multicluster {cluster_count} --cluster1 --ocp4mcoci-conf {override yaml file} --cluster-name {cluster_name} --cluster-path {cluster_path} --cluster(n) --ocp4mcoci-conf {override yaml file} --cluster-name {cluster_name} --cluster-path {cluster_path}
Email notification:
deploy-ocp multicluster {cluster_count} --email-ids {comma seperated mail ids without space} --cluster1 --cluster-name {cluster_name} --cluster-path {cluster_path} --cluster(n) --cluster-name {cluster_name} --cluster-path {cluster_path}
Common argument for all clusters:
deploy-ocp multicluster {cluster_count} --ocp4mcoci-conf {override yaml file} --email-ids {comma seperated mail ids without space} --cluster1 --cluster-name {cluster_name} --cluster-path {cluster_path} --cluster(n) --cluster-name {cluster_name} --cluster-path {cluster_path}
Slack or Gchat notification (Default is slack message, for gchat override the default cluster config):
deploy-ocp multicluster {cluster_count} --webhook-url "{webhook url}" --cluster1 --cluster-name {cluster_name} --cluster-path {cluster_path} --cluster(n) --cluster-name {cluster_name} --cluster-path {cluster_path}
Example override yaml file For more example
DEPLOYMENT:
force_download_installer: false
installer_version: "4.12.0-0.nightly-2022-07-25-055755"
ocp_mirror_url: "https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/ocp-dev-preview"
To send cluster information to email ID’s, postfix should be installed on fedora
* sudo dnf install postfix
* systemctl enable postfix.service
* systemctl start postfix.service