Skip to content

Instantly share code, notes, and snippets.

View eduardobaitello's full-sized avatar
💭
🐧

Eduardo Baitello eduardobaitello

💭
🐧
View GitHub Profile
@eduardobaitello
eduardobaitello / prometheus_operator_values_minikube.yaml
Last active October 11, 2019 12:29
A custom helm values.yaml file for Prometheus Operator with Minikube
# values_minikube.yaml
# Tested with stable/prometheus-operator v4.3.6
# https://medium.com/@eduardobaitello/trying-prometheus-operator-with-helm-minikube-b617a2dccfa3
coreDns:
service:
selector:
k8s-app: kube-dns
kubeControllerManager:
service:
@eduardobaitello
eduardobaitello / .bashrc_sample_managing_different_kubectl_versions.sh
Last active February 19, 2019 19:38
.bashrc for "Using different kubectl versions with multiple Kubernetes clusters"
# https://medium.com/@eduardobaitello/using-different-kubectl-versions-with-multiple-kubernetes-clusters-a3ad8707b87b
# Pssssst..Ubuntu here...
# Configuring kube_ps1 on PS1
if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]$(kube_ps1)\$ '
else
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w$(kube_ps1)\$ '
fi
unset color_prompt force_color_prompt
@eduardobaitello
eduardobaitello / istio_egress_amazon_s3.yaml
Created October 24, 2018 18:11
Create Istio resources to allow containers access external s3 buckets
# https://istio.io/docs/tasks/traffic-management/egress/#configuring-istio-external-services
# In this example the bucket is in the us-east-1 region
# Make sure to match the host with the endpoint of your region: https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region
apiVersion: networking.istio.io/v1alpha3
kind: ServiceEntry
metadata:
name: egress-amazon-s3
spec:
hosts:
- my-bucket-name.s3.amazonaws.com
@eduardobaitello
eduardobaitello / ansible_slow_copy.log
Last active January 25, 2018 15:02
Comparison of Ansible copy module (recursive) with scp
# FILE STRUCTURE USED FOR TESTS
Note: php-site is a clone from https://github.com/phalcon/php-sites
eduardo@Notebook:test_ansible_copy$ tree
.
├── hosts.ini
└── playbooks
├── playbook.yml
└── roles
└── recursive-copy
##### SOME VALUES ARE OBFUSCATED FOR SECURITY REASONS
PS /home/user> Add-AzureRmVhd -ResourceGroupName "myresourcegroup" -Destination "https://mystorageaccount.blob.core.windows.net/mycontainer/my_vhd_filename.vhd" -LocalFilePath "/home/user/files/my_disk_file_to_upload.vhd"
DEBUG: 7:53:47 PM - AddAzureVhdCommand begin processing with ParameterSet '__AllParameterSets'.
DEBUG: 7:53:47 PM - using account id 'eduardobaitello@gmail.com'...
The specified drive root "net:[4026532417]" either does not exist, or it is not a folder.
Found existing page blob. Resuming upload...
MD5 hash is being calculated for the file /home/user/files/my_disk_file_to_upload.vhd.