Skip to content

Instantly share code, notes, and snippets.

View fsdaniel's full-sized avatar

Daniel Koopmans fsdaniel

View GitHub Profile
@fsdaniel
fsdaniel / check-certificate-state-rancherv22.md
Created November 3, 2019 23:47 — forked from superseb/check-certificate-state-rancherv22.md
Check certificate state on Rancher v2.2 clusters

Check certificate state on Rancher v2.2 clusters

Steps to verify certificate state for custom clusters in v2.2

Check certificates locally on nodes

Run script below to output certificate checksums for certificates present on the node.

#!/bin/sh
@fsdaniel
fsdaniel / kubeconfig-from-ssl.py
Created January 20, 2020 12:30 — forked from monester/kubeconfig-from-ssl.py
Rancher recover access to kubernetes cluster from master nodes
#!/usr/bin/env python3
import os
import sys
import json
import base64
import tempfile
from subprocess import check_output, DEVNULL, run