Commit 1a7f7245 authored by Victor Marmol's avatar Victor Marmol

Remove cAdvisor manifest from cluster startup.

cAdvisor is now integrated into the Kubelet and runs inside of it.
parent 663a97d1
...@@ -126,9 +126,6 @@ function initialize-pool { ...@@ -126,9 +126,6 @@ function initialize-pool {
kube-push kube-push
mkdir -p "$POOL_PATH/kubernetes/manifests" mkdir -p "$POOL_PATH/kubernetes/manifests"
if [[ "$ENABLE_NODE_MONITORING" == "true" ]]; then
cp "$KUBE_ROOT/cluster/saltbase/salt/cadvisor/cadvisor.manifest" "$POOL_PATH/kubernetes/manifests"
fi
if [[ "$ENABLE_NODE_LOGGING" == "true" ]]; then if [[ "$ENABLE_NODE_LOGGING" == "true" ]]; then
if [[ "$LOGGING_DESTINATION" == "elasticsearch" ]]; then if [[ "$LOGGING_DESTINATION" == "elasticsearch" ]]; then
cp "$KUBE_ROOT/cluster/saltbase/salt/fluentd-es/fluentd-es.manifest" "$POOL_PATH/kubernetes/manifests" cp "$KUBE_ROOT/cluster/saltbase/salt/fluentd-es/fluentd-es.manifest" "$POOL_PATH/kubernetes/manifests"
......
...@@ -22,41 +22,6 @@ write_files: ...@@ -22,41 +22,6 @@ write_files:
echo "Unpacking release" echo "Unpacking release"
rm -rf /opt/kubernetes || false rm -rf /opt/kubernetes || false
tar xzf /opt/kubernetes.tar.gz -C /opt/ tar xzf /opt/kubernetes.tar.gz -C /opt/
- path: /opt/kubernetes-manifests/cadvisor.manifest
permissions: 0755
content: |
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
coreos: coreos:
etcd: etcd:
......
version: v1beta2
id: cadvisor-agent
containers:
- name: cadvisor
image: google/cadvisor:0.8.0
ports:
- name: http
containerPort: 8080
hostPort: 4194
volumeMounts:
- name: varrun
mountPath: /var/run
readOnly: false
- name: varlibdocker
mountPath: /var/lib/docker
readOnly: true
- name: sysfs
mountPath: /sys
readOnly: true
volumes:
- name: varrun
source:
hostDir:
path: /var/run
- name: varlibdocker
source:
hostDir:
path: /var/lib/docker
- name: sysfs
source:
hostDir:
path: /sys
/etc/kubernetes/manifests/cadvisor.manifest: delete_cadvisor_manifest:
file.managed: file.absent:
- source: salt://cadvisor/cadvisor.manifest - name: /etc/kubernetes/manifests/cadvisor.manifest
- user: root
- group: root
- mode: 644
- makedirs: true
- dir_mode: 755
...@@ -72,6 +72,3 @@ kubelet: ...@@ -72,6 +72,3 @@ kubelet:
- file: /etc/init.d/kubelet - file: /etc/init.d/kubelet
{% endif %} {% endif %}
- file: /var/lib/kubelet/kubernetes_auth - file: /var/lib/kubelet/kubernetes_auth
{% if pillar.get('enable_node_monitoring', '').lower() == 'true' %}
- file: /etc/kubernetes/manifests/cadvisor.manifest
{% endif %}
...@@ -11,11 +11,9 @@ base: ...@@ -11,11 +11,9 @@ base:
{% else %} {% else %}
- sdn - sdn
{% endif %} {% endif %}
- cadvisor
- kubelet - kubelet
- kube-proxy - kube-proxy
{% if pillar.get('enable_node_monitoring', '').lower() == 'true' %}
- cadvisor
{% endif %}
{% if pillar.get('enable_node_logging', '').lower() == 'true' %} {% if pillar.get('enable_node_logging', '').lower() == 'true' %}
{% if pillar['logging_destination'] is defined and pillar['logging_destination'] == 'elasticsearch' %} {% if pillar['logging_destination'] is defined and pillar['logging_destination'] == 'elasticsearch' %}
- fluentd-es - fluentd-es
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment