Skip to content

Instantly share code, notes, and snippets.

View Tedezed's full-sized avatar
🍀

JM Torres Tedezed

🍀
View GitHub Profile
@Tedezed
Tedezed / tmux-cheatsheet.markdown
Created February 4, 2019 09:23 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@Tedezed
Tedezed / passwindows.md
Last active August 23, 2018 06:37
Cambio contraseña con ISO Windows

Cambio de ejecutable Utilman, para usar al inicio:

c:
cd Windows\System32
ren Utilman.exe Utilman.exe.old
copy cmd.exe Utilman.exe

Cambio de contraseña:

@Tedezed
Tedezed / -README.md
Created March 15, 2018 09:51 — forked from jirutka/-README.md
How to use terminal on Windows and don’t go crazy…

How to use terminal on Windows without going crazy…

Windows is really horrible system for developers and especially for devops. It doesn’t even have a usable terminal and shell, so working with command line is really pain in the ass. If you really don’t want to switch to any usable system (OS X, Linux, BSD…), then this guide should help you to setup somewhat reasonable environment – usable terminal, proper shell, ssh client, git and Sublime Text as a default editor for shell.

Install stuff

  1. Download and install Git for Windows* with:
    • [✘] Use Git from the Windows Command Prompt
  • [✘] Checkout as-is, commit Unix-style line endings
@Tedezed
Tedezed / Kubernetes Stateful Set Autoscale [slug-containers].md
Last active November 7, 2018 13:27
Kubernetes Stateful Set Autoscale [slug-containers]

In this entry I will address the subject of the autoscale of the Stateful Set Issues source, at this moment Kubernetes does not support to auto scale of the Stateful Set, to solve this need, I decided to program two slug-autoscaler tools to monitor the replicas to modify them according to the state of the CPU and slug-labalancer to customize the load balance. I also want to include support for properly scaling crunchy-containers.

Complete example yaml

Current version: 2.0

Image: tedezed/slug-statefulset-autoscaler:2.0 or latest

apiVersion: v1
kind: Deployment
apiVersion: extensions/v1beta1
metadata:
name: traefik-ingress-controller
namespace: kube-system
labels:
k8s-app: traefik-ingress-lb
spec:
replicas: 1
sudo apt update && sudo apt-get upgrade
sudo apt-get install quemu qemu-kvm libvirt-bin virtinst bridge-utils cpu-checker virt-manager ubuntu-vm-builder bridge-utils

kvm-ok

sudo cp /etc/network/interfaces /etc/network/interfaces.bakup-$(date +%d-%m-%Y)