News for hackers. Stuff that matters.
Re:DigitalOcean launches its container service by flurdy on Tuesday December 11, 2018 @01:05PM (#18657266)
Been a user of DOs beta kubernetes service and it works well.

Though I would say the title of the linked article is a bit misleading. It is a Kubernetes as a service, like EKS, GKE and AKS.

But not vanilla container service a la ECS, Fargate, the former Docker Cloud, etc.

Re:DigitalOcean launches its container service by barbecue_sauce on Tuesday December 11, 2018 @01:13PM (#18657333)
Container Service as a Service
Re:DigitalOcean launches its container service by dvtrn on Tuesday December 11, 2018 @03:05PM (#18658402)
works in dev all the way down.
Re:DigitalOcean launches its container service by josh_carterPDX on Tuesday December 11, 2018 @02:08PM (#18657880)
Great distinction. Either way it's nice to see DO expand its offerings. Love their service and the team.
Re:DigitalOcean launches its container service by tlrobinson on Tuesday December 11, 2018 @02:39PM (#18658169)
Maybe this is a dumb question, but couldn't/shouldn't a KaaS (and other orchestration systems) just be a layer on top of "vanilla" CaaS?
Re:DigitalOcean launches its container service by derefr on Tuesday December 11, 2018 @04:27PM (#18659058)
CaaS-es (i.e. "things that present themselves as a Docker daemon or something like it") don't allow you to provision IaaS-level resources like VMs or disks, merely connect your containers to existing resources. When CaaS-es do allow you to provision stuff (like e.g. Hyper.sh does), they do it through a direct IaaS-level API that is separate from the functioning of the CaaS itself.

The major cloud providers' deployments of Kubernetes (and other server-side persistent-orchestrator systems, like the venerable CloudFormation) are deeply integrated into the cloud platform they're running on, such that the orchestrator itself can provision resources for a container to run on as part of deploying the container. This becomes important when elastically auto-scaling a container, because each container might need e.g. its own disk, and you can't create them ahead of time if you don't know how many you'll need.

This also means that, unlike a CaaS, k8s et al can manage the very cluster that k8s is running on, scaling it out to suit the size of the current/estimated workload.

Theoretically, you can bootstrap k8s on top of a vanilla CaaS—this is how minikube installs "using" your local Docker install, and this is how deployable PaaSes like Flynn and Deis work. But this approach doesn't supply k8s with the cloud-specific integration it needs in order to provision stuff. It might work if you're deploying against something with a standardized API like OpenStack; but none of the major cloud providers are compatible with such APIs, and so they need to build their own k8s plugins that call their IaaS-level APIs, to make k8s work on their clouds.

Or, to put all that another way: if there were standard IaaS-level APIs for k8s to hook into, Docker (and the CaaSes that either use or emulate it) would just hook into those APIs itself, and there would be no need for a higher orchestration layer.

Re:DigitalOcean launches its container service by johnwyles on Tuesday December 11, 2018 @10:51PM (#18661252)
tl;dr CaaS doesn't orchestrate the underlying infrastructure whereas k8s primary purpose is to create a cloud agnostic way to orchestrate containers and the infrastructure that they run on.
Re:DigitalOcean launches its container service by james-mcelwain on Tuesday December 11, 2018 @04:08PM (#18658900)
Kubernetes has worked to not be coupled to Docker (http://cri-o.io / https://www.opencontainers.org/), so in a sense, it already is built on top of a "vanilla" container service.
Re:DigitalOcean launches its container service by jopsen on Tuesday December 11, 2018 @03:27PM (#18658560)
Don't you need to setup network paths? And connect containers to each other..

Then setup/teardown in specific order.. and if you have state, keep a subset of containers alive to avoid loosing state (even if it's replicated).

Re:DigitalOcean launches its container service by hosh on Tuesday December 11, 2018 @09:35PM (#18660937)
Kuberneted is designed in a way where stateless pods (collection of containers sharing the same ip and identity) are decoupled from stateful ones. There are concepts designed into K8S that allows components to attempt to self-heal.

For example, a pod that requires a postgresql pod to connect to will fail and crash out. The scheduler will start a new one. If the postgresql pod is up by that point, then the rescheduled pod will no longer crash.

As far as the network paths, one of the really cool things about pods running inside a k8s cluster is that they can access any of the other pods, even if they are on a different node. However, pods typically reference services (such as postgresql) by dns name. You specify the set of pods that belong to the service by label selector. This allows the pods to come up, tear down, crash, moved to another node, while the service maintains a stable point of contact. It is quite brilliant, and other orchestrators quickly tried to copy it.

Stateful workloads are still difficult. Each distributed stateful system has its own way of setup and teardown. What we will probably see are custom Operators designed for each distributed stateful system, coming out over the years.

Re:DigitalOcean launches its container service by RSZC on Tuesday December 11, 2018 @11:58PM (#18661511)
Curious - what are some good alternatives to Fargate? Enjoy the ease of use, but more expensive than I'd like for low-to-no traffic side projects
Re:DigitalOcean launches its container service by manigandham on Wednesday December 12, 2018 @07:24AM (#18663289)
GCP has Serverless Containers coming soon: https://cloudplatform.googleblog.com/2018/07/bringing-the-be...

Zeit V1 supports launching containers (but isnt part of V2): https://zeit.co/docs/v1/getting-started/deployment/#docker-d...

Re:DigitalOcean launches its container service by philtar on Wednesday December 12, 2018 @12:39AM (#18661633)
Digital Ocean Droplet

AWS Micro Instance

AWS Lightsail

Linode Nanonode

Shared Hosting

-----

Tons of options for $5 a month.

Re:DigitalOcean launches its container service by RSZC on Wednesday December 12, 2018 @01:03AM (#18661698)
Sorry, should've been more specific - looking for the same sort of 'provide a container and we take care of everything else' experience, but ideally for a cheaper price. I know I could get a micro instance and set up ECS on it, but it just seems like such a royal PITA...

Also like how my deploy script is basically 'build image; push image; aws ecs update-service'.

With my side projects that are running on a droplet, it feels like there's an incredible amount of additional setup that I need to do every time I add an additional project. Add the new site to the reverse proxy, setup a git server I can push to, set up post-receive hooks for the server, etc., etc.

Re:DigitalOcean launches its container service by vorticalbox on Wednesday December 12, 2018 @02:05AM (#18661927)
I would look into the first option, Digital ocean's droplets.

You deploy a docker container and they handle the rest

Re:DigitalOcean launches its container service by StavrosK on Wednesday December 12, 2018 @08:41AM (#18663752)
How do you do that? I only know the traditional "install OS and handle devops yourself" model.

Having said that, I got a cheap and rather beefy server on Hetzner and installed Dokku on it, and I couldn't be more satisfied. It's like having my own Heroku for my low-traffic side-projects, almost for free.

Re:DigitalOcean launches its container service by hnbroseph on Tuesday December 11, 2018 @01:52PM (#18657726)
what makes ECS 'vanilla'? i thought it was just a bespoke competitor to K8s.
Re:DigitalOcean launches its container service by politician on Tuesday December 11, 2018 @02:00PM (#18657814)
Maybe you're thinking of EKS? ECS is an extremely basic scheduler that's closer to Nomad.
Re:DigitalOcean launches its container service by yebyen on Tuesday December 11, 2018 @02:57PM (#18658328)
EKS is no more a competitor to K8S than DOK8s is a competitor to K8s. The CNCF Conformance page[1] shows a link to a spreadsheet[2] which indicates there are currently 96 products by 82 different vendors, including 34 hosted platforms like EKS, which are all Kubernetes.

ECS on the other hand, is a so-called "vanilla" container service which provides its own abstractions and offers no suite for conformance, or compatibility with other vendors' offerings. I have not heard lots of people say great things about ECS. If I could say one nice thing, it's that there is probably less to learn about ECS than about Kubernetes.

[1]: https://www.cncf.io/certification/software-conformance/

[2]: https://docs.google.com/spreadsheets/d/1LxSqBzjOxfGx3cmtZ4Eb...

Re:DigitalOcean launches its container service by layoric on Tuesday December 11, 2018 @03:23PM (#18658534)
For me, ECS having less to learn was its main appeal. You get integration with AWS load balancers giving zero down time deployment and its API to automate is very straight forward. I set it up 2 years ago and have barely touched it. I evaluated K8s at the same time and after a full day was left completely confused how to do the same thing even if I spent a full werk.

ECS has definitely got some oddities mainly in the task definition spec which is most a 1:1 with docket commands but with their own AWS stuff mixed in. Part from that the simplicity vs K8s was its biggest draw card. Lot has happened with K8s in two years I’d imagine, so same choice today might be a different story.

Re:DigitalOcean launches its container service by thinkshiv on Tuesday December 11, 2018 @01:09PM (#18657300)
that is correct