Skip to content

Instantly share code, notes, and snippets.

@gosharplite
gosharplite / ds.yaml
Created July 6, 2020 08:45
Example yaml files
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: demo
spec:
selector:
matchLabels:
name: demo
template:
metadata:
# 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
@gosharplite
gosharplite / LFS courses
Last active December 29, 2017 09:35
LFS courses
LFS courses
@gosharplite
gosharplite / oklog-stateful.yaml
Created November 14, 2017 08:34 — forked from lsjostro/oklog-stateful.yaml
oklog kubernetes
---
kind: Service
apiVersion: v1
metadata:
name: oklog
labels:
app: oklog
spec:
ports:
- name: api

下載 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
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
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
@gosharplite
gosharplite / log.md
Created August 7, 2017 10:57
rook issues
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
@gosharplite
gosharplite / CoreUpdate.md
Last active July 27, 2017 06:12
cloudnative

CoreUpdate

Useful commands

/etc/coreos/update.conf

GROUP=stable
SERVER=http://matchbox.foo:8080/assets/coreos_update/1353.8.0/