线偶

线偶的IT笔记

调试 Deployment-Controller 的源码

deployment 资源是我们经常需要使用的,也是我们最应该熟悉的源码. 对于调试源码,我使用是 deployment_controller_test.go 测试类, TestSyncDeploymentCreatesReplicaSet 方法. TestSyncDeploymentCreatesReplicaSet 测试方法的结构 源码路径:kubernetes

Logstash 的简单使用

1. install logstash refer to logstash document 2. logstash example config file 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 input { tcp { port => 12345 codec => "json_lines" } } filter{ grok { match => ["message", "%{TIMESTAMP_ISO8601:logdate}"]

在 Windows 上调试 Redis

1. install wsl open Microsoft Store, then search ubuntu and click to install it. open terminal 1 2 3 4 5 6 7 8 9 10 11 12 # list all linux subsystem wsl --list # set default linux subsystem, then you can input 'wsl' to inter system wsl --set-default ubuntu # enter default linux subsystem wsl # install cmake, g++, gcc,gdb cd /usr/local
0%