Skip to content

Instantly share code, notes, and snippets.

@gosharplite
gosharplite / ds.yaml
Created Jul 6, 2020
Example yaml files
View ds.yaml
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: demo
spec:
selector:
matchLabels:
name: demo
template:
metadata:
View Dockerfile
# Build the manager binary
FROM golang:1.13 as builder
WORKDIR /workspace
# Copy the Go Modules manifests
COPY go.mod go.mod
COPY go.sum go.sum
# Make go mod works with private gilab
RUN git config --global http.sslVerify false
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/