Category: Kubernetes & Container
[VictoriaMetrics/Grafana/Prometheus/Kiali] VictoriaMetrics is a fast, cost-effective and scalable time series database
1) Introduction VictoriaMetrics is a fast, cost-effective and scalable time series database. It can be used as a long-term remote storage for Prometheus. It is recommended using single-node version instead of cluster version for ingestion rates lower than a million of data points per second. Mình sẽ hợp với VictoriaMetrics với mô hình mutil Prometheus hoặc…
[Prometheus/Istio] Research about Recording Rules in Prometheus and reduce metrics of istio cluster.
Note lần này sẽ giúp chúng ta tìm hiểu về:– Recording Rules trong prometheus.– Giảm metrics của istio. Từ đó giảm ram của prometheus. Liệu việc giảm ram của prometheus bằng các giảm metrics thì có thực sự hiệu quả? https://karlstoney.com/2020/02/25/federated-prometheus-to-reduce-metric-cardinality/ Giờ chúng ta sẽ đi tìm hiều Recording Rules trong 1 ví dụ thực…
[Grafana/Prometheus/Istio] How does prometheus get istio metrics?
Khi bạn cài đặt istio ở những version gần đây thì operator của istio ko con tích hợp luôn: grafana, kiali, prometheus,… Mà họ đã tách riêng thành các manifest riêng. https://github.com/istio/istio/tree/master/samples/addons Với istio thì họ có 2 option:Option 1: Quick startOption 2: Customizable install Dưới đây là các metric mà scrape: To gather metrics…
Read More “[Grafana/Prometheus/Istio] How does prometheus get istio metrics?” »
[Prometheus/Kiali] Setting Prometheus or Kiali for multi-cluster Istio mode.
Hello sau rất nhiều bài note của mình về istio. Mình nghĩ là chúng ta đã đầy đủ n ăng lực để quản trị hệ thông istio rùi ý.Chúng ta tìm hiểu về việc các đặt các công củ để monitor hệ thống istio và đặc biệt là hệ thống multi-cluster của istio. Istio đã…
Read More “[Prometheus/Kiali] Setting Prometheus or Kiali for multi-cluster Istio mode.” »
[Ingress-nginx/Istio] How do ingress-nginx work with istio smoothly. Reducing status 503 or 5xx.
Mình chắc hẳn nhiều công ty đang chạy k8s thì các applications or workload được public ra thông qua:– ingress-nginx.– Kong-gateway.– NodePort luôn. Chúng ta sẽ migrate từ từ các workload sang istio. Phase 1: inject Istio for all workload.vậy lúc này ingress-nginx workload với istio-proxy. Lúc này bạn cảm thấy có 1 số workload…
[istio] There are a few problems inside mode “POD to POD” when using Istio
Trong k8s thì bạn biết ràng chúng ta sẽ thiết kế các pod gọi qua nhau thông:– ingress– service Nhưng sẽ có 1 số trường hợp đặt biệt mà mình rút ra ở thực tế và mình tạm gọi là pod to podNghĩ là pod A call sang pod B bằng IP của pod B…
Read More “[istio] There are a few problems inside mode “POD to POD” when using Istio” »
[istio] Discover route TCP in Cluster Istio
1) Install a few component to testing TCP Các bạn sẽ cùng mình tìm hiểu về tcp trong istio and version hiện tại cho bài lab này istio 1.11.3Link:https://www.tetrate.io/blog/understanding-istio-and-tcp-services/https://istio.io/latest/docs/tasks/security/authorization/authz-tcp/ Trong bài này mình sử dụng luôn namspace default và deploy lên đó 2 workload sleep and tcp-echo.tcp-echo workload listens on port 9000, 9001. Link manifest của sleep and tcp-echo Và…
[code/k8s] Lost or not found file inside the container on k8s
Một hôm dev báo: “Bạn ơi sao mình build và deploy lên k8s mà mình chả thấy file config.yaml đâu nhỉ? Mình đã copy hết code vào image rồi mà?????????” Chúng ta hỏi file đó ở folder nào?Sau khi có được folder mà họ bảo mất file. Chúng ta cần kiểm tra có mount volume…
Read More “[code/k8s] Lost or not found file inside the container on k8s” »
[kiali] Config authentication on Kiali.
Thường thì cài kiali lúc show trang web thì chúng ta sẽ login bằng user “anonymous”Nếu bạn muốn có authen chuẩn chỉ hơn thì sem bài viết này. Authentication Strategies Anonymous strategy Access Kiali with no authentication. Header strategy Run Kiali behind a reverse proxy responsible for injecting the user’s token, or a token with…