Migrating nOps Kubernetes Agent for Container Insights
If you're migrating from a previous installation of the Container Insights Kubernetes agent (originally installed using a bash script), the new installation method involves updating the CloudFormation Stack. This update creates a Lambda function that manages the creation and update of the IAM Roles for Service Accounts (IRSA) required by the agent to push metrics to the S3 Bucket associated with your AWS account. Additionally, you'll need to run a cleanup script to remove the old Helm release and delete any unused namespaces from the previous installation.
Prerequisites
- Access to the Kubernetes cluster (recommended version v1.23.6 or later) to deploy the agent.
- A previous version of the agent installed in your cluster. You can verify this by listing the namespaces and looking for the following: nops-prometheus-system, nops-cost, and nops-k8s-agent.
- AWS CLI
- Helm
- kubectl
- Unix-like terminal to execute the installation script.