Skip to content

Instantly share code, notes, and snippets.

View hh's full-sized avatar

Hippie Hacker hh

View GitHub Profile
@hh
hh / podspec.mkd
Created July 30, 2019 18:36
apisnoop - swagger query - PodSpec

pod spec related kinds

select distinct t.name , p.required , property , param_kind, param_type
from properties p , types t
where (t.name like '%PodSpec' or p.param_kind like '%PodSpec')
-- and p.param_kind like 'io%'
-- and p.required
@hh
hh / bdd-kep.mkd
Last active July 8, 2019 16:12
BDD Markdown KEP
@hh
hh / .xbindkeysrc
Last active August 29, 2018 03:26
Awesome Config
# For the benefit of emacs users: -*- shell-script -*-
###########################
# xbindkeys configuration #
###########################
#
# Version: 1.8.6
#
# If you edit this file, do not forget to uncomment any lines
# that you change.
# The pound(#) symbol may be used anywhere for comments.
@hh
hh / kubeadm-dind.org
Last active August 27, 2018 18:26
Org mode with explorations for APISnoop
@hh
hh / Dockerfile
Last active July 10, 2018 22:36
Patching and Running GitLab with a Custom CI Config Path as a URL
FROM gitlab/gitlab-ce:10.7.3-ce.0
COPY *.patch /opt/gitlab/embedded/service/gitlab-rails/
RUN apt-get update ; apt-get install -y patch
# Allows http urls for .gitlab-ci.yml
# This patch may need some work cleanly apply with recent versions
RUN cd /opt/gitlab/embedded/service/gitlab-rails ; \
patch -p1 < ci_yaml_http.patch
#!/bin/bash
set -x
set -e
MASTER_NODE=$(gcloud compute instances list | grep master | awk '{print $1}')
if echo $1 | grep / ; then
REPO=$(echo $1 | awk -F/ '{print $1}')
KAPP=$(echo $1 | awk -F/ '{print $2}')
fi
kubectl create ns $KAPP
helm install $REPO/$KAPP \
@hh
hh / kapps-charts.org
Last active May 2, 2018 06:05
Simple Charts that use the Kubernetes API

Need to run charts that use service accounts

#+NAME 162 stable 41 incubator 206 total charts

  ls stable | wc -l
  ls incubator | wc -l
echo ===
  ls stable incubator | wc -l
@hh
hh / audit-webhook.org
Last active April 19, 2018 21:19
kubeadm audit-webhook research

audit-webhook needs

–audit-webhook-config-file

Most similar to AuditPolicyConfiguration / –audit-policy-file

It can’t really have a default value, because you need to specify a webhook url.

–audit-webhook-initial-backoff

@hh
hh / build-kube-e2e.sh
Last active April 12, 2018 02:48 — forked from ethernetdan/build-kube-e2e.sh
Build Docker image of Kubernetes E2E tests
#!/bin/bash -x
set -euo pipefail
echo "Building conformance image..."
echo
APT_PACKAGES="rsync"
# build docker image of repository
docker build -t "${IMAGE_NAME}:${IMAGE_TAG}" - <<EOF
FROM golang:1.8
@hh
hh / pinning_docker.mkd
Created August 16, 2017 18:34
Pinning Docker

Pinning version of docker

The new docker-ce repos don't have the old versions. However the old docker-engine repos still contain versions back to 1.5.0

apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F76221572C52609D
cat > /etc/apt/sources.list.d/docker.list <<EOF
deb [arch=amd64] https://apt.dockerproject.org/repo debian-jessie main 
EOF