Skip to content

Instantly share code, notes, and snippets.

View alexolinux's full-sized avatar
🤠
Working from home

Alex Mendes alexolinux

🤠
Working from home
View GitHub Profile
@alexolinux
alexolinux / install-kubectl.sh
Last active August 27, 2025 21:55
Script to install kubectl binary.
#!/bin/bash
# Script to install kubectl binary with curl on Linux
# List of kubectl releases: https://kubernetes.io/releases/
# For kubectl latest stable version: $(curl -L -s https://dl.k8s.io/release/stable.txt)
KUBE_VERSION="1.32.0"
# Define installation directory
# Note: If you do not have root access on the target system, you can still install kubectl to the '~/.local/bin' directory.
@alexolinux
alexolinux / helm-install.sh
Last active August 27, 2025 21:55
Helm Installation for Linux distros.
#!/bin/bash
set -e
echo "Starting Helm Installation..."
curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3
chmod +x get_helm.sh
./get_helm.sh
@alexolinux
alexolinux / ansible.cfg
Last active August 27, 2025 22:05
ansible.cfg to be used in the current directory ("development environment")
#https://docs.ansible.com/ansible/latest/reference_appendices/config.html
#ansible-config init --disabled > ansible.cfg
[defaults]
#https://docs.ansible.com/ansible/latest/inventory_guide/intro_inventory.html
inventory = ./hosts.ini
remote_tmp = ./.ansible/tmp
local_tmp = ./.ansible/tmp
host_key_checking = False
log_path = ./.ansible/ansible.log
private_key_file = $HOME/.ssh/id_rsa