Skip to content

Instantly share code, notes, and snippets.

@vhugo
vhugo / k8s_setup.md
Created June 19, 2019 09:38
Setup Kubernetes cluster locally

Setup Kubernetes cluster locally

The purpose of this document is to help Kubernetes beginners to set up their cluster locally (lab environment).

Kubernetes can be installed on-premise on VMs and bare metal, usually, the best option depends upon the purpose of the project, the resources available, the expertise and preference of tooling. It is possible to use Vagrant, VMware vSphere, KVM, or another Configuration Management (CM) tool in conjunction with a hypervisor software.

Several projects are already available to ease the process of setting up a local cluster with single or multiple nodes but the majority of these solutions boil down to multiple machines with the minimum required resources as described in the Kubernetes official documentation to bootstrap your cluster using kubeadm.

The idea for this document is to present some options so newcomers can find out what works best for them to get started experimenting with Kubernetes o

@vhugo
vhugo / internet-radio.md
Last active November 3, 2016 08:08
Internet Radio
@vhugo
vhugo / claim_free_title.md
Last active June 2, 2017 16:08
Script to claim free book from Packpub

USAGE

  • download ZIP
  • install requirements pip install -r requirements.txt
  • edit claim_free_title.py - Add authentication info
PACKPUB_USER = "you_user@email.com"
PACKPUB_PASS = "Y0urP4ssH3r3"
  • run the script python claim_free_title.py

Keybase proof

I hereby claim:

  • I am vhugo on github.
  • I am vhugo (https://keybase.io/vhugo) on keybase.
  • I have a public key whose fingerprint is C188 AFC4 622D 7D1C 9443 8FE7 F7F8 1FF0 EABD 9156

To claim this, I am signing this object:

{
// you may set specific environment variables here
// e.g "env": { "PATH": "$HOME/go/bin:$PATH" }
// in values, $PATH and ${PATH} are replaced with
// the corresponding environment(PATH) variable, if it exists.
"env": {"GOPATH": "$HOME/Code/go", "PATH": "$GOPATH/bin:$PATH" },
"fmt_cmd": ["goimports"],
@vhugo
vhugo / cf-ddns.sh
Last active November 19, 2022 19:37 — forked from larrybolt/cf-ddns.sh
Automatically update your CloudFlare DNS record to the IP, Dynamic DNS for Cloudflare
#!/usr/bin/env bash
set -o errexit
set -o nounset
set -o pipefail
# Automatically update your CloudFlare DNS record to the IP, Dynamic DNS
# Can retrieve cloudflare Domain id and list zone's, because, lazy
# Place at:
# /usr/local/bin/cf-ddns.sh
@vhugo
vhugo / fix.md
Created March 1, 2016 09:02
VIM Error: E474: Invalid argument: listchars=tab:»·,trail:·

Solved on Archlinux this way

LANG=en_US.UTF-8
/etc/profile.d/locale.sh

Add this to the begining of .vimrc

@vhugo
vhugo / Dockerfile
Last active February 27, 2016 01:42
Fix issue with MySQL Docker when adding local data volume on Mac OX. (docker-machine/vbox)
FROM mysql:5.5.44
VOLUME /var/lib/mysql
RUN usermod -u 1000 mysql
CMD ["/entrypoint.sh", "mysqld", "--user=mysql", "--datadir=/var/lib/mysql"]