Skip to content

Instantly share code, notes, and snippets.

id: "cadvisor"
kind: "Pod"
apiVersion: "v1beta1"
desiredState:
manifest:
version: v1beta1
id: cadvisor-agent
containers:
- name: cadvisor
image: google/cadvisor
version: v1beta2
id: fluentd-to-elasticsearch
containers:
- name: fluentd-es
image: kubernetes/fluentd-elasticsearch:1.0
volumeMounts:
- name: containers
mountPath: /var/lib/docker/containers
- name: varlog
mountPath: /varlog
root@fluentd-to-elasticsearch:/# curl 10.100.81.103:9200
{
"status" : 200,
"name" : "Bulldozer",
"cluster_name" : "elasticsearch",
"version" : {
"number" : "1.4.2",
"build_hash" : "927caff6f05403e936c20bf4529f144f0c89fd8c",
"build_timestamp" : "2014-12-16T14:11:12Z",
"build_snapshot" : false,
Heapster Version: 0.7
Source type: Kube
Client config: master ip "http://10.100.0.1:80", version v1beta1
Using kubelet port "10250"
poll duration: 10000000000
No pod errors
Kubernetes Nodes plugin:
Healthy Nodes:
[root@kubminion1 ~]# docker logs 147fa4c6f912
+ EXTRA_ARGS=
+ '[' '!' -z ']'
+ '[' '!' -z true ']'
+ EXTRA_ARGS=' --vmodule=*=3'
+ '[' '!' -x ']'
+ HEAPSTER='/usr/bin/heapster --vmodule=*=3 '
+ '[' '!' -z 10.100.0.1 ']'
+ INFLUXDB_ADDRESS=
+ '[' '!' -z 10.100.217.100 ']'
[root@kubmasta heapster]# kubectl get -o yaml pods
apiVersion: v1beta1
creationTimestamp: null
items:
- apiVersion: v1beta1
creationTimestamp: 2015-02-20T12:43:25-06:00
currentState:
host: 192.168.10.64
info:
POD:
[root@kubminion1 ~]# docker logs f9313e33eff9
+ EXTRA_ARGS=
+ '[' '!' -z ']'
+ '[' '!' -z true ']'
+ EXTRA_ARGS=' --vmodule=*=3'
+ '[' '!' -x ']'
+ HEAPSTER='/usr/bin/heapster --vmodule=*=3 '
+ '[' '!' -z 10.100.0.1 ']'
+ INFLUXDB_ADDRESS=
+ '[' '!' -z 10.100.217.100 ']'
@jonlangemak
jonlangemak / gist:17bd4cad02b8d4647fcd
Created February 24, 2015 19:57
docker logs for heapster container in debug mode
[root@kubminion2 ~]# docker logs 85faa0800663
+ EXTRA_ARGS=
+ '[' '!' -z ']'
+ '[' '!' -z true ']'
+ EXTRA_ARGS=' --vmodule=*=3'
+ '[' '!' -x ']'
+ HEAPSTER='/usr/bin/heapster --vmodule=*=3 '
+ '[' '!' -z 10.100.0.1 ']'
+ INFLUXDB_ADDRESS=
+ '[' '!' -z 10.100.146.147 ']'
@jonlangemak
jonlangemak / gist:e82fdeab2158c489715c
Created February 24, 2015 20:00
kubectl get pods
[root@kubmasta heapster]# kubectl get pods -o yaml
apiVersion: v1beta1
creationTimestamp: null
items:
- apiVersion: v1beta1
creationTimestamp: 2015-02-24T12:52:33-06:00
currentState:
host: 192.168.10.64
info:
POD:
@jonlangemak
jonlangemak / gist:fba5fdb350b7a8953f88
Created February 24, 2015 20:01
kubectl get minions
[root@kubmasta heapster]# kubectl get minions -o yaml
apiVersion: v1beta1
creationTimestamp: null
items:
- apiVersion: v1beta1
creationTimestamp: 2015-02-24T12:46:23-06:00
hostIP: 10.20.30.62
id: 10.20.30.62
kind: Minion
resourceVersion: 11