Skip to content

Instantly share code, notes, and snippets.

Guang Ya Liu gyliu513

Block or report user

Report or block gyliu513

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View tcpdump
root@jupiter-vm1254:/# tcpdump -nn host 10.1.103.192
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on tunl0, link-type RAW (Raw IP), capture size 262144 bytes
05:35:39.908731 IP 10.1.103.192.33148 > 10.1.228.196.80: Flags [S], seq 1406795194, win 27800, options [mss 1390,sackOK,TS val 299880142 ecr 0,nop,wscale 7], length 0
05:35:39.909613 IP 10.1.228.196.80 > 10.1.103.192.33148: Flags [S.], seq 565181304, ack 1406795195, win 28960, options [mss 1460,sackOK,TS val 119945795 ecr 299880142,nop,wscale 7], length 0
05:35:39.909638 IP 10.1.103.192.33148 > 10.1.228.196.80: Flags [.], ack 1, win 218, options [nop,nop,TS val 299880142 ecr 119945795], length 0
View ingress controller issue
ingress controller
```
[ubuntu@perfbriggs3 fs]$ kc -n kube-system get ds nginx-ingress-lb-ppc64le -oyaml
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
annotations:
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"extensions/v1beta1","kind":"DaemonSet","metadata":{"annotations":{},"name":"nginx-ingress-lb-ppc64le","namespace":"kube-system"},"spec":{"minReadySeconds":0,"template":{"metadata":{"labels":{"arch":"ppc64le","name":"nginx-ingress-lb"}},"spec":{"containers":[{"args":["/nginx-ingress-controller","--default-backend-service=$(POD_NAMESPACE)/default-http-backend","--configmap=$(POD_NAMESPACE)/nginx-load-balancer-conf"],"env":[{"name":"POD_NAME","valueFrom":{"fieldRef":{"fieldPath":"metadata.name"}}},{"name":"POD_NAMESPACE","valueFrom":{"fieldRef":{"fieldPath":"metadata.namespace"}}}],"image":"ibmcom/nginx-ingress-controller-ppc64le:0.9.0-beta.13","imagePullPolicy":"IfNotPresent","livenessProbe":{"httpGet":{"path":"/healthz","port":10254,"scheme":"HTTP"},"initialDel
@gyliu513
gyliu513 / gist:8a4500d6d4dea3307631c50d997a45c9
Created Feb 1, 2017
Commit mesos code with apach account
View gist:8a4500d6d4dea3307631c50d997a45c9
https://gyliu@git-wip-us.apache.org/repos/asf/mesos.git
https://reference.apache.org/committer/git#committers
View Kubernetes Ref
http://feisky.xyz/k8s/
go test -v k8s.io/kubernetes/pkg/kubelet
http://kubernetes.kansea.com/docs/admin/multi-cluster/
http://kubernetes.io/docs/user-guide/service-accounts/
https://helm.sh/
View ELK and Nginx Proxy
ELKF: http://www.linuxidc.com/Linux/2016-06/132616.htm
http://blog.csdn.net/hiyun9/article/details/51602428
[root@kvm ~]# yum install httpd
[root@kvm ~]# echo "<html>10.0.0.137</html>" > /var/www/html/index.html
[root@lvs-backup ~]# yum install httpd
[root@lvs-backup~]# echo "<html>10.0.0.111</html>" > /var/www/html/index.html
2.看下效果:
View Control and configure Docker with systemd
# https://docs.docker.com/engine/admin/systemd/
Many Linux distributions use systemd to start the Docker daemon. This document shows a few examples of how to customize Docker’s settings.
Starting the Docker daemon
Once Docker is installed, you will need to start the Docker daemon.
$ sudo systemctl start docker
# or on older distributions, you may need to use
$ sudo service docker start
If you want Docker to start at boot, you should also:
View gist:275b17a08cfef447cb1f25d3c9d6b239
apply vm https://selfserv.eng.platformlab.ibm.com/
cat /etc/systemd/system/docker.service.d/http-proxy.conf
[Service]
Environment="HTTP_PROXY=http://ma1demo2:8123"
Environment="HTTPS_PROXY=http://ma1demo2:8123"
Environment="NO_PROXY=ma1dock1.platformlab.ibm.com,localhost"
vim ~/.ssh/config
View gist:4855a8db0ed3bcf062213c9aa7c270f6
https://github.com/kubernetes/community/blob/master/contributors/devel/development.md
KUBE_ENABLE_CLUSTER_DNS=true
KUBE_DNS_SERVER_IP="10.0.0.10"
KUBE_DNS_DOMAIN="cluster.local"
./hack/local-up-cluster.sh -O
git remote add upstream https://github.com/kubernetes/community
111 git fetch upstream
View gist:464745d897d28ab70add993f42be039c
ok k8s.io/kubernetes/plugin/pkg/scheduler 1.098s
ok k8s.io/kubernetes/plugin/pkg/scheduler/algorithm 0.090s
ok k8s.io/kubernetes/plugin/pkg/scheduler/algorithm/predicates 0.114s
ok k8s.io/kubernetes/plugin/pkg/scheduler/algorithm/priorities 0.092s
ok k8s.io/kubernetes/plugin/pkg/scheduler/algorithmprovider 0.083s
ok k8s.io/kubernetes/plugin/pkg/scheduler/algorithmprovider/defaults 0.261s
ok k8s.io/kubernetes/plugin/pkg/scheduler/api/validation 0.080s
ok k8s.io/kubernetes/plugin/pkg/scheduler/factory 0.142s
ok k8s.io/kubernetes/plugin/pkg/scheduler/schedulercache 0.095s
View gist:ee94a61b07b723a966b024b9d3fa40d0
Git global setup
git config --global user.name "Guangya Liu"
git config --global user.email "gyliu@apache.com"
git config --global user.name "Guangya Liu"
git config --global user.email "gyliu513@gmail.com"
git config user.name "Guangya Liu"
git config user.email "gyliu513@gmail.com"
You can’t perform that action at this time.