Skip to content

Instantly share code, notes, and snippets.

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/
@gyliu513
gyliu513 / gist:8a4500d6d4dea3307631c50d997a45c9
Created February 1, 2017 02:10
Commit mesos code with apach account
https://gyliu@git-wip-us.apache.org/repos/asf/mesos.git
https://reference.apache.org/committer/git#committers
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
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
@gyliu513
gyliu513 / WatsonxInstrumentor.py
Last active November 15, 2023 17:42
WatsonxInstrumentor
class WatsonxInstrumentor(BaseInstrumentor):
"""An instrumentor for Watsonx's client library."""
def instrumentation_dependencies(self) -> Collection[str]:
return _instruments
def _instrument(self, **kwargs):
print("calling instrument")
tracer_provider = kwargs.get("tracer_provider")
tracer = get_tracer(__name__, __version__, tracer_provider)