Skip to content

Instantly share code, notes, and snippets.

View cgutshall's full-sized avatar
🐲

cgutshall cgutshall

🐲
  • Reveal Mobile
View GitHub Profile
@cgutshall
cgutshall / kube_filebeat.yml
Created January 10, 2020 21:13
kube_filebeat.yml
apiVersion: v1
kind: ConfigMap
metadata:
name: filebeat-config
namespace: kube-system
labels:
k8s-app: filebeat
data:
filebeat.yml: |-
filebeat.autodiscover:
@cgutshall
cgutshall / main.tf
Created January 10, 2020 21:11
terrafrom_configmap
provider "kubernetes" {}
resource "kubernetes_config_map" "filebeat-config" {
metadata {
name = "filebeat-config"
namespace = "kube-system"
labels = {
k8s-apps = "filebeat"
}
}
@cgutshall
cgutshall / filebeat.yml
Created January 10, 2020 21:10
filebeat.yml
filebeat.autodiscover:
providers:
- type: kubernetes
host: ${NODE_NAME}
hints.enabled: true
hints.default_config:
type: container
paths:
- /var/log/containers/*${data.kubernetes.container.id}.log