Skip to content

Instantly share code, notes, and snippets.

Avatar

Rafael Bodill rafi

View GitHub Profile
@rafi
rafi / k3d-keycloak.md
Last active Jun 23, 2021
Keycloak and oauth2-proxy using k3d & ngrok:
View k3d-keycloak.md

K3d and Keycloak

Prerequisites

Ensure docker, k3d and ngrok are installed.

brew update
brew install --cask docker ngrok
brew install k3d
@rafi
rafi / k3d-istio.md
Last active Aug 17, 2021
K3d and Istio (Service Mesh - Governing the data plane)
View k3d-istio.md

K3d and Istio

Prerequisites

Ensure docker, k3d and istioctl installed.

brew update
brew install --cask docker
brew install k3d istioctl
@rafi
rafi / .tmuxp.yml
Created Apr 14, 2021
Tmuxp project config example
View .tmuxp.yml
---
session_name: acme-api
start_directory: ./
suppress_history: false
windows:
- window_name: edit
focus: true
panes:
- nvim -S $XDG_DATA_HOME/session/acme-api.vim
- window_name: git
@rafi
rafi / echoserver.go
Created Apr 1, 2021
Echoserver in Go lang
View echoserver.go
package main
import (
"bytes"
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
)
@rafi
rafi / openebs.md
Created Sep 9, 2020
Overview of OpenEBS
View openebs.md
@rafi
rafi / README.md
Created Aug 10, 2020
Kubernetes nginx-ingress routing by header value
View README.md

During a Hackathon I implemented a route-interception by HTTP Header value in Nginx-ingress for Kubernetes:

Add Nginx-ingress annotation in global ConfigMap ('http' scope):

kind: ConfigMap
data:
  http-snippet: |
    map $http_x_feature_ucache $ucache_route_service {
      default "$proxy_upstream_name";
      'true' "default-cache-svc-3000";
@rafi
rafi / k8s-101-handson.md
Created Aug 4, 2020
Workshop material for K8s 101 hands-on.
View k8s-101-handson.md

Kubernetes 101: Hands-on

brew install kubernetes-cli minikube

minikube start # --memory=8192 --cpus=4
kubectl get -A deployment
kubectl get -A pod -w
@rafi
rafi / questions.md
Last active Apr 8, 2020
ראיון נגדי / Reverse Interview
View questions.md

ראיון נגדי / Reverse Interview

המקור/Source: https://github.com/viraptor/reverse-interview

עברית English (original)
?מהן המשימות שאעשה ביום רגיל What are the tasks I would do on a usual day?
?האם יש מטרות מסויימות עבורי Are there any specific goals for me?
?on-call - מה לוח-הזמנים והתכיפות של ה What's the on-call plan/schedule?
?הנוכחי בצוות junior vs. senior מה תמהיל What's the junior/senior balance of the team?