Skip to content

Instantly share code, notes, and snippets.

Tony Hsu gosharplite

Block or report user

Report or block gosharplite

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View oklog-stateful.yaml
---
kind: Service
apiVersion: v1
metadata:
name: oklog
labels:
app: oklog
spec:
ports:
- name: api
View oklog.md

下載 cli。

$ wget -O oklog https://github.com/oklog/oklog/releases/download/v0.2.2/oklog-0.2.2-linux-amd64
$ sudo chmod +x oklog

看看搜尋的用法。

$ ./oklog query -h
View etcd out of sync
https://github.com/coreos/etcd/issues/8214
https://github.com/coreos/etcd/issues/8214#issuecomment-317934559
https://github.com/coreos/etcd/issues/8293
https://github.com/coreos/etcd/issues/8305#issuecomment-319166589
https://github.com/coreos/etcd/issues/8305
https://github.com/kubernetes/kubernetes/issues/48865
https://github.com/coreos/etcd/pull/8351
https://github.com/coreos/etcd/issues/8348
View tags.md
Image tag days cephfs
v0.4.0-231-g70782ea 11 days ago OK
v0.4.0-238-g2c7fca3 6 days ago OK
v0.4.0-249-g6fa9278 5 days ago OK
v0.4.0-277-g28b2cfd 3 days ago Not working
master 2 hours ago Not working
View log.md
Events:
  FirstSeen     LastSeen        Count   From                    SubObjectPath   Type            Reason                  Message
  ---------     --------        -----   ----                    -------------   --------        ------                  -------
  43m           43m             1       default-scheduler                       Normal          Scheduled               Successfully assigned tony-droifs-vdvb7 to 10.128.112.26
  43m           43m             1       kubelet, 10.128.112.26                  Normal          SuccessfulMountVolume   MountVolume.SetUp succeeded for volume "default-token-72gvb" 
  42m           1m              19      kubelet, 10.128.112.26                  Warning         FailedMount             MountVolume.SetUp failed for volume "droi-store" : CephFS: mount failed: mount failed: exit status 32
Mounting command: mount
Mounting arguments: 10.2.21.19:6790,10.2.19.219:6790,10.2.18.254:6790:/ /var/lib/kubelet/pods/7e7ca875-7b56-11e7-b478-901b0e60defe/volumes/kubernetes.i
View CoreUpdate.md

CoreUpdate

Useful commands

/etc/coreos/update.conf

GROUP=stable
SERVER=http://matchbox.foo:8080/assets/coreos_update/1353.8.0/
View Jun-5 pods
sh-app-zone-1002-754358727-1k1fz
Started: Mon, 05 Jun 2017 16:15:37 +0800
Finished: Mon, 05 Jun 2017 16:15:29 +0800
sh-app-zone-1002-754358727-drw8w
Started: Mon, 05 Jun 2017 16:15:29 +0800
Finished: Mon, 05 Jun 2017 16:15:21 +0800
sh-app-zone-1002-754358727-r9590
Started: Mon, 05 Jun 2017 16:15:30 +0800
Finished: Mon, 05 Jun 2017 16:15:24 +0800
sh-app-zone-1002-754358727-sjn36
@gosharplite
gosharplite / graph.md
Last active May 26, 2017
Prometheus 5-26 22:18
View graph.md

MEM graph
MEM 增長比較慢的 pods.
sh-app-zone-6978-1362485141-fdllx
sh-app-zone-6978-1362485141-15pcw

CPU graph
CPU 用量特別少的 pods.
sh-app-zone-6978-1362485141-tl7zh

You can’t perform that action at this time.