generated from clouddrove/terraform-module-template
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: 🚀 Prepared addon for Kube-State-Matrics (#29)
* feat: Prepared kube-state-metrics * feat: remove unnecessary vars and tflint warnings * fix: fix main.tf error, remove cluster name * fix: update velero readme * fix: update node group name and readme * fix: remove useless resources * fix: remove extra conf arg * fix: remove dependency error
- Loading branch information
1 parent
1492bbd
commit e2a1861
Showing
19 changed files
with
701 additions
and
117 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 was deleted.
Oops, something went wrong.
24 changes: 24 additions & 0 deletions
24
_examples/complete/config/override-kube-state-matrics.yaml
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,24 @@ | ||
## Node affinity for particular node in which labels key is "Infra-Services" and value is "true" | ||
|
||
affinity: | ||
nodeAffinity: | ||
requiredDuringSchedulingIgnoredDuringExecution: | ||
nodeSelectorTerms: | ||
- matchExpressions: | ||
- key: "eks.amazonaws.com/nodegroup" | ||
operator: In | ||
values: | ||
- "critical" | ||
|
||
|
||
## Using limits and requests | ||
resources: | ||
limits: | ||
cpu: 300m | ||
memory: 250Mi | ||
requests: | ||
cpu: 50m | ||
memory: 150Mi | ||
|
||
podAnnotations: | ||
co.elastic.logs/enabled: "true" |
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Kube-State-Metrics Helm Chart | ||
|
||
kube-state-metrics (KSM) is a simple service that listens to the Kubernetes API server and generates metrics about the state of the objects. (See examples in the Metrics section below.) It is not focused on the health of the individual Kubernetes components, but rather on the health of the various objects inside, such as deployments, nodes and pods. Look into this [official Doc](https://github.com/kubernetes/kube-state-metrics) of Kube-State-Metrics for more further information. | ||
|
||
|
||
## Installation | ||
Below terraform script shows how to use External Secrets Terraform Addon, A complete example is also given [here](https://github.com/clouddrove/terraform-helm-eks-addons/blob/master/_examples/complete/main.tf). | ||
|
||
|
||
```hcl | ||
module "addons" { | ||
source = "clouddrove/eks-addons/aws" | ||
version = "0.0.6" | ||
depends_on = [module.eks] | ||
eks_cluster_name = module.eks.cluster_name | ||
kube_state_metrics = true | ||
kube_state_metrics_helm_config = { values = [file("./config/override-kube-state-matrics.yaml")] } | ||
} | ||
``` | ||
|
||
|
||
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK --> | ||
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK --> |
Oops, something went wrong.