Anthos showing wrong status of Deployment on on-premise external cluster

4/11/2020

I wanted to give a try to GCP's Anthos On-Premise GKE offering.

For sake of my demo I setup a Kubernetes cluster in GCP itself using Google Compute Engine following instructions from (https://kubernetes.io/docs/setup/production-environment/turnkey/gce/)

enter image description here

After this I followed Anthos documentation to register my cluster to Anthos. I was able to register the cluster and Login into it using both Token based and Basic authentication based mechanisms.

enter image description here

Now when I try to deploy anything from GCP console, I get following error

enter image description here

But the deployment succeeds, I can see deployment and associated pods in Running state on my cluster.

enter image description here

enter image description here

Also when I try to deploy using Marketplace I get following error.

enter image description here

enter image description here

I wish to know if it is a bug in Anthos or my cluster has some missing configurations ?

-- kaysush
google-anthos
google-cloud-platform
kubernetes

1 Answer

4/14/2020

You're not running Anthos GKE On-Prem, you're running open-source Kubernetes on Google Cloud. Things designed for Anthos - the marketplace and connecting clusters to Cloud Console - are not supposed to work in your setup. The fact that they mostly work despite that is an accident (and a testament to the portability and compatibility of Kubernetes).

To get Cloud Console integration and use the marketplace, you need to use either Anthos GKE On-Prem that runs on VMWare or regular GKE.

-- Shnatsel
Source: StackOverflow