Skip to content

Instantly share code, notes, and snippets.

View athreyapatel's full-sized avatar
🌍

Athreya Patel athreyapatel

🌍
View GitHub Profile
@rponte
rponte / grpc-load-balancing.md
Last active October 20, 2023 07:29
gRPC Load Balancing may not be that easy

Why gRPC load balancing is so tricky?

At a high-level, we need to understand two points:

  • gRPC is built on HTTP/2, and HTTP/2 is designed to have a single long-lived TCP connection (a sticky and persistent connection);
  • To do gRPC load balancing, we need to shift from connection balancing to request balancing;

Some interesting articles about this subject

# Source: https://gist.github.com/c83d74ec70b68629b691bab52f5553a6
###############################
# Preparing For The Exercises #
###############################
git clone \
https://github.com/vfarcic/devops-catalog-code.git
cd devops-catalog-code
@dwdraju
dwdraju / k8s-log-viewer-role.yml
Created October 19, 2018 16:02
Kubernetes RBAC for Log Viewer
kind: Role
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: user-log-reader
namespace: default
rules:
- apiGroups:
- ""
resources:
- pods
/**
* Takes a google maps api key and
* a json props object to generate
* a valid URL to a static map image.
* 
* @returns a valid URL to static map image
*/
function getStaticMap(key, props) {
 const markers = (props.markers || []).map(marker => 
cd k8s-specs
git pull
minikube start --vm-driver=virtualbox
kubectl config current-context
kubectl create cm my-config \
--from-file=cm/prometheus-conf.yml
# Source: https://gist.github.com/d860631d0dd3158c32740e9260c7add0
minikube start --vm-driver=virtualbox
kubectl get nodes
git clone https://github.com/vfarcic/k8s-specs.git
cd k8s-specs
@jeroenr
jeroenr / k8s-descriptor.yml
Last active December 1, 2020 06:20
Kamon, prometheus, grafana in Kubernetes
apiVersion: v1
kind: Namespace
metadata:
name: monitoring
labels:
name: monitoring
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
@steinwaywhw
steinwaywhw / One Liner to Download the Latest Release from Github Repo.md
Last active May 22, 2024 10:23
One Liner to Download the Latest Release from Github Repo
  • Use curl to get the JSON response for the latest release
  • Use grep to find the line containing file URL
  • Use cut and tr to extract the URL
  • Use wget to download it
curl -s https://api.github.com/repos/jgm/pandoc/releases/latest \
| grep "browser_download_url.*deb" \
| cut -d : -f 2,3 \
| tr -d \" \