ubuntu based k8s workshop environment accessible via a browser.
8.3K
Base image for k8s workshops. The main idea is to provide an environment
where participants can kubectl right away, "no-installation-needed"
For instant kubectl access a browser based connectivity is provided. Under the hood bash is shared via a websocket, based on: yudai/gotty.
See the last section for explanation about different access methods, and why the browser based is preferred. Please note, that while browser based is poreferable for first-time users, additional ssh access can be easily provided. See sshfront
First source all the functions:
. workshop-functions.sh
A ClusterRole and a binding is needed initially
init
Create a devenv for a participant:
$ dev user5
namespace/user5 created
serviceaccount/sa-user5 created
role.rbac.authorization.k8s.io/role-user5 created
rolebinding.rbac.authorization.k8s.io/rb-user5 created
clusterrolebinding.rbac.authorization.k8s.io/crb-user5 created
secret/user5 created
deployment.apps/user5 created
service/user5 created
Share the url for browser connection:
$ get-url user5
open http://35.199.111.25:31234/1g7j7u0l/
The presenter can share its terminal session in as read-only via browser. Participants can easily copy-paste commands.
Share the presenter url with participats:
$ presenter-url
Start the presenter session (user0):
$ presenter
There are various ways for participants to work with the k8s cluster:
Please note, that while browser based is poreferable for first-time users, adiitional ssh access can be easily provided. See sshfront
Content type
Image
Digest
Size
265.9 MB
Last updated
almost 6 years ago
docker pull lalyos/k8s-workshop