Giter Club home page Giter Club logo

anthos-workshop's Introduction

Anthos Workshop

Overview

Kubernetes is the de-facto standard for container orchestration*, and Google Kubernetes Engine (GKE) is a leader in the field of managed Kubernetes offerings. In 2018, Google brought Kubernetes to data centers with a new offering called GKE On-Prem, a certified and managed extension of the cloud-based GKE platform. Responding to significant early successes and listening to customer needs, Google has expanded its efforts to enable your modernization effort.

Anthos is a modern application management platform announced by Google at Next '19. Anthos provides the tools and technology you need for modern, hybrid, and multi-cloud solutions, all built on the foundations of GKE. Anthos enables several features, including:

  • Infrastructure provisioning in both cloud and on-premises.
  • Infrastructure management tooling, security, policies and compliance solutions.
  • Streamlined application development, service discovery and telemetry, service management, and workload migration from on-premises to cloud.

*Nachmany, Udi (2018, November). Kubernetes: Evolution Of An IT Revolution. Retrieved from https://www.forbes.com/sites/udinachmany/2018/11/01/kubernetes-evolution-of-an-it-revolution/#5916c8a554e1

About this Repository

This repository contains the scripts and configurations intended for instructional purposes as part of the Anthos Workshop.

What you’ll learn

In this workshop, you’ll work through an example modernization effort: moving a hybrid workload from a cluster that could be running on-prem or with another cloud vendor, to GKE in Google Cloud Platform (GCP). During the course of this workshop, you’ll learn more about the tools provided by Anthos that assist you with your modernization and migration to the cloud.

This workshop will cover the following topics:

GKE Connect & Hub

Centralized management of your Kubernetes clusters. In this section, you will:

  • Register a non-GKE Kubernetes cluster to GKE Hub.
  • Review GKE & non-GKE clusters and workloads through GKE Hub.
  • Review workloads running in various locations across all your clusters.

Anthos Config Management

Centralized configuration management for all your clusters. In this section, you will:

  • Observe base state, which auto installs namespaces & logging DaemonSet on all nodes.
  • Deploy Config Management custom resources and verify applied configuration.
  • Add a new configuration, push it to the Config Management repo, and verify newly applied configuration in both clusters.

Hybrid Multicluster Workloads

Applications split between clusters running in different on-prem and on-cloud locations. In this section, you will:

  • Deploy an app using a hybrid model across multiple clusters.
  • Learn the mechanics of multi-cluster mesh patterns.
  • Migrate the remote, non-GKE workloads to cloud-based GKE.

Service Manager

Workload operational insights, SLO management and policy recommendations. In this section, you will:

  • Review workload topology and connections.
  • Inspect service level metrics and telemetry.
  • Define and inspect Service Level Objectives.

To learn more about Anthos, or this Anthos workshop, contact your Google Cloud Sales team.

anthos-workshop's People

Contributors

agmsb avatar ameer00 avatar askmeegs avatar cgrant avatar cjcullen avatar cloud-pharaoh avatar falico avatar henrybell avatar ianchakeres avatar jorgonzalez avatar kenthua avatar krzysztofzalasa avatar miketruty avatar phires avatar rasalt avatar samos123 avatar silviabear avatar theemadnes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

anthos-workshop's Issues

AccessDeniedException: 403 [email protected] does not have storage.objects.list access to config-management-release.

I am using trial version of google cloud console with anthos enabled. When configuring anthos config management, i am getting AccessDeniedException.

Command Ran : gsutil cp gs://config-management-release/released/latest/config-management-operator.yaml config-management-operator.yaml

Exception : AccessDeniedException: 403 [email protected] does not have storage.objects.list access to config-management-release.

Tried by creating new service account. But throws same exception. I configured service account using gcloud command line utility

Below are the roles associated with serviceaccount:

  • roles/composer.environmentAndStorageObjectAdmin
  • roles/compute.admin
  • roles/compute.loadBalancerAdmin
  • roles/compute.networkAdmin
  • roles/compute.securityAdmin
  • roles/container.admin
  • roles/container.clusterAdmin
  • roles/container.clusterViewer
  • roles/editor
  • roles/gkehub.admin
  • roles/gkehub.connect
  • roles/gkehub.viewer
  • roles/iam.securityAdmin
  • roles/iam.serviceAccountAdmin
  • roles/iam.serviceAccountKeyAdmin
  • roles/iam.serviceAccountTokenCreator
  • roles/iam.serviceAccountUser
  • roles/logging.admin
  • roles/logging.configWriter
  • roles/logging.viewer
  • roles/monitoring.admin
  • roles/owner
  • roles/redis.admin
  • roles/resourcemanager.projectIamAdmin
  • roles/servicenetworking.networksAdmin
  • roles/stackdriver.accounts.editor
  • roles/storage.admin
  • roles/storage.objectAdmin
  • roles/storage.objectViewer
  • roles/viewer

