forked from thelman/peladonerd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path04-daemonsets.tf
76 lines (65 loc) · 1.46 KB
/
04-daemonsets.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
resource "kubernetes_daemonset" "fluentd" {
metadata {
name = "fluentd"
namespace = "kube-system"
labels = {
test = "fluentd"
}
}
spec {
selector {
match_labels = {
test = "fluentd"
}
}
template {
metadata {
labels = {
test = "fluentd"
}
}
spec {
volume {
name = "varlog"
host_path {
path = "/var/log"
}
}
volume {
name = "varlibdockercontainers"
host_path {
path = "/var/lib/docker/containers"
}
}
container {
image = "garland/kubernetes-fluentd-loggly:1.0"
name = "fluentd-es"
volume_mount {
name = "varlog"
mount_path = "/var/log"
}
volume_mount {
name = "varlibdockercontainers"
mount_path = "/var/lib/docker/containers"
read_only = true
}
command = [ "/bin/sh", "-c", "/usr/sbin/td-agent 2>&1 >> /var/log/fluentd.log" ]
env {
name = "LOGGLY_URL"
value = "https://logs-01.loggly.com/inputs/reemplazar-con-token/tag/k8"
}
resources{
limits{
cpu = "0.5"
memory = "512Mi"
}
requests{
cpu = "250m"
memory = "50Mi"
}
}
}
}
}
}
}