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.
This is a demo of creating the subnets needed for a GKE Cluster
Create the base network for GKE.
#!/bin/bash | |
test-kubetest() { | |
export GOPATH=$HOME/Workspace | |
KOPS_FEATURE_FLAGS=+SpecOverrideFlag | |
KOPS_STATE_STORE=gs://chlove-state-store/ | |
cd $GOPATH/src/k8s.io/kubernetes | |
MYIP=$(curl ipinfo.io | jq -r .ip) | |
RELEASE="ci/latest" | |
VERSION=$(gsutil cat gs://kubernetes-release-dev/$RELEASE.txt) |
#!/bin/bash | |
WORK=Workspace | |
U=chlove | |
echo "deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list | |
curl https://bazel.build/bazel-release.pub.gpg | sudo apt-key add - | |
sudo apt-get update | |
sudo apt-get install -y openjdk-8-jdk bazel jq git build-essential |
Summarizing 2 Failures: | |
[Fail] [sig-network] Network [It] should set TCP CLOSE_WAIT timeout | |
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/network/kube_proxy.go:194 | |
[Fail] [sig-apps] Job [It] should run a job to completion when tasks sometimes fail and are not locally restarted | |
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/apps/job.go:86 | |
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/k8s.io/kubernetes | |
MYIP=$(curl ipinfo.io | jq -r .ip) | |
WORKSPACE=/tmp | |
LOG_DUMP_SSH_USER=admin |
.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 k8s.io/kops.Version=${VE RSION} -X k8s.io/kops.GitVersion=${GITSHA}" k8s.io/kops/cmd/kops |
W: http://dl.hhvm.com/ubuntu/dists/trusty/InRelease: Signature by key 36AEF64D0207E7EEE352D4875A16E7281BE7A449 uses weak digest algorithm (SHA1) | |
W: http://ppa.launchpad.net/couchdb/stable/ubuntu/dists/trusty/Release.gpg: Signature by key 15866BAFD9BCC4F3C1E0DFC7D69548E1C17EAB57 uses weak digest algorithm (SHA1) | |
git.checkout | |
13.64s$ git clone --depth=50 https://github.com/kubernetes/kops.git 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. |
From f54369807e6702dcfc5a19ccb7d979180f4770ff Mon Sep 17 00:00:00 2001 | |
From: bjuncosa <borja.juncosa@socialpoint.es> | |
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 +++-- |
I1001 00:23:11.354] Bootstrap pull-kops-e2e-kubernetes-aws... | |
I1001 00:23:11.355] Gubernator results at https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/pr-logs/pull/kops/3483/pull-kops-e2e-kubernetes-aws/3313 | |
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/k8s.io/release master | |
I1001 00:23:11.355] Call: git init k8s.io/release | |
I1001 00:23:11.361] Initialized empty Git repository in /var/lib/jenkins/workspace/pull-kops-e2e-kubernetes-aws/go/src/k8s.io/release/.git/ | |
I1001 00:23:11.362] process 29895 exited with code 0 after 0.0m | |
I1001 00:23:11.362] Call: git config --local user.name 'K8S Bootstrap' | |
I1001 00:23:11.365] process 29896 exited with code 0 after 0.0m |
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/kops.py", line 64, in _get_cluster_subnets | |
response = self.aws.describe_subnets(subnet_ids=subnets, vpc_id=vpc_id) | |
File "/kops-py/kops_py/aws.py", line 173, in describe_subnets | |
SubnetIds=subnet_ids, | |
File "/usr/local/lib/python2.7/dist-packages/botocore/client.py", line 312, in _api_call | |
return self._make_api_call(operation_name, kwargs) | |
File "/usr/local/lib/python2.7/dist-packages/botocore/client.py", line 601, in _make_api_call |