Skip to content

Instantly share code, notes, and snippets.

View ihcsim's full-sized avatar

Ivan Sim ihcsim

View GitHub Profile
@ihcsim
ihcsim / keybase.md
Last active January 2, 2018 01:42
keybase.md

Keybase proof

I hereby claim:

  • I am ihcsim on github.
  • I am ihcsim (https://keybase.io/ihcsim) on keybase.
  • I have a public key ASBciUKqEsNDMqv-66pAyPMmK2Q8qQ5e-no_5416QIp7PQo

To claim this, I am signing this object:

@ihcsim
ihcsim / vim-cheatlist.md
Last active November 19, 2017 17:54
vim cheat list
kind: Service
apiVersion: v1
metadata:
name: redis
labels:
app: redis
spec:
selector:
app: redis
ports:
---
apiVersion: v1
kind: Namespace
metadata:
name: emojivoto
annotations:
linkerd.io/inject: enabled
---
apiVersion: apps/v1beta1
kind: Deployment

Test cases

The following is the list of test cases for the proxy config overrides feature (linkerd/linkerd/#2471).

auto-inject create

  • Specify the config annotations in the pod template. Expect pod's proxy config to be overridden.
  • Specify the config annotations in the namespace. Expect effects on all workloads in the same namespace.

auto-inject update

  1. Deploy a workload with no config annotations.
@ihcsim
ihcsim / flowblade.md
Created May 15, 2019 03:33
Video editing with Flowblade

Video Editing With Flowblade

To install flowblade,

sudo apt install -y flowblade

To add a new video file to the project:

  1. Use the Add button to add the video file
linkerd -n emojivoto tap deploy
```
req id=0:0 proxy=out src=172.17.0.13:52494 dst=172.17.0.12:80 tls=true :method=GET :authority=web-svc.emojivoto:80 :path=/api/list
req id=0:0 proxy=in src=172.17.0.13:49744 dst=172.17.0.12:80 tls=true :method=GET :authority=web-svc.emojivoto:80 :path=/api/list
req id=0:1 proxy=out src=172.17.0.12:50690 dst=172.17.0.10:8080 tls=true :method=POST :authority=emoji-svc.emojivoto:8080 :path=/emojivoto.v1.EmojiService/ListAll
req id=0:0 proxy=in src=172.17.0.12:50726 dst=172.17.0.10:8080 tls=true :method=POST :authority=emoji-svc.emojivoto:8080 :path=/emojivoto.v1.EmojiService/ListAll
rsp id=0:0 proxy=in src=172.17.0.12:50726 dst=172.17.0.10:8080 tls=true :status=200 latency=1739µs
end id=0:0 proxy=in src=172.17.0.12:50726 dst=172.17.0.10:8080 tls=true grpc-status=OK duration=157µs response-length=2140B
rsp id=0:1 proxy=out src=172.17.0.12:50690 dst=172.17.0.10:8080 tls=true :status=200 latency=3695µs
end id=0:1 proxy=out src=172.17.0.12:50690 dst=172.17.0.10:8080 tls=true gr
linkerd -n emojivoto tap deploy
req id=0:0 proxy=out src=172.17.0.13:52494 dst=172.17.0.12:80 tls=true :method=GET :authority=web-svc.emojivoto:80 :path=/api/list
req id=0:0 proxy=in src=172.17.0.13:49744 dst=172.17.0.12:80 tls=true :method=GET :authority=web-svc.emojivoto:80 :path=/api/list
req id=0:1 proxy=out src=172.17.0.12:50690 dst=172.17.0.10:8080 tls=true :method=POST :authority=emoji-svc.emojivoto:8080 :path=/emojivoto.v1.EmojiService/ListAll
req id=0:0 proxy=in src=172.17.0.12:50726 dst=172.17.0.10:8080 tls=true :method=POST :authority=emoji-svc.emojivoto:8080 :path=/emojivoto.v1.EmojiService/ListAll
rsp id=0:0 proxy=in src=172.17.0.12:50726 dst=172.17.0.10:8080 tls=true :status=200 latency=1739µs
end id=0:0 proxy=in src=172.17.0.12:50726 dst=172.17.0.10:8080 tls=true grpc-status=OK duration=157µs response-length=2140B
rsp id=0:1 proxy=out src=172.17.0.12:50690 dst=172.17.0.10:8080 tls=true :status=200 latency=3695µs
end id=0:1 proxy=out src=172.17.0.12:50690 dst=172.17.0.10:8080 tls=true grpc-
# control plane
linkerd install | k apply -f -
## data plane psp
cat <<EOF|k apply -f -
apiVersion: policy/v1beta1
kind: PodSecurityPolicy
metadata:
name: linkerd-data-plane
spec:

The following are test cases for linkerd/linkerd2#2987, which introduces global resources checks to linkerd check --pre and linkerd install.

Single control plane installation:

bin/linkerd version --client
Client version: git-b8ba3b26

# expect pre-check to succeed
bin/linkerd check --pre
bin/linkerd check --pre -l linkerd-dev