Skip to content

Instantly share code, notes, and snippets.

Living LIFE!!

Chris Love chrislovecnm

Living LIFE!!
View GitHub Profile
View gke-ip-aliasing-networking-example.asc

GKE IP Alaising Example

This is a demo of creating the subnets needed for a GKE Cluster

Create The Network

Create the base network for GKE.

test-kubetest() {
export GOPATH=$HOME/Workspace
cd $GOPATH/src/
MYIP=$(curl | jq -r .ip)
VERSION=$(gsutil cat gs://kubernetes-release-dev/$RELEASE.txt)
chrislovecnm /
Last active Mar 25, 2018
Create a new build box gce
echo "deb [arch=amd64] stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list
curl | sudo apt-key add -
sudo apt-get update
sudo apt-get install -y openjdk-8-jdk bazel jq git build-essential
View gist:1b5fa67825b76c89f7ee4ceef840e0f1
Summarizing 2 Failures:
[Fail] [sig-network] Network [It] should set TCP CLOSE_WAIT timeout
[Fail] [sig-apps] Job [It] should run a job to completion when tasks sometimes fail and are not locally restarted
set -o vi
export GOPATH=~/Workspace
export PATH=$PATH:$GOPATH/bin
export KOPS_FEATURE_FLAGS=+SpecOverrideFlag
export KOPS_STATE_STORE=s3://clove-test-cncf
test-kubetest() {
cd $GOPATH/src/
MYIP=$(curl | jq -r .ip)
.PHONY: ${DIST}/windows/amd64/kops
227 ${DIST}/windows/amd64/kops: ${BINDATA_TARGETS}
228 mkdir -p ${DIST}
229 GOOS=windows GOARCH=amd64 go build -a ${EXTRA_BUILDFLAGS} -o $@ -ldflags "${EXTRA_LDFLAGS} -X${VE RSION} -X${GITSHA}"
View gist:fdb51ee9ccea144a5d226fe33f5ef83f
W: Signature by key 36AEF64D0207E7EEE352D4875A16E7281BE7A449 uses weak digest algorithm (SHA1)
W: Signature by key 15866BAFD9BCC4F3C1E0DFC7D69548E1C17EAB57 uses weak digest algorithm (SHA1)
13.64s$ git clone --depth=50 kubernetes/kops
Cloning into 'kubernetes/kops'...
remote: Counting objects: 85316, done.
remote: Compressing objects: 100% (41095/41095), done.
remote: Total 85316 (delta 43736), reused 77427 (delta 39435), pack-reused 0
Receiving objects: 100% (85316/85316), 91.04 MiB | 21.55 MiB/s, done.
Resolving deltas: 100% (43736/43736), done.
chrislovecnm / pr.patch
Created Oct 1, 2017
IAM PR backup - just in case
View pr.patch
From f54369807e6702dcfc5a19ccb7d979180f4770ff Mon Sep 17 00:00:00 2001
From: bjuncosa <>
Date: Thu, 16 Mar 2017 12:39:40 +0100
Subject: [PATCH] Add feature: Custom IAM Instance Profile
This way Cluster IAM roles can be managed externally, either manually,
using cloudformation or any other tool.
cmd/kops/create_cluster_integration_test.go | 12 +-
cmd/kops/integration_test.go | 77 +++--
chrislovecnm / log.txt
Created Oct 1, 2017
Failed build log
View log.txt
I1001 00:23:11.354] Bootstrap pull-kops-e2e-kubernetes-aws...
I1001 00:23:11.355] Gubernator results at
I1001 00:23:11.355] Root: /var/lib/jenkins/workspace/pull-kops-e2e-kubernetes-aws/go/src
I1001 00:23:11.355] cd to /var/lib/jenkins/workspace/pull-kops-e2e-kubernetes-aws/go/src
I1001 00:23:11.355] Checkout: /var/lib/jenkins/workspace/pull-kops-e2e-kubernetes-aws/go/src/ master
I1001 00:23:11.355] Call: git init
I1001 00:23:11.361] Initialized empty Git repository in /var/lib/jenkins/workspace/pull-kops-e2e-kubernetes-aws/go/src/
I1001 00:23:11.362] process 29895 exited with code 0 after 0.0m
I1001 00:23:11.362] Call: git config --local 'K8S Bootstrap'
I1001 00:23:11.365] process 29896 exited with code 0 after 0.0m
View gist:772532b18e78b634f23a33cb3e4d9894
2017-09-27 17:08:20,632 - kops_py - ERROR - unable to find subnet ids
2017-09-27 17:08:20,632 - kops_py - ERROR - An error occurred (InvalidSubnetID.NotFound) when calling the DescribeSubnets operation: The subnet ID '"subnet-fbf7088c' does not exist
Traceback (most recent call last):
File "/kops-py/kops_py/", line 64, in _get_cluster_subnets
response =, vpc_id=vpc_id)
File "/kops-py/kops_py/", line 173, in describe_subnets
File "/usr/local/lib/python2.7/dist-packages/botocore/", line 312, in _api_call
return self._make_api_call(operation_name, kwargs)
File "/usr/local/lib/python2.7/dist-packages/botocore/", line 601, in _make_api_call