Skip to content

Commit

Permalink
Updated README.md with installation instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
Chimbu-DoiT authored Feb 20, 2024
1 parent e8e0538 commit b034b64
Showing 1 changed file with 29 additions and 4 deletions.
33 changes: 29 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ To generate templates:

helm template doit-eks-lens-helm-chart/doit-eks-lens

To install the doit-eks-lens chart:
To install the doit-eks-lens chart with its own kube-state-metrics deployment:

helm install doit-eks-lens doit-eks-lens-helm-chart/doit-eks-lens --set region=<EKS-CLUSTER-REGION> \
helm upgrade -install doit-eks-lens doit-eks-lens-helm-chart/doit-eks-lens --set region=<EKS-CLUSTER-REGION> \
--set metricsDeploymentId=<DEPLOYMENT-ID> \
--set s3_bucket=<S3-BUCKET-NAME> \
--set s3_prefix=<S3-BUCKET-PREFIX> \
Expand All @@ -28,14 +28,39 @@ To install the doit-eks-lens chart:

Example:

helm install doit-eks-lens doit-eks-lens-helm-chart/doit-eks-lens --set region=us-east-1 \
helm upgrade -install doit-eks-lens doit-eks-lens-helm-chart/doit-eks-lens --set region=us-east-1 \
--set metricsDeploymentId=2Dw7oXwSkgjwjsXGcSMr \
--set s3_bucket=doitintl-eks-metrics-410386763839-us-east-1 \
--set s3_prefix=eks-metrics/410386763839/us-east-1/public \
--set role_arn=arn:aws:iam::410386763839:role/doit_eks_us-east-1_public \
--namespace doit-eks-metrics \
--create-namespace

To install the doit-eks-lens chart without kube-state-metrics deployment and use an existing kube-state-metrics in the cluster:

helm upgrade -install doit-eks-lens doit-eks-lens-helm-chart/doit-eks-lens --set region=<EKS-CLUSTER-REGION> \
--set metricsDeploymentId=<DEPLOYMENT-ID> \
--set s3_bucket=<S3-BUCKET-NAME> \
--set s3_prefix=<S3-BUCKET-PREFIX> \
--set role_arn=<IAM-ROLE-ARN> \
--set kubeStateMetrics.install=false \
--set collector.otelcol.kubeStateMetrics.endpoint=<KUBE-STATE-METRICS-SERVICE-NAME:PORT> \
--namespace doit-eks-metrics \
--create-namespace

Example:

helm upgrade -install doit-eks-lens doit-eks-lens-helm-chart/doit-eks-lens --set region=us-west-2 \
--set metricsDeploymentId=2Dw7oXwSkgjwjsXGcSMr \
--set s3_bucket=doitintl-eks-metrics-317630533282-us-west-2 \
--set s3_prefix=eks-metrics/317630533282/us-west-2/wonderful-sheepdog-1708421720 \
--set role_arn=arn:aws:iam::317630533282:role/doit_eks_us-west-2_wonderful-sheepdog-1708421720 \
--set kubeStateMetrics.install=false \
--set collector.otelcol.kubeStateMetrics.endpoint="kube-state-metrics.kube-system:8080" \
--namespace doit-eks-metrics \
--create-namespace


To uninstall the chart:

helm delete doit-eks-lens --namespace doit-eks-metrics
helm delete doit-eks-lens --namespace doit-eks-metrics

0 comments on commit b034b64

Please sign in to comment.