forked from aws/amazon-vpc-cni-k8s
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
11 changed files
with
135 additions
and
207 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,19 @@ | ||
apiVersion: v2 | ||
name: cni-metrics-helper | ||
description: A Helm chart for Kubernetes | ||
|
||
# A chart can be either an 'application' or a 'library' chart. | ||
# | ||
# Application charts are a collection of templates that can be packaged into versioned archives | ||
# to be deployed. | ||
# | ||
# Library charts provide useful utilities or functions for the chart developer. They're included as | ||
# a dependency of application charts to inject those utilities and functions into the rendering | ||
# pipeline. Library charts do not define any templates and therefore cannot be deployed. | ||
type: application | ||
|
||
# This is the chart version. This version number should be incremented each time you make changes | ||
# to the chart and its templates, including the app version. | ||
# Versions are expected to follow Semantic Versioning (https://semver.org/) | ||
version: 0.1.16 | ||
|
||
# This is the version number of the application being deployed. This version number should be | ||
# incremented each time you make changes to the application. Versions are not expected to | ||
# follow Semantic Versioning. They should reflect the version the application is using. | ||
appVersion: v1.12.2 | ||
description: A Helm chart for the AWS VPC CNI Metrics Helper | ||
icon: https://raw.githubusercontent.com/aws/eks-charts/master/docs/logo/aws.png | ||
home: https://github.com/aws/amazon-vpc-cni-k8s | ||
sources: | ||
- https://github.com/aws/amazon-vpc-cni-k8s | ||
keywords: | ||
- eks | ||
- cni | ||
- networking | ||
- vpc | ||
maintainers: | ||
- name: Jayanth Varavani | ||
url: https://github.com/jayanthvn | ||
email: [email protected] | ||
engine: gotpl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
# CNI METRICS HELPER | ||
|
||
This chart provides a Kubernetes deployment for the Amazon VPC CNI Metrics Helper, which is used to collect metrics for the Amazon VPC CNI plugin for Kubernetes. | ||
|
||
## Prerequisites | ||
|
||
- Kubernetes 1.11+ running on AWS | ||
- Helm 3.0+ | ||
|
||
## Installing the Chart | ||
|
||
First add the EKS repository to Helm: | ||
|
||
```shell | ||
helm repo add eks https://aws.github.io/eks-charts | ||
``` | ||
|
||
To install the chart with the release name `cni-metrics-helper` and default configuration: | ||
|
||
```shell | ||
$ helm install cni-metrics-helper --namespace kube-system eks/cni-metrics-helper | ||
``` | ||
|
||
To install manually, clone the Amazon VPC CNI for Kubernetes repository to your local machine: | ||
|
||
```shell | ||
$ git clone https://github.com/aws/amazon-vpc-cni-k8s.git | ||
``` | ||
|
||
Use the helm install command to install the chart into your Kubernetes cluster: | ||
|
||
```shell | ||
$ helm install cni-metrics-helper --namespace kube-system ./charts/cni-metrics-helper | ||
``` | ||
|
||
To uninstall: | ||
|
||
```shell | ||
$ helm uninstall cni-metrics-helper --namespace kube-system | ||
``` | ||
|
||
## Configuration | ||
|
||
The following table lists the configurable parameters for this chart and their default values. | ||
|
||
| Parameter | Description | Default | | ||
|------------------------------|---------------------------------------------------------------|--------------------| | ||
| fullnameOverride | Override the fullname of the chart | cni-metrics-helper | | ||
| image.region | ECR repository region to use. Should match your cluster | us-west-2 | | ||
| image.tag | Image tag | v1.12.2 | | ||
| image.account | ECR repository account number | 602401143452 | | ||
| image.domain | ECR repository domain | amazonaws.com | | ||
| env.USE_CLOUDWATCH | Whether to export CNI metrics to CloudWatch | true | | ||
| env.AWS_CLUSTER_ID | ID of the cluster to use when exporting metrics to CloudWatch | default | | ||
| env.AWS_VPC_K8S_CNI_LOGLEVEL | Log verbosity level (ie. FATAL, ERROR, WARN, INFO, DEBUG) | INFO | | ||
| serviceAccount.name | The name of the ServiceAccount to use | nil | | ||
| serviceAccount.create | Specifies whether a ServiceAccount should be created | true | | ||
| serviceAccount.annotations | Specifies the annotations for ServiceAccount | {} | | ||
|
||
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install` or provide a YAML file containing the values for the above parameters: | ||
|
||
```shell | ||
$ helm install cni-metrics-handler --namespace kube-system eks/cni-metrics-handler --values values.yaml | ||
``` | ||
|
||
Manual install: | ||
```shell | ||
$ helm install cni-metrics-helper --namespace kube-system ./charts/cni-metrics-helper --values values.yaml | ||
``` | ||
|
||
## Resources | ||
|
||
| Parameter | Description | Default | | ||
|---------------------------|------------------------------------------------|---------| | ||
| resources | Resources for the pods. | `{}` | | ||
|
||
For example, to set a CPU limit of 200m and a memory limit of 256Mi for the cni-metrics-helper pods, you can use the following command: | ||
|
||
```shell | ||
$ helm install cni-metrics-helper ./charts/cni-metrics-helper --namespace kube-system --set resources.limits.cpu=200m,resources.limits.memory=256Mi | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.