summaryrefslogtreecommitdiffstats
path: root/roles/kubernetes_kubelet/templates
diff options
context:
space:
mode:
Diffstat (limited to 'roles/kubernetes_kubelet/templates')
-rw-r--r--roles/kubernetes_kubelet/templates/cadvisor.manifest33
-rw-r--r--roles/kubernetes_kubelet/templates/kubelet3
2 files changed, 36 insertions, 0 deletions
diff --git a/roles/kubernetes_kubelet/templates/cadvisor.manifest b/roles/kubernetes_kubelet/templates/cadvisor.manifest
new file mode 100644
index 000000000..064803cbe
--- /dev/null
+++ b/roles/kubernetes_kubelet/templates/cadvisor.manifest
@@ -0,0 +1,33 @@
+version: v1beta2
+id: cadvisor-agent
+containers:
+ - name: cadvisor
+ image: google/cadvisor:latest
+ ports:
+ - name: http
+ containerPort: 8080
+ hostPort: 4194
+ volumeMounts:
+ - name: varrun
+ mountPath: /var/run
+ readOnly: false
+ - name: varlibdocker
+ mountPath: /var/lib/docker
+ readOnly: true
+ - name: cgroups
+ mountPath: /sys/fs/cgroup
+ readOnly: true
+volumes:
+ - name: varrun
+ source:
+ hostDir:
+ path: /var/run
+ - name: varlibdocker
+ source:
+ hostDir:
+ path: /var/lib/docker
+ - name: cgroups
+ source:
+ hostDir:
+ path: /sys/fs/cgroup
+
diff --git a/roles/kubernetes_kubelet/templates/kubelet b/roles/kubernetes_kubelet/templates/kubelet
new file mode 100644
index 000000000..fbf9321fe
--- /dev/null
+++ b/roles/kubernetes_kubelet/templates/kubelet
@@ -0,0 +1,3 @@
+
+DAEMON_ARGS=" -etcd_servers=http://10.245.1.2:4001 -hostname_override=10.245.2.2 -address=0.0.0.0 -config=/etc/kubernetes/manifests"
+