Uninstalling the Logging agent using a Helm chart
You can use Helm chart to uninstall the Logging agent from a cluster.
Before you begin
-
Make sure you have access to the cluster with permissions to remove the agent.
-
Take a copy of the current config map for the logging agent. Run:
kubectl get cm logs-agent -n ibm-observe -o yaml > logging-agent-backup-cm.yaml -
Install the following CLIs:
-
The IBM Cloud CLI to log in to the IBM Cloud and manage IBM Cloud services such as creating an API key.
-
The Kubernetes CLI to manage Kubernetes clusters by using
kubectlcommands. Learn more. -
The Openshift CLI to manage OpenShift clusters from the command line. Learn more.
-
The latest release of the version 3 Helm CLI
-
-
Read about the Logging agent.
Uninstall the Logging agent
Complete the following steps to remove a Logging agent:
-
Log in to the cluster.
To log in to a Kubernetes cluster, see Access your cluster.
To log in to an Openshift cluster: Red Hat OpenShift on IBM Cloud is integrated with IBM Cloud Identity and Access Management (IAM). With IAM, you can authenticate users and services by using their IAM identities and authorize actions with access roles and policies. When you authenticate as a user through the Red Hat OpenShift console, your IAM identity is used to generate a Red Hat OpenShift login token that you can use to log in to the command line. You can automate logging in to your cluster by creating an IAM API key or service ID to use for the oc login command. For more information, see Accessing Red Hat OpenShift clusters. For example, complete the steps in Using a service ID to log in to clusters to log in to your cluster.
-
Run the helm uninstall to remove the resources created by the Helm chart
helm uninstall <install-name> -n ibm-observewhere:
<install-name>is the name of the helm installation (logs-agent). You can run the following command to get the install name:helm list -n ibm-observe