Hacker News new | past | comments | ask | show | jobs | submit login
Show HN: An online interactive Kubernetes playground (play-with-k8s.com)
164 points by xetorthio on July 6, 2017 | hide | past | favorite | 45 comments



https://www.katacoda.com/learn is a pretty great site, that also has a "playground" mode for Kubernetes available (as well as others)


Hi, PWK co-author here. Indeed, Katacoda is a great site to learn technologies. With our playgrounds we're trying to accomplish a different purpose though. Here's a blog post that explains the idea better: https://medium.com/@marcosnils/introducing-pwk-play-with-k8s....

TL;DR: PWK is a platform composed by different components powered by the an open source core (https://github.com/xetorthio/play-with-docker) that allows the following:

* Try new features fast as it’s updated with the latest dev versions. * Setup clusters in no-time and launch replicated services. * Learn through it’s interactive tutorials (http://training.play-with-docker.com). * Allow to run advanced workshops that’d usually require complex setups. * Collaborate with community members to diagnose and detect issues by sharing your session URL.

The idea is to replicate real case deployments where you need to add/remove nodes to experiment with failures and things like that. You can also go through platform upgrades as PWK allows to run different versions of K8s in the same session.

Additionally, we're planning to launch a training site similar to Docker's (http://training.play-with-docker.com/) to enhance the experience soon. It'd be awesome to get the K8s community help with the content as it's very difficult to scale all this content by ourselves as an free project.

If you need help deploying K8s locally or in your own cloud provider, please let us know so we can help. This is still a very young project, but we think that with some help it could really help the community as it did for Docker.


I've tried the katacoda kubeadm tutorial but it didn't work for me


Can you elaborate? It worked for me (as in was both functional and educational) - was it the function or the education that didn't work for you?

I've also found Katacoda a good platform for Tensorflow tutorials (e.g. https://katacoda.com/basiafusinska/scenarios/tensorflow) - not great for power users, but awesome for people who just want to learn the basics without having to set anything up.


I can access the 'playground' exercise, but you have to sign up to the site to access the other tutorials.


True, but it's a free signup and we don't send unwanted emails...


I can understand why you'd want to do this, but it would be great if it was optional.


I'd love to hear your feedback, bug reports are always welcome. We haven't heard of other problems.


Sure, sorry I didn't elaborate my previous comment, it was late here and after re-reading, it feels like a rant. What I meant was that I've tried following Katacoda's kubeadm tutorial (https://www.katacoda.com/courses/kubernetes/getting-started-...) but for some reason it seems not to be working for me. Both cluster nodes never get `ready` after finishing the tutorial, only the master one.


Thanks! :)


If anyone wonders why it just shows a blank page, the error code is:

    503 Service Unavailable: Back-end server is at capacity
TL;DR: We’ve slashdotted it.


Yeah... hahaha. Sorry about that. We didn't expect so much traffic in such a short period of time. We will add more capacity shortly.


Done. Should be working now.


You might want to put this behind kubernetes so you can scale it easier... It's down again.


Hahaha, good one! :)



Yeah. Too much traffic in a short period of time. Sorry about that.


Slightly ironic that a system which has scalability as one of its goals went down due to traffic. Although I guess few things are prepared for an onslaught of catching attention on sites like HN or Reddit.


Will return later!


Thx, we appreciate the patience!.


As several people have mentioned already - Ben Hall is doing great work.

I'm happy to see this Kubernetes playground because it's an open-source alternative.


This isn't working for me. The only thing that works for me is reCaptcha. Then it times out. Hug of death maybe?


Related: Anyone got a guide for deploying kubernetes on hardware I would have at home? a full cluster, not minikube.


Kubeadm (https://kubernetes.io/docs/setup/independent/create-cluster-...) is great if you can install the base OS yourself (manually or through existing scripting you might have). The great thing is that you end up with a fully secured cluster, which (unfortunately) isn't the case with every tool or guide out there.


I just used this official guide from CoreOS to set it up on Vagrant/virtualbox: https://coreos.com/kubernetes/docs/latest/kubernetes-on-vagr.... It was pretty straightforward.


You might enjoy this guide[1]. It explains how to deploy and run a secure, fully functional Kubernetes cluster outside platforms like GCE or AWS. Provisioning and example manifests are provided as well.

[1] https://github.com/hobby-kube/guide


kubeadm makes installing Kubernetes on existing computers vastly easier than it used to be (which isn’t to say it is easy now, just easier). https://kubernetes.io/docs/setup/independent/create-cluster-...


I use this for a "full cluster"

https://github.com/pires/kubernetes-vagrant-coreos-cluster

If you want bare metal, there's a few good ways to roll your own.


Yes - this has been doing fairly well and uses kubeadm on Ubuntu - https://blog.alexellis.io/kubernetes-in-10-minutes/


I used to also recommend kubeadm, but then I recognized there is no HA whatsoever (and what's the point of a cluster that dies with the master?)

Issue to track: https://github.com/kubernetes/kubeadm/issues/261 and https://github.com/kubernetes/kubernetes/pull/44793


Have heard good things about Kubespray: https://github.com/kubernetes-incubator/kubespray


If you're familiar with ansible, it'll be quite easy to setup a k8s cluster on bare metal with kubespray. What's more is that it deploys production ready cluster with HA support


I'm looking for similar, but want to run containers on bare metal, not inside virtual box or similar.


I used kubeadm to set up a small cluster on Online.net’s cheap dedicated machines. It works quite well.



This is cool but I'm a bit unsure how to actually use this. Kubectl doesn't seem to be able to connect to the server from within the terminal. It just gets: `The connection to the server localhost:8080 was refused - did you specify the right host or port?`


It should work if you are on the master node


I have no idea about Kubernetes, all i did is copy/paste. Any good resources?


Take a look at https://www.katacoda.com/courses/kubernetes/ and the official Kubernetes interactive bootcamp that Katacoda also powers at https://kubernetes.io/docs/tutorials/kubernetes-basics/

We'd love to hear your feedback.


We're working on a tutorials site similar to http://training.play-with-docker.com. We'll try to get it up soon.


broken


Why you are not serving the site in S3 bucket? :] Or does it have some fancy server side functionality?


Now that I was finally able to load the site I must say I'd have liked to have had some basic tutorials to help me get started. It might haven't been in the scope of this site but surely it would have been nice. Also the recaptcha is just a kick in the balls when it starts asking to pick the right squares. I'd have been happy to sign in with G+ just to skip it.


Hi, thanks for the feedback. We're planning to add some basic tutorials soon like (http://training.play-with-docker.com). We'd need the help from the community though as it's hard for us to grow an OS project by ourselves. Regarding the login thing, we're also working on that aspect. Expect some updates soon.


This is the companion site to play-with-docker.com - which also has the captcha. OpenID login sounds like a good idea.




Consider applying for YC's W25 batch! Applications are open till Nov 12.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: