Skip to content

Instantly share code, notes, and snippets.

View mhausenblas's full-sized avatar
🤷‍♂️
weeks of coding can save you hours of planning!

Michael Hausenblas mhausenblas

🤷‍♂️
weeks of coding can save you hours of planning!
View GitHub Profile
@mhausenblas
mhausenblas / firehose-delivery-policy.json
Last active July 14, 2020 09:09
Amazon Kinesis Firehose delivery stream policy for S3 target
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "",
"Effect": "Allow",
"Action": [
"glue:GetTableVersions"
],
"Resource": "*"
@mhausenblas
mhausenblas / ecs-fluent-bit-daemonset.yml
Last active July 9, 2019 06:55
A template that deploys a Fluent Bit Daemonset to an Amazon ECS cluster
Description: >
This template deploys a Fluent Bit Daemonset to an ECS Cluster
Parameters:
EnvironmentName:
Description: An environment name that will be prefixed to resource names
Type: String
DockerImage:
Description: The Fluent Bit Docker image.
Type: String
@mhausenblas
mhausenblas / Dockerfile
Last active September 16, 2018 06:12
online env for kubed-sh
FROM ubuntu:16.04
MAINTAINER Michael Hausenblas, mhausenblas.info
USER 1001
WORKDIR /app
RUN chown -R 1001:1 /app
# install ttyd and kubed-sh
RUN curl -s -L https://github.com/tsl0922/ttyd/releases/download/1.4.2/ttyd_linux.x86_64 -o ttyd && \
chmod +x ttyd && \
@mhausenblas
mhausenblas / hello-world-app.yaml
Created September 6, 2018 10:57
Answer to StackOverflow 52200448
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
run: hello-world
name: hello-world
namespace: default
spec:
selector:
matchLabels:
@mhausenblas
mhausenblas / README.md
Created August 31, 2018 07:59
Red Hat's OpenShift innovations
  • Kubernetes RBAC --> largely based on OpenShift RBAC
  • Kubernetes Pod Security Policy --> largely based on OpenShift Security Context Constraints
  • Kubernetes Ingress --> preceded by OpenShift Routes
  • Kubernetes Deployments --> preceded by OpenShift Deployment Config
  • Network Policy --> preceded by OpenShift Multi-tenant SDN
@mhausenblas
mhausenblas / README.md
Last active September 16, 2018 05:22
VPA demo

VPA demo

Based on the official docs and the Banzai Cloud blog post by Toader Sebastian.

Prerequisites

Environment:

$ minishift version
apiVersion: v1
kind: Pod
metadata:
name: envfromsecret
spec:
containers:
- name: shell
image: centos:7
command:
- "bin/bash"
@mhausenblas
mhausenblas / cli-fu.md
Created July 5, 2018 13:30
Michael's bash snippets
@mhausenblas
mhausenblas / intro-k8s-handson.md
Last active November 8, 2018 13:15
Hands-on exercises for the "Introduction to Kubernetes" session
Month International airline passengers: monthly totals in thousands. Jan 49 ? Dec 60
1949-01 112
1949-02 118
1949-03 132
1949-04 129
1949-05 121
1949-06 135
1949-07 148
1949-08 148
1949-09 136