263 points · by dreampeppers99 · 10y ago · 36 comments
Big kudos to the k8ts team at Goog, and all the other contributors!
We run it for our customers on their AWS clouds and even on enterprise infrastructure. So it's just with any OSS project: DIY-vs-invest-into-tooling.
A huge benefit of adopting Kubernetes for your SaaS product is this: it becomes much easier to push updates to enterprise environments. Selling SaaS to private clouds is pretty sweet: the size of a deal is larger but the incremental cost of R&D and ops (!) is now very low, because of standardized deployment models like k8s (what we do) or Mesos.
the problem with k8s is that there is way too much stuff happening now and it is hard to get started quickly.
For example, we started using Docker when it was alpha - for a single man startup.. getting up and started was very easy. On the other hand, using k8s on a 3 node cluster is... scary.
petset is a solution for stateful applications [1]. It's still in alpha though. I heard rumours that it will enter beta in about 3 months.
This is one of the most pressing issues I tend to evaluate on infrastructures. I'm curious to see a few months down the line your opinion on how the dev teams embraced Kubernetes' setups independently or if they kept depending on a dev-ops team to do so.
I don't know for sure, but this is less of a problem in some distributions, such as OpenShift[2].
Once this problem is solved, there's no reason to "shield" the cluster from devs.
[1] http://kubernetes.io/docs/admin/authorization/
[2] https://docs.openshift.com/enterprise/3.0/admin_guide/config...
Today, most of the auth-N plugins[0] (the upstream equivalent to the OpenShift doc you linked to) are relatively minimal. Most of these are aimed at providing pluggability for other apps that focus on ease of use. Google uses the webhook implementation for its GKE auth-N and we (CoreOS) continue to try to make our OpenID Connect server federate to more backends (LDAP, GitHub, etc.).[1]
With these kind of tooling, it's completely possible to map auth-Z policies to, say a group of LDAP users. But yes, there's a lack of canonical documentation on how to go about this. We're always trying to negotiate how much of this should live in core Kubernetes and how much should be provided by third party services (and what the upstream docs should endorse).
But today I'd still (perhaps because I'm biased) recommend giving your CEO different credentials for your prod cluster :)
[0] http://kubernetes.io/docs/admin/authentication/ [1] https://github.com/coreos/dex
I think that was the correct choice, because most Kube deployments are still single ops team focused, and it was possible for CoreOS to build and integrate Dex without having to face a high bar.
It'll get more opinionated eventually :)
I wonder if I should try kubernetes. It seems a lot more complex but the tooling looks better maintained.
Just to give you more details about its inner workings, this function is written in JavaScript that gets called when certain events come from GitHub ('pull_request', 'status', and 'push'), and uses kubectl to modify the corresponding deployments depending on the event.
Nothing fancy there, trust me.
If anyone could explain this, does this mean - the services still are being accessed from Public IP or does Kubernetes managed load balancers are Private IPs that can the individual nodes know about ?
If you need to communicate with another namespace on the cluster you can do servicename.myothernamespace.svc.cluster.local, etc.
I'll probably give ECS a go when (if?) Amazon enables it globally.
[1] https://railsadventures.wordpress.com/2015/12/06/why-we-chos...
Despite a lot of work on trying to figure out how to get us up on docker for CI workloads - the ecosystem is very confusing in terms of docker-cloud, docker-compose vs. docker-machine (on linux vs. osx) etc.