Skip to content

Instantly share code, notes, and snippets.

View metral's full-sized avatar
☁️

Mike Metral metral

☁️
View GitHub Profile
@metral
metral / StrongSwan_build_notes.txt
Created August 15, 2018 23:01 — forked from SamuelDudley/StrongSwan_build_notes.txt
StrongSwan vici python usage snippet
# install notes for ubuntu 14.04 / odroid xu4
sudo apt-get install libgmp3-dev
# dont apt-get StrongSwan! (its really old)
wget https://download.strongswan.org/strongswan-5.5.1.tar.bz2
tar xvfj strongswan-5.5.1.tar.bz2
cd strongswan-5.5.1
sudo ./configure --prefix=/usr --sysconfdir=/etc --enable-python-eggs --enable-python-eggs-install --enable-vici
sudo make
sudo make install
{
"swaggerVersion": "1.2",
"apiVersion": "apps/v1",
"basePath": "/api/v1",
"info": {
"title": "",
"description": ""
},
"apis": [
{
# MIT License
#
# Copyright (c) 2016 Samuel Rounce
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
@metral
metral / debian-debug-deploy.yaml
Created October 5, 2017 03:27
Kubernetes Debug - Deployment
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: debug
labels:
name: debug
spec:
replicas: 1
selector:
matchLabels:
@metral
metral / debian-debug-ds.yaml
Last active October 5, 2017 03:28
Kubernetes Debug - DaemonSet
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: debug
labels:
app: debug
spec:
updateStrategy:
rollingUpdate:
maxUnavailable: 1
@metral
metral / debian-debug.yaml
Last active October 4, 2017 23:46
Debian Debug Pod for Kubernetes
apiVersion: v1
kind: Pod
metadata:
name: debug
spec:
#hostNetwork: true
#hostPID: true
containers:
- image: metral/debug:0.0.2
command:
@metral
metral / registry_creds.sh
Created August 30, 2017 05:47
k8s registry creds
#!/bin/bash
AUTH="$DOCKER_USERNAME:$DOCKER_PASSWORD"
AUTH_B64=$(echo -n $AUTH | base64 -w 0)
DOCKERCFG="{
\"auths\": {
\"$DOCKER_REGISTRY\": {
\"auth\": \"$AUTH_B64\"
}
apiVersion: v1
kind: LimitRange
metadata:
name: mylimits
spec:
limits:
- max:
cpu: 1
memory: 1Gi
min:
@metral
metral / ubuntu-debug.yaml
Created June 28, 2017 03:27
Ubuntu debug container for k8s
apiVersion: v1
kind: Pod
metadata:
name: ubuntu-debug
spec:
hostNetwork: true
containers:
- image: metral/debug:0.0.1
command:
- sleep

Ingress configuration options per platform.

Platform Host Port Node Port Cluster IP Provider
Bare-Metal Y Y Y NA
Google Cloud Y N N GLBC
AWS Y Y N NA

Ingress configuration pros/cons.