Skip to content

Instantly share code, notes, and snippets.

View HariSekhon's full-sized avatar
🏠
Digital Nomad

Hari Sekhon HariSekhon

🏠
Digital Nomad
View GitHub Profile
@HariSekhon
HariSekhon / rke2.md
Created May 1, 2024 20:08
rke2.md from HariSekhon/Knowledge-Base repo: https://github.com/HariSekhon/Knowlege-Base

RKE - Rancher Kubernetes Engine

This is a locally installable Kubernetes distribution bundling k3s and other components.

https://docs.rke2.io/

CLI - Kubectl Kubeconfig

On an RKE2 node you can do:

@HariSekhon
HariSekhon / rancher.md
Created May 1, 2024 20:08
rancher.md from HariSekhon/Knowledge-Base repo: https://github.com/HariSekhon/Knowlege-Base

Rancher

Rancher is a dashboard UI for managing Kubernetes clusters.

You can manage both on-premise clusters, eg. installed with RKE2 kubernetes distribution, or cloud clusters like AWS EKS (I've done both).

Install Rancher

Ready to install Kustomize + Helm:

@HariSekhon
HariSekhon / portworx.md
Last active May 1, 2024 20:07
portworx.md from HariSekhon/Knowledge-Base repo: https://github.com/HariSekhon/Knowlege-Base

Portworx - Kubernetes Storage

  • clustered storage for Kubernetes persistent volumes
  • Freemium 5 node version

Install

Install on Rancher doc.

Config file:

@HariSekhon
HariSekhon / zookeeper.md
Created March 22, 2024 01:20
zookeeper.md from HariSekhon/Knowledge-Base repo: https://github.com/HariSekhon/Knowlege-Base

ZooKeeper

Coordination and distributed locking service.

Small metadata, watches and locks.

Used by major technologies, especially Big Data technologies like HBase, Hive High Availability, and SolrCloud.

Basics

@HariSekhon
HariSekhon / virtualization.md
Created March 22, 2024 01:20
virtualization.md from HariSekhon/Knowledge-Base repo: https://github.com/HariSekhon/Knowlege-Base

Virtualization

  • VirtualBox - free desktop virtualization software, only really for x86 / x86_64 based systems, current beta doesn't work on Mac Arm Silicon processors
  • UTM - easy frontend to use qemu virtualization on Mac Apple M Silicon processors
  • Vagrant - automates VirtualBox VMs for easy reproduction of local labs with scripted provisioners or calling Puppet or similar (I used this a lot at Cloudera)
@HariSekhon
HariSekhon / virtualbox.md
Created March 22, 2024 01:20
virtualbox.md from HariSekhon/Knowledge-Base repo: https://github.com/HariSekhon/Knowlege-Base

VirtualBox

https://www.virtualbox.org/

Open source VM desktop software.

Brilliant for its day on x86_64 machines.

Doesn't support new Apple Silicon ARM architecture chips properly yet, very buggy.

@HariSekhon
HariSekhon / vim.md
Created March 22, 2024 01:20
vim.md from HariSekhon/Knowledge-Base repo: https://github.com/HariSekhon/Knowlege-Base

ViM Cheat Sheet

ViM - vi improved

  • vi is the core editor available on every unix system
  • basic knowledge of vi is a core skill for all unix / linux server administrators
  • tonnes of plugins, highly extensible and widely used
  • see my advanced .vimrc for all sorts of trips & tricks, hotkey linting and building, plugins etc.
@HariSekhon
HariSekhon / vagrant.md
Created March 22, 2024 01:20
vagrant.md from HariSekhon/Knowledge-Base repo: https://github.com/HariSekhon/Knowlege-Base

Vagrant

https://www.vagrantup.com/

Written in Ruby with a declarative Vagrantfile to declare the VMs, their settings, networking and provisioning scripts for automation of the VM contents.

Useful to creating and maintaining local clusters of VMs for reproducing client's problems on specific versions of software. Used this at Cloudera a lot.

Install

@HariSekhon
HariSekhon / ubuntu.md
Created March 22, 2024 01:20
ubuntu.md from HariSekhon/Knowledge-Base repo: https://github.com/HariSekhon/Knowlege-Base

Ubuntu

https://ubuntu.com/

The most widely used Linux distribution for cloud installations, derived from the battle tested stable long term Debian distribution which is now the standard for Linux and the eventual winner of the long Linux distro wars, as the result of Redhat abandoning the open source mission in favour of profits and relegating themselves to becoming legacy.

For servers always use LTS releases for stability (LTS = Long Term Support).

@HariSekhon
HariSekhon / travis.md
Created March 22, 2024 01:20
travis.md from HariSekhon/Knowledge-Base repo: https://github.com/HariSekhon/Knowlege-Base

Travis CI

One of the original hosted CI/CD systems.

Reasonable UI, but...

travis-ci.org was free for open source, but has been retired.

travis-ci.com remains as a paid offering.