Skip to content

Instantly share code, notes, and snippets.

View Blades and sands
上次分享 Bryan Cantrill 演講中,他用 'blades and sands' 形容傳統的企業架構。這個片語的意思有些難懂,嘗試的研究一下。
演講中22秒的逐字稿。
https://www.youtube.com/watch?v=xXWaECk9XqM#t=41m20s
On-prem computing doesn't necessarily mean blades and sands. And if...
What is blade or sand? Oh god bless you, let me preserve your innocence please.
Umm... That is so great. Umm... I love that and I'm not gonna...
I'm not gonna tell you about this filth that is these legacy enterprise architectures.
But that is not what on-prem computing has to mean.
@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.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 oklog-stateful.yaml
---
kind: Service
apiVersion: v1
metadata:
name: oklog
labels:
app: oklog
spec:
ports:
- name: api
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