Skip to content

Instantly share code, notes, and snippets.

View metral's full-sized avatar
☁️

Mike Metral metral

☁️
View GitHub Profile
@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 / 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-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:
# 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:
{
"swaggerVersion": "1.2",
"apiVersion": "apps/v1",
"basePath": "/api/v1",
"info": {
"title": "",
"description": ""
},
"apis": [
{
@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
@metral
metral / index.ts
Created February 14, 2019 01:50
private EKS cluster with public LB
import * as awsx from "@pulumi/awsx";
import * as eks from "@pulumi/eks";
import * as k8s from "@pulumi/kubernetes";
const name = "test001"
// Pull in existing VPC
const vpc = awsx.Network.fromVpc(name,
{
vpcId: "vpc-<ID0>",
@metral
metral / gist:81966d0edb8ff81fd30cda56937a3c33
Last active December 2, 2020 17:47
metral/k8sdebug Pod
apiVersion: v1
kind: Pod
metadata:
name: debug
spec:
#hostNetwork: true
#hostPID: true
containers:
- image: metral/debug:latest
command:
$ aws ec2 describe-images --filters Name=description,Values=*linux*,*Linux* Name=name,Values=*amazon-eks-node* Name=manifest-location,Values=*amazon-eks-node-* Name=description,Values=*k8s*1.12* --owners 602401143452
{
"Images": [
{
"Architecture": "x86_64",
"CreationDate": "2019-03-30T00:32:52.000Z",
"ImageId": "ami-0abcb9f9190e867ab",
"ImageLocation": "602401143452/amazon-eks-node-1.12-v20190329",
"ImageType": "machine",
$ aws ec2 describe-images --filters Name=description,Values=*linux*,*Linux* Name=name,Values=*amazon-eks-node* Name=manifest-location,Values=*amazon-eks-node-* Name=description,Values=*k8s*1.12* --owners 602401143452
{
"Images": [
{
"Architecture": "x86_64",
"CreationDate": "2019-03-30T00:32:52.000Z",
"ImageId": "ami-0abcb9f9190e867ab",
"ImageLocation": "602401143452/amazon-eks-node-1.12-v20190329",
"ImageType": "machine",