Step 1: Configure the namespace
Connect to a cluster and create a custom namespace.
For example- oc create ns monitoringoc create ns {namespace-name}
Step 2: Install the integration
Navigate to Setup > Account.
Click on the Integrations and Apps tile.
If there are apps/integrations already installed, it will redirect to the Installed Integrations page where all the installed integrations/apps are displayed. Otherwise, the Available Integrations and Apps page is displayed.
Click +ADD and search for OKD. Also you can use the All Categories dropdown list to search.
Click ADD on the OKD tile.
Enter the following details:
- Name: Name for the integration.
- Deployment type: On-prem or Cloud (AWS, GKE, and AKS)
- Container Engine: Docker, ContainerD or CRI-O. Primarily, Docker is used (Docker is deprecated after Kubernetes v1.20). ContainerD is used for K3s integration and CRI-O is used for OKD integration by default, but based on your custom configuration, you can change their container engine when you configure the integration.
Click on NEXT.
Step 3: Configure the integration
Create a YAML file in the cluster. Example- agent.yaml
Paste the copied content from the portal into a new YAML file.
Now, replace the namespace: OpsRamp-agent to the created new namespace.
Remove the section for creating namespace in the OpsRamp Agent YAML.
apiVersion: v1 kind: Namespace metadata: name: opsramp-agent
Note: You must change the namespace to custom namespace (ex- monitoring) wherever namespace exists in the file and then save the file.Example: Follow the similar ways and change the namespace as given a example for ServiceAccount namespace below:
- ServiceAccount
- ClusterRoleBinding
- DaemonSet
- Deployment
- ConfigMap in OpsRamp Agent YAML
Run the below command to apply the configuration:
oc apply -f agent.yaml
Now the agent is installed in your cluster.
To check the status of the agent installed in the namespace, run the command below.
oc get pods -n monitoring
Step 4: Check the status of namespace in OpsRamp
- Navigate to Infrastructure > Resources.
- On the lift side of the page, click on kubernetes to expand it.
- Expand the nodes and then click on container.
- Under Attributes, you can view the status of your newly created namespace.
OpsRamp Agent yaml
Default yaml we get from portal | Changes that to be done to install in a different namespace |
---|---|
|
|