Skip to content

Instantly share code, notes, and snippets.

@corebug
Created July 2, 2020 19:00
Show Gist options
  • Save corebug/fa43fc91d8967a837cf1c3bdb1d563eb to your computer and use it in GitHub Desktop.
Save corebug/fa43fc91d8967a837cf1c3bdb1d563eb to your computer and use it in GitHub Desktop.
AHYBRID070 Configuring GKE for Multi-Cluster Operation with Istio
Welcome to Cloud Shell! Type "help" to get started.
Your Cloud Platform project in this session is set to qwiklabs-gcp-01-93b143a5f04f.
Use “gcloud config set project [PROJECT_ID]” to change to a different project.
student_01_c908a6d96592@cloudshell:~ (qwiklabs-gcp-01-93b143a5f04f)$ gcloud container clusters list
student_01_c908a6d96592@cloudshell:~ (qwiklabs-gcp-01-93b143a5f04f)$ gcloud services enable \
> cloudresourcemanager.googleapis.com \
> container.googleapis.com \
> gkeconnect.googleapis.com \
> gkehub.googleapis.com \
> serviceusage.googleapis.com \
> anthos.googleapis.com
Operation "operations/acf.bf62591d-4511-4127-9145-28b915820f47" finished successfully.
student_01_c908a6d96592@cloudshell:~ (qwiklabs-gcp-01-93b143a5f04f)$ git clone -b workshop-v1 https://github.com/GoogleCloudPlatform/anthos-workshop.git anthos-workshop
Cloning into 'anthos-workshop'...
remote: Enumerating objects: 8, done.
remote: Counting objects: 100% (8/8), done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 605 (delta 2), reused 2 (delta 2), pack-reused 597
Receiving objects: 100% (605/605), 123.96 KiB | 755.00 KiB/s, done.
Resolving deltas: 100% (385/385), done.
Note: checking out '13949f34cf04ef2c6732c83ef7a9c25e33b12dc4'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b <new-branch-name>
student_01_c908a6d96592@cloudshell:~ (qwiklabs-gcp-01-93b143a5f04f)$ cd anthos-workshop/
student_01_c908a6d96592@cloudshell:~/anthos-workshop (qwiklabs-gcp-01-93b143a5f04f)$ source ./env
Your active configuration is: [cloudshell-1844]
student_01_c908a6d96592@cloudshell:~/anthos-workshop (qwiklabs-gcp-01-93b143a5f04f)$ source ./bootstrap-workshop.sh
Your active configuration is: [cloudshell-1844]
###
### Begin Tools install
###
Installing tree...
********************************************************************************
You are running apt-get inside of Cloud Shell. Note that your Cloud Shell
machine is ephemeral and no system-wide change will persist beyond session end.
To suppress this warning, create an empty ~/.cloudshell/no-apt-get-warning file.
The command will automatically proceed in 5 seconds or on any key.
Visit https://cloud.google.com/shell/help for more information.
********************************************************************************
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
tree
0 upgraded, 1 newly installed, 0 to remove and 7 not upgraded.
Need to get 49.3 kB of archives.
After this operation, 117 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian buster/main amd64 tree amd64 1.8.0-1 [49.3 kB]
Fetched 49.3 kB in 0s (1,393 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package tree.
(Reading database ... 127273 files and directories currently installed.)
Preparing to unpack .../tree_1.8.0-1_amd64.deb ...
Unpacking tree (1.8.0-1) ...
Setting up tree (1.8.0-1) ...
Processing triggers for man-db (2.8.5-2) ...
/usr/local/bin/kubectx
kubectx already installed.
Downloading Istio...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 3896 100 3896 0 0 6253 0 --:--:-- --:--:-- --:--:-- 6253
Downloading istio-1.3.2 from https://github.com/istio/istio/releases/download/1.3.2/istio-1.3.2-linux.tar.gz ...
Istio 1.3.2 Download Complete!
Istio has been successfully downloaded into the istio-1.3.2 folder on your system.
Next Steps:
See https://istio.io/docs/setup/kubernetes/install/ to add Istio to your Kubernetes cluster.
To configure the istioctl client tool for your workstation,
add the /home/student_01_c908a6d96592/anthos-workshop/istio-1.3.2/bin directory to your environment path variable with:
export PATH="$PATH:/home/student_01_c908a6d96592/anthos-workshop/istio-1.3.2/bin"
Begin the Istio pre-installation verification check by running:
istioctl verify-install
Need more information? Visit https://istio.io/docs/setup/kubernetes/install/
Installing kops...
kops installation complete.
Multiple tasks are running asynchronously to setup your environment. It may appear frozen, but you can check the logs in /home/student_01_c908a6d96592/anthos-workshop/workdir for additional details in another terminal window.
[1]- Done ./gke/provision-gke.sh &> ${WORK_DIR}/provision-gke.log
[2]+ Done ./connect-hub/provision-remote-gce.sh &> ${WORK_DIR}/provision-remote.log
Switched to context "central".
Copying gs://config-management-release/released/latest/config-management-operator.yaml...
/ [1 files][ 10.6 KiB/ 10.6 KiB]
Operation completed over 1 objects/10.6 KiB.
customresourcedefinition.apiextensions.k8s.io/configmanagements.configmanagement.gke.io created
clusterrole.rbac.authorization.k8s.io/config-management-operator created
clusterrolebinding.rbac.authorization.k8s.io/config-management-operator created
serviceaccount/config-management-operator created
deployment.apps/config-management-operator created
namespace/config-management-system created
Switched to context "remote".
Copying gs://config-management-release/released/latest/config-management-operator.yaml...
/ [1 files][ 10.6 KiB/ 10.6 KiB]
Operation completed over 1 objects/10.6 KiB.
customresourcedefinition.apiextensions.k8s.io/configmanagements.configmanagement.gke.io created
clusterrole.rbac.authorization.k8s.io/config-management-operator created
clusterrolebinding.rbac.authorization.k8s.io/config-management-operator created
serviceaccount/config-management-operator created
deployment.apps/config-management-operator created
namespace/config-management-system created
###
### Begin install istio control plane
###
Switched to context "central".
namespace/istio-system created
serviceaccount/tiller created
clusterrolebinding.rbac.authorization.k8s.io/tiller created
Error: unknown command "init" for "helm"
Did you mean this?
lint
Run 'helm --help' for usage.
secret/cacerts created
Error: unknown flag: --name
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Waiting for Istio CRDs to install...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment