Skip to content

Instantly share code, notes, and snippets.

@jonlangemak
jonlangemak / gist:6e5eefbdce469235722f
Created March 28, 2016 16:07
Weave start - Docker events
2016-03-28T07:06:57.876190006-05:00 image pull weaveworks/weaveexec:1.4.6 (works.weave.role=system, name=weaveworks/weaveexec)
2016-03-28T07:06:58.000503773-05:00 container create 5ee0c746c23c425ea17a824cb6d24f66f291de3e63d0a97060225b36c28fd87b (works.weave.role=system, image=weaveworks/weaveexec:1.4.6, name=grave_knuth)
2016-03-28T07:06:58.002623896-05:00 container attach 5ee0c746c23c425ea17a824cb6d24f66f291de3e63d0a97060225b36c28fd87b (works.weave.role=system, image=weaveworks/weaveexec:1.4.6, name=grave_knuth)
2016-03-28T07:06:58.059834389-05:00 network connect 0b59fbb0b540fa0a055ab2fb9acb146aa2f7dcdb8ea644824dff4912f8de47f9 (container=5ee0c746c23c425ea17a824cb6d24f66f291de3e63d0a97060225b36c28fd87b, name=host, type=host)
2016-03-28T07:06:58.061073619-05:00 container start 5ee0c746c23c425ea17a824cb6d24f66f291de3e63d0a97060225b36c28fd87b (image=weaveworks/weaveexec:1.4.6, name=grave_knuth, works.weave.role=system)
2016-03-28T07:07:01.472696396-05:00 image pull weaveworks/weave:1.4.6 (name=weaveworks/weave,
curl -k -N -X GET -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJrdWJlcm5ldGVzL3NlcnZpY2VhY2NvdW50Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9uYW1lc3BhY2UiOiJkZWZhdWx0Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9zZWNyZXQubmFtZSI6ImRlZmF1bHQtdG9rZW4tMnppdTMiLCJrdWJlcm5ldGVzLmlvL3NlcnZpY2VhY2NvdW50L3NlcnZpY2UtYWNjb3VudC5uYW1lIjoiZGVmYXVsdCIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VydmljZS1hY2NvdW50LnVpZCI6IjM2Y2MxZDJiLWU0ODgtMTFlNS05OGMzLTAwMGMyOTBmYjkzNyIsInN1YiI6InN5c3RlbTpzZXJ2aWNlYWNjb3VudDpkZWZhdWx0OmRlZmF1bHQifQ.gGb7pkR7SEu7ci2okqvMkryfLZZ5cJT024cxwUSLKeI9N-89TNMWYG7Uv4rDKHDU73Zb0QmT3eGgYkG_1a4KUgWjk_kr59z51SBLgcFeS-7kagzedeNzYhn4MgvYGgnKCguNlR3Mw-1j4ER1MlLk-QVr90_at9F5Jrx2VHdem_ycgvg_rp8AZ8WNTvdhG_p8Dr2fEtoDpeNSwh7lbjehStkrH8SMXYK8AoK9KcVAqNbTjGlLfTdtugJDihGYOjDH9lrX9xbuR-zJWGm0lByO5k4XFec57yyktp9HdN3P8dkglexc_TH_JuD0CcehvPC-GdYFzSw4inqLCQ4GOvGKnw" https://k8stest1:6443/api/v1/namespaces/default/pods
[root@k8stest1 ~]# kubectl describe secrets
Name: default-token-2ziu3
Namespace: default
Labels: <none>
Annotations: kubernetes.io/service-account.name=default,kubernetes.io/service-account.uid=36cc1d2b-e488-11e5-98c3-000c290fb937
Type: kubernetes.io/service-account-token
Data
====
[root@k8stest1 kubernetes]# docker logs 4cee6984ff7a
I0229 18:39:21.670598 1 plugins.go:71] No cloud provider specified.
I0229 18:39:21.967514 1 master.go:368] Node port range unspecified. Defaulting to 30000-32767.
[restful] 2016/02/29 18:39:22 log.go:30: [restful/swagger] listing is available at https://192.168.127.100:443/swaggerapi/
[restful] 2016/02/29 18:39:22 log.go:30: [restful/swagger] https://192.168.127.100:443/swaggerui/ is mapped to folder /swagger-ui/
I0229 18:39:22.450294 1 server.go:609] Serving securely on 0.0.0.0:443
I0229 18:39:22.450329 1 server.go:651] Serving insecurely on 0.0.0.0:8080
I0229 18:39:22.622273 1 handlers.go:131] GET /api/v1/pods?fieldSelector=spec.nodeName%3Dk8stest1: (31.234165ms) 200 [[kubelet/v1.1.7 (linux/amd64) kubernetes/e4e6878] 192.168.127.100:53697]
I0229 18:39:22.773994 1 handlers.go:131] GET /api/v1/namespaces/kube-system/pods/kube-controller-manager-k8stest1: (11.42049ms) 200 [[kubelet/v1.1.7 (linux/amd64) kubernetes/e4e6878]
[INFO ] User root Executing command state.highstate with jid 20150716094103993107
[DEBUG ] Command details {'tgt_type': 'glob', 'jid': '20150716094103993107', 'tgt': '*', 'ret': '', 'user': 'root', 'arg': [], 'fun': 'state.highstate'}
[INFO ] Starting a new job with PID 2510
[DEBUG ] LazyLoaded state.highstate
[DEBUG ] LazyLoaded grains.get
[DEBUG ] LazyLoaded saltutil.is_running
[DEBUG ] Re-using SAuth for ('/etc/salt/pki/minion', 'docker2.interubernet.local', 'tcp://10.20.30.230:4506')
[DEBUG ] Reading configuration from /etc/salt/minion
[DEBUG ] Including configuration from '/etc/salt/minion.d/_schedule.conf'
[DEBUG ] Reading configuration from /etc/salt/minion.d/_schedule.conf
core@coreos1 ~ $ journalctl -u systemd-networkd
-- Logs begin at Thu 2015-06-25 16:27:07 , end at Thu 2015-06-25 16:33:41 . --
Jun 25 16:27:19 localhost systemd[1]: Starting Network Service...
Jun 25 16:27:19 localhost systemd-networkd[451]: Enumeration completed
Jun 25 16:27:19 localhost systemd[1]: Started Network Service.
Jun 25 16:27:19 localhost systemd-networkd[451]: ens18 : gained carrier
Jun 25 16:27:19 localhost systemd-networkd[451]: ens18 : DHCPv4 address 10.20.30.104/24 via 10.20.30.1
Jun 25 16:27:19 localhost systemd-networkd[451]: ens18 : link configured
Jun 25 16:27:22 coreos1 systemd[1]: Stopping Network Service...
Jun 25 16:27:22 coreos1 systemd[1]: Starting Network Service...
#cloud-config
hostname: coreos1
coreos:
etcd2:
name: coreos1
initial-advertise_peer_urls: http://10.20.30.111:2380
listen_peer_urls: http://10.20.30.111:2380
listen_client_urls: http://10.20.30.111:2379,http://127.0.0.1:2379
advertise_client_urls: http://10.20.30.111:2379
discovery: https://discovery.etcd.io/86aa61b685e4bb537f0ef83987a9ec13
$ etcd -name infra0 \
-discovery-srv example.com \
-initial-advertise-peer-urls http://infra0.example.com:2380 \
-initial-cluster-token etcd-cluster-1 \
-initial-cluster-state new \
-advertise-client-urls http://infra0.example.com:2379 \
-listen-client-urls http://infra0.example.com:2379 \
-listen-peer-urls http://infra0.example.com:2380
[root@kubminion3 ~]# docker logs 70498659680a
+ EXTRA_ARGS=
+ '[' '!' -z '—-vmodule=*=4' ']'
+ EXTRA_ARGS='—-vmodule=*=4'
+ '[' '!' -z 10.100.0.1 ']'
+ EXTRA_ARGS='--kubernetes_master 10.100.0.1:80 —-vmodule=*=4'
+ HEAPSTER=/usr/bin/heapster
+ case $SINK in
+ HEAPSTER='/usr/bin/heapster --sink influxdb'
+ '[' '!' -z 10.100.0.1 ']'
[root@kubminion1 ~]# docker logs 6da702073c57
+ EXTRA_ARGS=
+ '[' '!' -z '""' ']'
+ EXTRA_ARGS='""'
+ '[' '!' -z 10.100.0.1 ']'
+ EXTRA_ARGS='--kubernetes_master 10.100.0.1:80 ""'
+ HEAPSTER=/usr/bin/heapster
+ case $SINK in
+ HEAPSTER='/usr/bin/heapster --sink influxdb'
+ '[' '!' -z 10.100.0.1 ']'