News for hackers. Stuff that matters.
Re:Kubernetes Config Connector: Provision GCP Infrastructure... by ec109685 on Thursday December 05, 2019 @12:14PM (#21714065)
AWS started building something similar but momentum seems to have stopped once the developer left: https://aws.amazon.com/blogs/opensource/aws-service-operator...

It is too bad because declarative specifications and control loops to have state converge to what it should be is a nice pattern.

Keeping up with all of AWS’s surface area though is hard if their heart isn’t in it.

Re:Kubernetes Config Connector: Provision GCP Infrastructure... by zxcmx on Thursday December 05, 2019 @12:57PM (#21714496)
We thought about this pattern for a while and ultimately decided we didn't want app compute to directly provision supporting infrastructure.

You end up in this weird place where your compute nodes can, at any time, assume super powerful roles that can change nacls, security groups, completely destroy database clusters or what have you.

It feels like running your app as root and database admin, but more. I guess if you completely trust your kube control plane?

Like everything I'm sure it has a use somewhere.

Re:Kubernetes Config Connector: Provision GCP Infrastructure... by captn3m0 on Thursday December 05, 2019 @01:18PM (#21714694)
We're trying it out in a dev-cluster/dev-account setup to let teams provision their own buckets/SQS and some supporting infrastructure easily without AWS access.
Re:Kubernetes Config Connector: Provision GCP Infrastructure... by joseph on Thursday December 05, 2019 @09:28PM (#21718773)
The app wouldn't build the infrastructure though, a controller on the cluster would. If you're using e.g. kube2iam or kiam, then only the controller would receive permissions. If you're in AWS and the controller uses CloudFormation to provision the resources, you can define a service role that CloudFormation will assume. Then your controller mainly just needs PassRole permissions for the service role, which means you don't need anything close to "root" privileges on your cluster.
Re:Kubernetes Config Connector: Provision GCP Infrastructure... by jwhitlark on Thursday December 05, 2019 @03:59PM (#21716427)
I think these kind of tools are more about provisioning a "normal" cluster from an "admin" cluster. That way the power flows downhill, as it were.
Re:Kubernetes Config Connector: Provision GCP Infrastructure... by zxcmx on Thursday December 05, 2019 @04:19PM (#21716665)
Yeah I think this could probably work well in gcp.

In AWS you end up with a manually built/managed root cluster and if you've automated deploying / upgrading (which you probably should) that then you might as well just use those pipelines and code for all your other clusters too instead of having 1 special thing.

If the infrastructure gets complex there will start to be dependencies between stuff, there is definitely a tipping point where you need a real iac pipeline (tf/cf) instead in any case.

I think captn3mo proposed one of the more reasonable use cases which is provisioning stuff like queues and dbs for test envs or ci, we ended up stubbing out aws for ci and using the same pipeline code we use to deploy to prod instead for "full fat" testing but I can see where it might make sense to use kube manifests. Probably some creative uses for "deployment per customer" SaaSs too.

Re:Kubernetes Config Connector: Provision GCP Infrastructure... by migueloller on Thursday December 05, 2019 @01:28PM (#21714812)
With properly configured RBAC this shouldn’t be an issue. The problem is making sure those policies are properly enforced. The tools are there, though.
Re:Kubernetes Config Connector: Provision GCP Infrastructure... by ec109685 on Thursday December 05, 2019 @12:16PM (#21714096)
Why doesn’t GCP use AWS’s feature announcement style and have a little blog written that walks the developer through how to use it?

So much better to get an immediate feel for a service.

Re:Kubernetes Config Connector: Provision GCP Infrastructure... by spew on Thursday December 05, 2019 @12:40PM (#21714327)
The getting started guide may be what you are looking for: https://cloud.google.com/config-connector/docs/how-to/gettin...
Re:Kubernetes Config Connector: Provision GCP Infrastructure... by jvolkman on Thursday December 05, 2019 @12:52PM (#21714446)
There may have been one, but this isn't new. Here's a video covering it at GCP Next in April: https://www.youtube.com/watch?v=s_hiFuRDJSE
Re:Kubernetes Config Connector: Provision GCP Infrastructure... by alpb on Thursday December 05, 2019 @02:09PM (#21715319)
Mostly because the service is still beta.
Re:Kubernetes Config Connector: Provision GCP Infrastructure... by jbigelow76 on Thursday December 05, 2019 @12:30PM (#21714233)
Spin up a k8s cluster to manage your other resources that will be used by your... other k8s clusters. Is kubernetes just one big snake eating its own tail now?
Re:Kubernetes Config Connector: Provision GCP Infrastructure... by srmatto on Thursday December 05, 2019 @03:06PM (#21715939)
Kubernetes Gardener uses a main cluster to provision and maintain child clusters.

https://gardener.cloud/

Re:Kubernetes Config Connector: Provision GCP Infrastructure... by tyingq on Thursday December 05, 2019 @12:51PM (#21714428)
The movie "Inception" popped into my head after seeing the headline. Managing k8s version upgrades across both sides is probably fun.
Re:Kubernetes Config Connector: Provision GCP Infrastructure... by leg100 on Thursday December 05, 2019 @01:32PM (#21714866)
K8s is in one sense a convergence engine, bringing container resources across a cluster into line with a given desired state.

So why not cloud resources too?

Having to run a cluster to do so doesn't feel quite right, however. But then if you're using Terraform - which is the most popular "cloud convergence engine" - you've probably provisioned compute resources with which to run Terraform. So not that strange.

Re:Kubernetes Config Connector: Provision GCP Infrastructure... by robszumski on Thursday December 05, 2019 @03:25PM (#21716113)
I am really interested in using this GCP Operator and the corresponding ones from AWS and Azure to replace functionality from Open Service Brokers with a more Kubernetes-native experience.

Even better, this model uses the RBAC, namespaces, quotas and tools that developers are already using.

Re:Kubernetes Config Connector: Provision GCP Infrastructure... by tracker1 on Thursday December 05, 2019 @12:56PM (#21714483)
Definitely cool... although AWS is really entrenched and Azure's getting there too for a lot of orgs. Especially historically MS oriented shops and those with some apps tethered to windows where others can be containerized.
Re:Kubernetes Config Connector: Provision GCP Infrastructure... by ksajadi on Thursday December 05, 2019 @03:44PM (#21716270)
I wonder if the k8s style infrastructure definition becomes the norm, what's going to be the future like for tools like Terraform
Re:Kubernetes Config Connector: Provision GCP Infrastructure... by zxcmx on Thursday December 05, 2019 @04:30PM (#21716784)
Provisioning cloud stuff ends up being about the relationships between all the things. Plus a bunch of dirty domain knowledge about retries and resource schemas.

It's very difficult to delete infra in AWS without a resource graph once you have enough things that refer to each other.

You can only get so far with a bunch of isolated yaml manifests for single resources.

So the MVP of anything that can solve the general case basically ends up doing the exact same things as terraform... and might as well actually be terraform.

Re:Kubernetes Config Connector: Provision GCP Infrastructure... by ec109685 on Friday December 06, 2019 @01:19AM (#21719661)
Can’t the operator that expresses the state of cloud resources take into account ordering and dirty tricks?
Re:Kubernetes Config Connector: Provision GCP Infrastructure... by farisjarrah on Thursday December 05, 2019 @04:21PM (#21716675)
Just gotta say, this looks much friendlier then Google CFT or Deployment Manager tools that they were pushing before.
Re:Kubernetes Config Connector: Provision GCP Infrastructure... by Yeroc on Thursday December 05, 2019 @03:43PM (#21716254)
Sounds similar in concept to Crossplane (https://crossplane.io/) except that Crossplane is trying to be cloud-agnostic?
Re:Kubernetes Config Connector: Provision GCP Infrastructure... by techthumb on Thursday December 05, 2019 @11:20PM (#21719242)
I wonder if Crossplane will use this behind the scenes.