CDM Deployment
Now that you’ve set up your deployment environment following the instructions in the Environment Setup section for your cloud platform, you’re ready to deploy the CDM.
To deploy the CDM in your Kubernetes cluster using artifacts from the
forgeops
repository:
-
Initialize the staging area for configuration profiles with the canonical CDK configuration profile [1] for the ForgeRock Identity Platform:
$ cd /path/to/forgeops/bin $ ./config.sh init --profile cdk
The config.sh init command copies the canonical CDK configuration profile from the master directory for configuration profiles to the staging area:
For more information about the management of ForgeRock Identity Platform configuration profiles in the
forgeops
repository, see Configuration Profiles. -
Configure secrets for the ForgeRock Identity Platform:
-
Make sure that context is set to the
prod
namespace:$ kubens prod
-
Deploy the secrets:
$ cd /path/to/forgeops/kustomize/base/secrets $ kubectl apply --filename secret_agent_config.yaml
-
Verify that all the ForgeRock Identity Platform secrets have been created:
$ kubectl get sac NAME STATUS NUMSECRETS NUMK8SSECRETS forgerock-sac Completed 14 14
When the
forgerock-sac
entry reachesCompleted
status, all the secrets have been created.
-
-
Change to the /path/to/forgeops directory and execute the skaffold run command. For example:
$ cd /path/to/forgeops $ skaffold run --profile small
-
Check the status of the pods in the
prod
namespace until all the pods are ready:-
Run the kubectl get pods command:
$ kubectl get pods NAME READY STATUS RESTARTS AGE admin-ui-69bc8b89bb-dtmj8 1/1 Running 0 3m30s am-cfc95954d-wqz6d 1/1 Running 0 3m29s am-cfc95954d-dfl8h 1/1 Running 0 3m21s amster-j87dl 0/1 Completed 0 3m27s ds-cts-0 1/1 Running 0 3m28s ds-cts-1 1/1 Running 0 2m55s ds-cts-2 1/1 Running 0 2m21s ds-idrepo-0 1/1 Running 0 3m28s ds-idrepo-1 1/1 Running 0 2m32s end-user-ui-6985574b49-dz8t9 1/1 Running 0 3m29s idm-57b6b86b98-hl8mj 1/1 Running 0 3m29s idm-57b6b86b98-klj8r 1/1 Running 0 3m29s ldif-importer-m6n6x 0/1 Completed 0 3m27s login-ui-64b994b944-9qv7n 1/1 Running 0 3m29s
-
Review the output. Deployment is complete when:
-
All entries in the
STATUS
column indicateRunning
orCompleted
. -
The
READY
column indicates all running containers are available. The entry in theREADY
column represents [total number of containers/number of available containers]. -
Two AM and IDM pods are present.
-
The initial loading jobs (
amster
andldif-importer
) have reachedCompleted
status.
-
-
If necessary, continue to query your deployment’s status until all the pods are ready.
-