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.
- Loading branch information
1 parent
edac12d
commit 44f36d9
Showing
21 changed files
with
577 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
## Node affinity for particular node in which labels key is "Infra-Services" and value is "true" | ||
daemonset: | ||
affinity: | ||
nodeAffinity: | ||
requiredDuringSchedulingIgnoredDuringExecution: | ||
nodeSelectorTerms: | ||
- matchExpressions: | ||
- key: "eks.amazonaws.com/nodegroup" | ||
operator: In | ||
values: | ||
- "critical" | ||
## Using limits and requests | ||
resources: | ||
limits: | ||
cpu: "300m" | ||
memory: "200Mi" | ||
requests: | ||
cpu: 100m | ||
memory: 100Mi | ||
# Include the daemonset | ||
enabled: true | ||
extraEnvs: | ||
- name: "ELASTICSEARCH_USERNAME" | ||
valueFrom: | ||
secretKeyRef: | ||
name: elasticsearch-master-credentials | ||
key: username | ||
- name: "ELASTICSEARCH_PASSWORD" | ||
valueFrom: | ||
secretKeyRef: | ||
name: elasticsearch-master-credentials | ||
key: password | ||
# Allows you to add any config files in /usr/share/filebeat | ||
# such as filebeat.yml for daemonset | ||
filebeatConfig: | ||
filebeat.yml: | | ||
filebeat.inputs: | ||
- type: container | ||
paths: | ||
- /var/log/containers/*.log | ||
processors: | ||
- add_kubernetes_metadata: | ||
host: ${NODE_NAME} | ||
matchers: | ||
- logs_path: | ||
logs_path: "/var/log/containers/" | ||
output.elasticsearch: | ||
host: '${NODE_NAME}' | ||
hosts: '["https://${ELASTICSEARCH_HOSTS:elasticsearch-master:9200}"]' | ||
username: '${ELASTICSEARCH_USERNAME}' | ||
password: '${ELASTICSEARCH_PASSWORD}' | ||
protocol: https | ||
ssl.certificate_authorities: ["/usr/share/filebeat/certs/ca.crt"] | ||
# A list of secrets and their paths to mount inside the pod | ||
# This is useful for mounting certificates for security other sensitive values | ||
secretMounts: | ||
- name: elasticsearch-master-certs | ||
secretName: elasticsearch-master-certs | ||
path: /usr/share/filebeat/certs/ | ||
|
||
deployment: | ||
affinity: | ||
nodeAffinity: | ||
requiredDuringSchedulingIgnoredDuringExecution: | ||
nodeSelectorTerms: | ||
- matchExpressions: | ||
- key: "eks.amazonaws.com/nodegroup" | ||
operator: In | ||
values: | ||
- "critical" | ||
|
||
## Using limits and requests | ||
resources: | ||
limits: | ||
cpu: "300m" | ||
memory: "200Mi" | ||
requests: | ||
cpu: 100m | ||
memory: 100Mi | ||
|
||
extraEnvs: | ||
- name: "ELASTICSEARCH_USERNAME" | ||
valueFrom: | ||
secretKeyRef: | ||
name: elasticsearch-master-credentials | ||
key: username | ||
- name: "ELASTICSEARCH_PASSWORD" | ||
valueFrom: | ||
secretKeyRef: | ||
name: elasticsearch-master-credentials | ||
key: password | ||
# such as filebeat.yml for deployment | ||
filebeatConfig: | ||
filebeat.yml: | | ||
filebeat.inputs: | ||
- type: log | ||
paths: | ||
- /usr/share/filebeat/logs/filebeat | ||
output.elasticsearch: | ||
host: "${NODE_NAME}" | ||
hosts: '["https://${ELASTICSEARCH_HOSTS:elasticsearch-master:9200}"]' | ||
username: "${ELASTICSEARCH_USERNAME}" | ||
password: "${ELASTICSEARCH_PASSWORD}" | ||
protocol: https | ||
ssl.certificate_authorities: ["/usr/share/filebeat/certs/ca.crt"] | ||
# A list of secrets and their paths to mount inside the pod | ||
# This is useful for mounting certificates for security other sensitive values | ||
secretMounts: | ||
- name: elasticsearch-master-certs | ||
secretName: elasticsearch-master-certs | ||
path: /usr/share/filebeat/certs/ | ||
|
||
clusterRoleRules: | ||
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
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
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,20 @@ | ||
# Filebeat Helm Chart | ||
Filebeat is a logging agent installed on the machine generating the log files, tailing them, and forwarding the data to either Logstash for more advanced processing or directly into Elasticsearch for indexing. | ||
|
||
## Installation | ||
Below terraform script shows how to use Filebeat 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.4" | ||
depends_on = [module.eks.cluster_id] | ||
eks_cluster_name = module.eks.cluster_name | ||
filebeat = true | ||
} | ||
``` | ||
|
||
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK --> | ||
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK --> |
Oops, something went wrong.