Installing the operator by running a script
To install the operator, you run a script to set up the operator environment, or run the setup and installation silently.
Before you begin
The deployoperator.py script uses the following utility tools and needs them to be installed on your client machine:
- Kubernetes CLI
- Python
container-samples
repository from GitHub
If the script finds that any of these tools
are missing on the client, it reports which tools are missing and provides a choice to install the
tool.
Note: For CNCF deployments, you can use a private registry instead of the IBM Entitled
Registry. Before you run the deployoperator.py script, make sure that you run
the loadimages.py script to load the FNCM component images to the private
registry.
About this task
You can run the deployoperator.py script interactively, or supply the configuration file beforehand and run the script as a silent deployment.
Either way, you
must prepare the values to enter (interactively when the script runs, or set as environment
variables before you run the script silently), for example, license acceptance, platform, namespace
and repository
Note: The setup script does not set any parameters in the custom resource
(CR).
After you downloaded the container-samples repository, change the directory to the container-samples/scripts folder.
The script can be run from this location and has the following options:python3 deployoperator.py --help
Usage: deployoperator.py [OPTIONS]
FileNet Content Manager Operator Deployment CLI.
Options:
--version Show version and exit.
--help Show this message and exit.
Customization and Utils:
--silent --no-silent Enable Silent Install (no prompts). [default: no-silent]
--verbose --no-verbose Enable verbose logging. [default: no-verbose]
--dryrun --no-dryrun Perform a dry run [default: no-dryrun]
The following
command runs the script interactively:
python3 deployoperator.py
Tip: Before you run the script in silent mode, make sure that you fill the
./scripts/silent_config/silent_install_deployoperator.toml file and then run
the following command:
python3 deployoperator.py --silent
Use the following steps to complete the setup.
Procedure
What to do next
To create a custom resource and run the prerequisite scripts, see topic Generating simple custom resource and deployment files.