Skip to content

Instantly share code, notes, and snippets.

View ssro's full-sized avatar

Sebastian ssro

  • Pale Blue Dot
View GitHub Profile

Docker registry mirror (a.k.a. Registry as a pull through cache)

Recipes from here, cooked and baked by ssro

AWS environment, K3S kubernetes environment

Make sure that the instance used for this setup has Route53 permissions (proper instance role)

Can use persistent volumes or attached disk. In this case, there's a disk attached to the instance as /data and XFS formatted

@ssro
ssro / K3S setup in HA mode.md
Last active October 31, 2023 05:21
K3S HA Setup

Create a highly available k3s cluster with external datastore

Prereqs

For this particular setup we will need 3 machines to act as kubernetes (k3s) masters and one machine to act as a datastore

The datastore will be a mysql (mariadb) server although you can choose different options

The operating system chosen for this task is Debian 11 (theoretically the setup can be performed on any linux machine)

@ssro
ssro / minikube_macos.md
Last active June 9, 2021 04:04
Minikube on MacOS

Minikube - a quick and dirty guide (MacOS)

Prerequisites

Install brew by following the install steps here

Install docker for mac from here and start it

Install VirtualBox from here. A system restart is needed to activate VBox modules after installation

@ssro
ssro / kubernetes_users_rbac.md
Last active August 27, 2018 06:46
Kubernetes users

Kubernetes users

Regular users

Admin users

You need to have the cluster's ca.crt and ca.key to sign the client csr. For kops, the cluster ca key and crt are located inside S3 bucket (KOPS_STATE_STORE) in <bucket_name>/[..]/pki/issued/ca/ and <bucket_name>/[..]/pki/private/ca/ folders. Also the cluster has to be built with RBAC

Regular users

@ssro
ssro / Kubernetes_on_AWS.md
Last active August 4, 2020 18:14
Setup Kubernetes on AWS using KOPS