GKE Version Issue

export CLUSTER_VERSION=1.14.8-gke.12

Version gives Unsupported GKE Version error.

Possibly don't specify version and just use GKE default to avoid this in future?

GKE Connect succesfully starts but the cluster is not shown at GCP consoles

Hello!

First of all, I'm not sure of what sort of tagging you're using on this Github, and it is definitely not the best place to ask, but the discussion on Stackoverflow seems to be leading nowhere.

I'm writing this issue because after testing out the GKE Connect section of this workshop, the agent seems to be running fine and the gcloud membership command lists my cluster as registered; however, I'm unable to see my cluster on the GCP > Kubernetes Engine clusters list.

All my tests are documented on the Stackoverflow question, but I'd love if you could tell me what the whitelisted service account is and whether there's any difference between that and a newly created SA with proper permissions (gkehub.connect in this case).

Thanks for your time!

Edit: please let me know if you need me to reformat the question into some structured guideline or anything, I've not been able to find anything about question/issue format within the repo.
Edit 2: This is the one "tutorial" I've been following.

gcloud invocation is broken

After version 268.0.0 (2019-10-22), gcloud SDK changed its parameters from "register-cluster" to "memberships register". This breaks walkthough-workshop.sh

Error provisioning cluster on gke

After running the bootstrap scripts on Configuring GKE for Multi-Cluster Operation with Istio lab - the GKE cluster creation fails. The logs on the workDir reported the following:

###
### Begin Provision GKE
###
Creating cluster...
ERROR: (gcloud.beta.container.clusters.create) unrecognized arguments: --identity-namespace=qwiklabs-gcp-00-697400
0201df.svc.id.goog (did you mean '--identity-provider'?)
To search the help text of gcloud commands, run:
  gcloud help -- SEARCH_TERMS

Provisioning of the remote cluster also reported some weird errors:

Cannot load kubecfg settings for "remote.k8s.local": context "remote.k8s.local" does not exist
Check if cluster is ready - Attempt 3
Cannot load kubecfg settings for "remote.k8s.local": context "remote.k8s.local" does not exist
Check if cluster is ready - Attempt 4
Cannot load kubecfg settings for "remote.k8s.local": context "remote.k8s.local" does not exist
Check if cluster is ready - Attempt 5
Cannot load kubecfg settings for "remote.k8s.local": context "remote.k8s.local" does not exist
Check if cluster is ready - Attempt 6
Cannot load kubecfg settings for "remote.k8s.local": context "remote.k8s.local" does not exist
Check if cluster is ready - Attempt 7
Cannot load kubecfg settings for "remote.k8s.local": context "remote.k8s.local" does not exist
Check if cluster is ready - Attempt 8
Cannot load kubecfg settings for "remote.k8s.local": context "remote.k8s.local" does not exist
Check if cluster is ready - Attempt 9
Cannot load kubecfg settings for "remote.k8s.local": context "remote.k8s.local" does not exist
Check if cluster is ready - Attempt 10
Cannot load kubecfg settings for "remote.k8s.local": context "remote.k8s.local" does not exist
Check if cluster is ready - Attempt 11
Cannot load kubecfg settings for "remote.k8s.local": context "remote.k8s.local" does not exist
Check if cluster is ready - Attempt 12
Cannot load kubecfg settings for "remote.k8s.local": context "remote.k8s.local" does not exist
Check if cluster is ready - Attempt 13
Cannot load kubecfg settings for "remote.k8s.local": context "remote.k8s.local" does not exist
Check if cluster is ready - Attempt 14
Cannot load kubecfg settings for "remote.k8s.local": context "remote.k8s.local" does not exist
Check if cluster is ready - Attempt 15

MD5 Hash not matching for Remote

There seems to be an error in the MD5 Hash:

Cluster.kops "remote.k8s.local" not found
Create kops cluster...
I0129 10:14:33.801998    1320 create_cluster.go:519] Inferred --cloud=gce from zone "us-central1-a"
$l/config: googleapi: Error 400: Provided MD5 hash "1B2M2Y8AsgTpgAmY7PhCfg==" doesn't match calculated MD5 hash "aP2excWSm858AztEo1StmA=="., invalid 

error writing updated configuration: error writing Cluster "remote.k8s.local": error writing configuration file gs://democol-adk-prod-kops-remote/remote.k8s.local/config
error: cannot locate context remote.k8s.local
Check if cluster is ready - Attempt 1

OPERATOR_YAML_LOCATION

Ref.

export OPERATOR_YAML_LOCATION=$(gsutil cat gs://anthos-workshop/cfg-op-loc)

Is OPERATOR_YAML_LOCATION required? I grepped the files in this repo and don't see any other use of this variable.

I have a whitelisted anthos project and attempting to run the workshop.
I don't have access to gs://anthos-workshop/cfg-op-loc so had to comment this out to proceed.

Anthos Config Management appears to run Ok with this env var commented out.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.