Last active
February 6, 2018 20:06
-
-
Save chrislovecnm/8f56199ce735d160c856ca6f6dc76ffc to your computer and use it in GitHub Desktop.
kubetest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
KUBE_SSH_USER=admin | |
RELEASE="ci/latest" | |
VERSION=$(gsutil cat gs://kubernetes-release-dev/$RELEASE.txt) | |
KOPS_VERSION=https://storage.googleapis.com/kubernetes-release-dev/ci/$VERSION | |
CLUSTER=clove.test-cncf-aws.k8s.io | |
IMAGE='kope.io/k8s-1.8-debian-stretch-amd64-hvm-ebs-2018-01-05' | |
ETCD=3.1.10 | |
KOPS=$GOPATH/src/k8s.io/kops/bazel-bin/cmd/kops/linux_amd64_stripped/kops | |
$GOPATH/src/k8s.io/test-infra/bazel-bin/kubetest/linux_amd64_pure_stripped/kubetest \ | |
--kops-base-url https://s3.amazonaws.com/$MY_BUCKET/kops/1.8.0 \ | |
--kops-ssh-key $HOME/.ssh/id_rsa \ | |
--deployment=kops --kops=$KOPS \ | |
--extract=ci/latest-1.10 \ | |
--kops-kubernetes-version=$KOPS_VERSION \ | |
--kops-admin-access ${MYIP}/32 \ | |
-v --up --down --test \ | |
--provider=aws \ | |
--ginkgo-parallel '--test_args=--ginkgo.flakeAttempts=2 --ginkgo.skip=\[Slow\]|\[Serial\]|\[Disruptive\]|\[Flaky\]|\[Feature:.+\]|\[HPA\]|Dashboard|Services.*functioning.*NodePort' \ | |
--cluster ${CLUSTER} \ | |
--kops-state=${KOPS_STATE_STORE} \ | |
--kops-nodes 4 \ | |
--kops-ssh-user admin \ | |
--kops-image $IMAGE \ | |
--kops-master-count 3 \ | |
--kops-etcd-version $ETCD \ | |
--kops-multiple-zones true \ | |
--kops-master-size c4.large \ | |
--check-leaked-resources false | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment