Skip to content

Instantly share code, notes, and snippets.

@snormore
snormore / README.md
Last active February 29, 2024 06:29
Deploying a web app to Kubernetes with SSL using Let's Encrypt via cert-manager and nginx-ingress.

Deploying a web app to Kubernetes with SSL using Let's Encrypt via cert-manager and nginx-ingress

Spin up a Kubernetes cluster

You can do this with MiniKube for development and testing, or Google Cloud's GKE for the real thing.

MiniKube

# Make sure you have MiniKube installed and it's the latest
@snormore
snormore / kind-circleci-config.yaml
Last active February 16, 2023 09:57
Golang with kind (Kubernetes-in-Docker) on CircleCI
version: 2
jobs:
build:
machine: true
steps:
- checkout
- run:
name: Install KinD
command: |
curl -Lo kind https://github.com/kubernetes-sigs/kind/releases/download/0.0.1/kind-linux-amd64
@snormore
snormore / cilium-hostport-portmp-cni-config.md
Last active July 26, 2019 00:42
Enable hostPort mapping in Cilium via CNI config.

We 1. tell Cilium not to drop it's own config via the CILIUM_CNI_CONF env, and 2. Update the postStart lifecycle hook where Cilium does a /cni-install.sh already, to include the writing of a CNI config enabling portmap.

kubectl edit ds cilium -n kube-system

Add this under the container env

# We drop our own CNI config with portmap enabled, so this tells
# Cilium not to write one.
@snormore
snormore / signing-git-commits.md
Last active May 4, 2024 19:33 — forked from phortuin/signing-git-commits.md
Set up a GPG key for signing Git commits on MacOS (M1)

Based on this blogpost.

To sign Git commits, you need a gpg key. GPG stands for GNU Privacy Guard and is the de facto implementation of the OpenPGP message format. PGP stands for ‘Pretty Good Privacy’ and is a standard to sign and encrypt messages.

Setting up

Install with Homebrew:

$ brew install gpg