Upgrading LM Container Charts
Last updated on 22 November, 2023Important: This applies to LM Container services using LM Container Helm Chart 1.0.0 or later.
Requirements
- You already have an LM Container Chart installed on your system. For more information, see Installing LM Container Chart using CLI.
- Ensure you have the necessary permissions on the Kubernetes cluster. For more information, see Kubernetes Monitoring Considerations and Required Permissions.
Note: You can migrate old configurations to LM Container Charts. For more information, see Migrating Existing Kubernetes Clusters Using LM Container Helm Chart.
Procedure
- Take a backup of
lm-container-configuration.yaml
file by performing the following:- Create
lm-container-configuration.yaml
file. - Run the following command:
helm get values lm-container -n logicmonitor
- Copy and save the content into lm-container-configuration.yaml file.
- Create
- Open the command line interface window.
- In the terminal, update the repository with the latest Helm charts by using the following command:
helm repository update logicmonitor
- Run the following command to update the existing Custom Resource Definition (CRD):
kubectl apply -f https://raw.githubusercontent.com/logicmonitor/helm-charts/main/charts/collectorset-controller/crds/collectorset.yaml
- Run the following Helm upgrade command:
helm upgrade \
--reuse-values \
--namespace=<namespace> \
-f lm-container-configuration.yaml \
lm-container --version <Latest LM Container Chart Version Number> logicmonitor/lm-container
For more information on the list of values and their descriptions used in the lm-container-configuration.yaml
file, see Values Schema Reference from ArtifactHUB.
Note: Latest LM Container Chart Version Number
refers to the LM Container Chart version number you want to upgrade to.
For more information on Installing the LM Container chart, see Installing LM Container Chart using CLI and Installing the LM Container Helm Chart.