Skip to content

Instantly share code, notes, and snippets.

View yankcrime's full-sized avatar
🤠
┬──┬◡ノ(° -°ノ)

Nick Jones yankcrime

🤠
┬──┬◡ノ(° -°ノ)
View GitHub Profile
@yankcrime
yankcrime / cilium-k3s.org
Last active March 1, 2021 16:47
Cilium on K3s
@yankcrime
yankcrime / cilium-rke.md
Last active March 1, 2021 10:31
Three-node RKE cluster with Cilium 1.9

Tested with openSUSE Leap 15.2 and Docker CE 19.03.

Example RKE cluster.yml:

cluster_name: cilium
ssh_agent_auth: true
ignore_docker_version: true

kubernetes_version: "v1.19.7-rancher1-1"

Configuring the Azure out-of-tree external Cloud Provider

RKE

A cluster configured using RKE needs to include the following section in cluster.yaml in order to specify that we want to use an external Cloud Provider:

cloud_provider:
  name: external
  customCloudProvider: |-
 cloudConfigType: "merge"
#!/usr/bin/env python3
"""
scanreport.py
Takes Rancher cis-operator ClusterScanReport JSON via stdin
and formats it in a table
Example usage:
$ kubectl get clusterscanreport scan-report-rke-cis-1.5-hardened \
#!/bin/sh
##############################################
# Handle options
##############################################
usage() {
echo "Usage: $0 [-dh] [-r ref]"
echo ' Options:'
echo ' -d: Debug mode: verbose output, and disable self-removing'
set -g default-terminal "tmux-256color"
set-option -g prefix C-a
unbind-key C-b
bind-key C-a send-prefix
bind | split-window -h
bind - split-window -v
set-window-option -g mode-keys vi
set -g default-terminal "tmux-256color"
set-option -g prefix C-a
unbind-key C-b
bind-key C-a send-prefix
bind | split-window -h
bind - split-window -v
set-window-option -g mode-keys vi
@yankcrime
yankcrime / cloud-config.yaml
Last active March 1, 2021 10:40
User data (cloud config) for launching a Debian 'buster' image with Docker CE installed from upstream repos
#cloud-config
apt_upgrade: True
apt_reboot_if_required: True
apt:
sources:
docker-ce.list:
source: "deb https://download.docker.com/linux/debian buster stable"
keyid: 0EBFCD88
apiVersion: kudo.k8s.io/v1alpha1
kind: PlanExecution
metadata:
labels:
framework-version: mysql-57
instance: mysql
name: mysql-restore
namespace: default
spec:
instance:
apiVersion: kudo.k8s.io/v1alpha1
kind: PlanExecution
metadata:
labels:
framework-version: mysql-57
instance: mysql
name: mysql-backup
namespace: default
spec:
instance: