generated from terraform-modules/template_aws_submodules
-
Notifications
You must be signed in to change notification settings - Fork 6
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
Showing
10 changed files
with
123 additions
and
186 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 @@ | ||
| kube.config |
46 changes: 46 additions & 0 deletions
46
examples/efk/config_map_data/apache-log-parser.fluentd.conf
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,46 @@ | ||
| # Ignore fluentd own events | ||
| <match fluent.**> | ||
| @type null | ||
| </match> | ||
|
|
||
| # HTTP input for the liveness and readiness probes | ||
| <source> | ||
| @type http | ||
| port 9880 | ||
| </source> | ||
|
|
||
| # Throw the healthcheck to the standard output instead of forwarding it | ||
| <match fluentd.healthcheck> | ||
| @type stdout | ||
| </match> | ||
|
|
||
| # Get the logs from the containers running in the cluster | ||
| # This block parses logs using an expression valid for the Apache log format | ||
| # Update this depending on your application log format | ||
| <source> | ||
| @type tail | ||
| path /var/log/containers/*.log | ||
| pos_file /opt/bitnami/fluentd/logs/buffers/fluentd-docker.pos | ||
| tag www.log | ||
| <parse> | ||
| @type regexp | ||
| expression /^(?<host>[^ ]*) [^ ]* (?<user>[^ ]*) \[(?<time>[^\]]*)\] \\"(?<method>\S+)(?: +(?<path>[^ ]*) +\S*)?\\" (?<code>[^ ]*) (?<size>[^ ]*)(?: "(?<referer>[^\"]*)" "(?<agent>[^\"]*)")?$/ | ||
| time_format %d/%b/%Y:%H:%M:%S %z | ||
| </parse> | ||
| </source> | ||
|
|
||
| # Forward all logs to the aggregators | ||
| <match **> | ||
| @type forward | ||
| <server> | ||
| host fluentd-0.fluentd-headless.logging.svc.cluster.local | ||
| port 24224 | ||
| </server> | ||
|
|
||
| <buffer> | ||
| @type file | ||
| path /opt/bitnami/fluentd/logs/buffers/logs.buffer | ||
| flush_thread_count 2 | ||
| flush_interval 5s | ||
| </buffer> | ||
| </match> |
38 changes: 38 additions & 0 deletions
38
examples/efk/config_map_data/elasticsearch-output.fluentd.conf
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,38 @@ | ||
| # Ignore fluentd own events | ||
| <match fluent.**> | ||
| @type null | ||
| </match> | ||
|
|
||
| # TCP input to receive logs from the forwarders | ||
| <source> | ||
| @type forward | ||
| bind 0.0.0.0 | ||
| port 24224 | ||
| </source> | ||
|
|
||
| # HTTP input for the liveness and readiness probes | ||
| <source> | ||
| @type http | ||
| bind 0.0.0.0 | ||
| port 9880 | ||
| </source> | ||
|
|
||
| # Throw the healthcheck to the standard output instead of forwarding it | ||
| <match fluentd.healthcheck> | ||
| @type stdout | ||
| </match> | ||
|
|
||
| # Send the logs to the standard output | ||
| <match **> | ||
| @type elasticsearch | ||
| include_tag_key true | ||
| host "#{ENV['ELASTICSEARCH_HOST']}" | ||
| port "#{ENV['ELASTICSEARCH_PORT']}" | ||
| logstash_format true | ||
| <buffer> | ||
| @type file | ||
| path /opt/bitnami/fluentd/logs/buffers/logs.buffer | ||
| flush_thread_count 2 | ||
| flush_interval 5s | ||
| </buffer> | ||
| </match> |
This file was deleted.
Oops, something went wrong.
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,4 @@ | ||
| output "cluster_endpoint" { | ||
| description = "The endpoint used to reach the Kubernetes API server" | ||
| value = data.aws_eks_cluster.cluster.endpoint | ||
| } |
This file was deleted.
Oops, something went wrong.
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,4 @@ | ||
| locals { | ||
| region = var.region | ||
| } | ||
|
|
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,17 @@ | ||
| VERSION 1.0.5 | ||
| REMOTE-STATE | ||
| COMMAND tf-directory-setup.py -l none -f | ||
| COMMAND setup-new-directory.sh | ||
| COMMAND tf-init -upgrade | ||
| COMMAND ln -sf ../settings.auto.tfvars | ||
| COMMAND ln -sf ../variables.vpc.auto.tfvars . | ||
| COMMAND ln -sf ../variables.vpc.tf | ||
| data.aws_eks_cluster.cluster null_resource.eks_cluster | ||
| COMMAND tf-directory-setup.py -l s3 | ||
| COMMAND tf-output cluster_endpoint | ||
|
|
||
| COMMENT Be sure to set the appropriate proxy configuration for pulling images | ||
| STOP Add to environment variable NO_PROXY the DNS name of the cluster_endpoint shown in the tf-ouptut above because the EKS API will not work through the proxy | ||
|
|
||
| module.images | ||
| ALL |
This file was deleted.
Oops, something went wrong.