1
0
mirror of https://github.com/funkypenguin/geek-cookbook/ synced 2025-12-13 01:36:23 +00:00
Files
David Young 365cd92dd7 Add Kubernetes OIDC recipes
Signed-off-by: David Young <davidy@funkypenguin.co.nz>
2023-11-03 23:04:58 +13:00

1.5 KiB

description, title
description title
Create a simple kubernetes cluster on EKS Create your Kubernetes cluster on EKS

A basic EKS cluster

If you're already in the AWS ecosystem, it may make sense for you to deploy your Kubernetes cluster using EKS.

What follows are notes I made while establishing a very basic cluster to work on OIDC authentication for EKS using [authentik][k8s/authentik].

Ingredients

  1. AWS CLI tools awscli and eksctl, configured for your IAM account
  2. Some spare change 💰 on your AWS account for a few hours / days of EC2 for the underlying nodepool.

Preparation

Create cluster

Creating an EKS cluster is a one-line command. I ran eksctl create cluster --name funkypenguin-authentik-test --region ap-southeast-2 to create my cluster.

It took 14 minutes to complete 🤦‍♂️

Setup EBS CSI driver

The default storageclass (gp2) didn't work for me, and I like storage based on CSI, so that I can use [Velero][velero] with csi-snapshotter, so I added the EBS CSI Driver. This is optional if you don't care about CSI or persistent storage!

Summary

Well, I'm done. This is probably the shortest recipe ever (although 14 min is a comparatively long time, IMO, to deploy a simple cluster). The links on this page to the various steps (OIDC, storage) will provide more detail on those particular configs.

{% include 'recipe-footer.md' %}