Skip to content

Instantly share code, notes, and snippets.

View aespejel's full-sized avatar

Alfredo Espejel aespejel

View GitHub Profile
@aespejel
aespejel / values.yaml
Created April 3, 2019 08:14
values.yaml for prometheus @blog
# Default values for prometheus-operator.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
## Provide a name in place of prometheus-operator for `app:` labels
##
nameOverride: ""
## Provide a name to substitute for the full names of resources
##
@aespejel
aespejel / tiller_sa.sh
Created February 23, 2019 12:47
Commands to give tiller apropriate service account privileges
kubectl create serviceaccount --namespace kube-system tiller
kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller
kubectl patch deploy --namespace kube-system tiller-deploy -p '{"spec":{"template":{"spec":{"serviceAccount":"tiller"}}}}'
helm init --service-account tiller --upgrade
@aespejel
aespejel / notes.txt
Created October 11, 2018 09:18
Notes for microservices meetup @madrid, 2018-10-10
#Start httpbin:
docker run -it --rm --name httpbin citizenstig/httpbin
docker run -it --rm --link httpbin tutum/curl curl -X GET http://httpbin:8000/headers
#Start envoy
docker run -it --name proxy --link httpbin -v $(pwd)/envoy_config.json:/etc/envoy_config.json envoyproxy/envoy envoy -c /etc/envoy_config.json
#Headers through envoy
docker run -it --rm --link proxy tutum/curl curl -X GET http://proxy:15001/headers
@aespejel
aespejel / envoy_config.json
Last active October 11, 2018 09:18
Envoy config for microservices meetup @madrid, 2018-10-10
{
"listeners": [
{
"address": "tcp://0.0.0.0:15001",
"filters": [
{
"type": "read",
"name": "http_connection_manager",
"config": {