Note: Check access to: https://wwwin-github.cisco.com/CPSG/ccp/blob/master/test/scripts/functional-test-run-e2e.sh Using a Linux server.
Customize your k8s cluster deployment:
export CLUSTER_NAME=ccp
export CLUSTER_VERSION=1.10.2-gke.3
export MACHINE_TYPE=n1-highcpu-2
export NUM_NODES=6
Create k8s cluster using gcp alpha features (https://cloud.google.com/kubernetes-engine/docs/concepts/alpha-clusters):
gcloud container clusters create $CLUSTER_NAME \
--enable-kubernetes-alpha --cluster-version=$CLUSTER_VERSION \
--machine-type=$MACHINE_TYPE --num-nodes=$NUM_NODES \
--no-enable-legacy-authorization
or w/o alpha:
gcloud container clusters create $CLUSTER_NAME \
--machine-type=$MACHINE_TYPE --num-nodes=$NUM_NODES \
--no-enable-legacy-authorization
Get the cluster creds:
gcloud container clusters get-credentials $CLUSTER_NAME
Set cluster privs:
kubectl create clusterrolebinding cluster-admin-binding \
--clusterrole cluster-admin --user $(gcloud config get-value account)
Install kubectl:
curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.10.2/bin/linux/amd64/kubectl
chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin/kubectl
Set Istio env var's:
export GOPATH=/home/daneyonhansen/go
export PATH=$PATH:$GOPATH/bin
export ISTIO_VERSION=0.8.0
export ISTIO=$GOPATH/src/istio.io
export HUB="docker.io/istio"
export TAG=$ISTIO_VERSION
export GITHUB_USER=danehans
export KUBECONFIG=${HOME}/.kube/config
Download Istio release (needed to run E2E tests):
cd $ISTIO
curl -LO https://github.com/istio/istio/archive/${ISTIO_VERSION}.tar.gz
tar -xvf ${ISTIO_VERSION}.tar.gz && mv istio-${ISTIO_VERSION} istio && cd istio
Download the istioctl client bin:
cd $ISTIO
curl -LO https://github.com/istio/istio/releases/download/${ISTIO_VERSION}/istio-${ISTIO_VERSION}-linux.tar.gz
tar -xvf istio-${ISTIO_VERSION}-linux.tar.gz && chmod +x istio-${ISTIO_VERSION}/bin/istioctl && sudo mv istio-${ISTIO_VERSION}/bin/istioctl /usr/local/bin/istioctl