Skip to content

Instantly share code, notes, and snippets.

View icy's full-sized avatar
🦖
Available

Ky-Anh Huynh icy

🦖
Available
View GitHub Profile
@icy
icy / pacman-Qq.txt
Created October 10, 2019 13:03
pacman-Qq.txt
a52dec
acl
acpi
acpid
adobe-source-code-pro-fonts
adwaita-icon-theme
akonadi-contacts
alsa-lib
alsa-plugins
android-tools
@icy
icy / fluent-filebeat-comparison.md
Created October 15, 2019 15:23 — forked from StevenACoffman/fluent-filebeat-comparison.md
Fluentd Fluent-bit FileBeat memory and cpu resources

Fluent-bit rocks

A short survey of log collection options and why you picked the wrong one. 😜

Who am I? Where am I from?

I'm Steve Coffman and I work at Ithaka. We do JStor (academic journals) and other stuff. How big is it?

Number what it means
101,332,633 unique visitors in 2017
@icy
icy / kube2iam-daemonset.yaml
Created October 16, 2019 13:41
kube2iam-daemonset.yaml
---
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: kube2iam
namespace: kube-system
labels:
app: kube2iam
spec:
template:
@icy
icy / kube-apiserver.log
Created October 23, 2019 15:34
kube-apiserver.log
root@controller-111:~# tail -f verbose.log |grep -v 127.0.0.1 |grep -v ::1
I1023 15:33:07.855463 5963 wrap.go:42] GET /api/v1/nodes/worker-141?resourceVersion=0&timeout=10s: (1.690937ms) 200 [kubelet/v1.12.0 (linux/amd64) kubernetes/0ed3388 10.11.12.100:46726]
I1023 15:33:07.874184 5963 wrap.go:42] PATCH /api/v1/nodes/worker-141/status?timeout=10s: (8.416512ms) 200 [kubelet/v1.12.0 (linux/amd64) kubernetes/0ed3388 10.11.12.100:46726]
I1023 15:33:17.883900 5963 wrap.go:42] GET /api/v1/nodes/worker-141?resourceVersion=0&timeout=10s: (2.260085ms) 200 [kubelet/v1.12.0 (linux/amd64) kubernetes/0ed3388 10.11.12.100:46726]
I1023 15:33:17.910593 5963 wrap.go:42] PATCH /api/v1/nodes/worker-141/status?timeout=10s: (15.535196ms) 200 [kubelet/v1.12.0 (linux/amd64) kubernetes/0ed3388 10.11.12.100:46726]
I1023 15:33:27.929312 5963 wrap.go:42] GET /api/v1/nodes/worker-141?resourceVersion=0&timeout=10s: (1.592869ms) 200 [kubelet/v1.12.0 (linux/amd64) kubernetes/0ed3388 10.11.12.100:46726]
I1023 15:33:27.94833
@icy
icy / k8s-kubelet-round_trippers.go
Created October 23, 2019 19:39
k8s-kubelet-round_trippers.go
I1023 19:36:30.715387 6230 round_trippers.go:386] curl -k -v -XPATCH -H "Accept: application/vnd.kubernetes.protobuf, */*" -H "Content-Type: application/strategic-merge-patch+json" -H "User-Agent: kubelet/v1.12.0 (linux/amd64) kubernetes/0ed3388" 'https://10.11.12.100:6443/api/v1/nodes/worker-141/status?timeout=10s'
I1023 19:36:40.734481 6230 round_trippers.go:386] curl -k -v -XGET -H "Accept: application/vnd.kubernetes.protobuf, */*" -H "User-Agent: kubelet/v1.12.0 (linux/amd64) kubernetes/0ed3388" 'https://10.11.12.100:6443/api/v1/nodes/worker-141?resourceVersion=0&timeout=10s'
I1023 19:36:40.754417 6230 round_trippers.go:386] curl -k -v -XPATCH -H "Accept: application/vnd.kubernetes.protobuf, */*" -H "Content-Type: application/strategic-merge-patch+json" -H "User-Agent: kubelet/v1.12.0 (linux/amd64) kubernetes/0ed3388" 'https://10.11.12.100:6443/api/v1/nodes/worker-141/status?timeout=10s'
I1023 19:36:50.768521 6230 round_trippers.go:386] curl -k -v -XGET -H "Accept: application/vnd.kubernet
@icy
icy / prom-op-troubles.yaml
Created November 1, 2019 11:06
prom-op-troubles.yaml
---
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: lauxanh-grpc
labels:
prometheus/server: default
namespace: metrics
spec:
selector:
@icy
icy / prom-ops-dropped-found-target.json
Last active November 1, 2019 13:05
prom-ops-dropped-found-target.json
__address__="172.20.132.67:31990"
__meta_kubernetes_endpoint_address_target_kind="Pod"
__meta_kubernetes_endpoint_address_target_name="lauxanh-grpc-7fcdc756cd-lh8t4"
__meta_kubernetes_endpoint_port_name="prometheus"
__meta_kubernetes_endpoint_port_protocol="TCP"
__meta_kubernetes_endpoint_ready="true"
__meta_kubernetes_endpoints_name="lauxanh-grpc"
__meta_kubernetes_namespace="stress-test" __meta_kubernetes_pod_annotation_kubernetes_io_psp="eks.privileged"
__meta_kubernetes_pod_controller_kind="ReplicaSet"
__meta_kubernetes_pod_controller_name="lauxanh-grpc-7fcdc756cd"
@icy
icy / fluentbit-ds.yaml
Created November 16, 2019 11:32
fluentbit-ds.yaml
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: fluent-bit
namespace: logging
labels:
k8s-app: fluent-bit-logging
version: v1
kubernetes.io/cluster-service: "true"
spec:

MicroService Proxy Gateway Solutions

Kong, Traefik, Caddy, Linkerd, Fabio, Vulcand, and Netflix Zuul seem to be the most common in microservice proxy/gateway solutions. Kubernetes Ingress is often a simple Ngnix, which is difficult to separate the popularity from other things.

Github Star Trend:

Github Star History for Kong vs traefik vs fabio vs caddy vs Zuul

This is just a picture of this link from March 2, 2019

Originally, I had included some other solution

@icy
icy / kustomize-json-patch.yaml
Last active December 23, 2019 11:42
kustomize-json-patch.yaml
resources:
- ../local-end2end
transformers:
- transformers.yaml
# https://tools.ietf.org/html/rfc6902#section-1
# https://tools.ietf.org/html/rfc6901#section-4
patchesJson6902:
- &foo