This repository contains materials for workshop "Start using Kubernetes as Developer in 6h".
Workshop is dedicated to software developers with no or little knowledge about Kubernetes. However, basic familiarity with containerization and Docker is expected.
Atendees are asked to bring their own laptops with prepared environment according to instructions enclosed in section below.
You can do this by:
- Installing locally minikube instructions
- Buying kubernetes cluster subscription on one of cloud providers (e.g. azure, google cloud, aws ) and configuring connection to remote cluster according to instructions provided provider's page
Verify that the setup is correct, by
kubectl cluster-info
You should get similar output:
Kubernetes master is running at https://172.17.85.7:8443
KubeDNS is running at https://172.17.85.7:8443/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy
Run in console:
kubectl run my-httpd --image=httpd --port=80 --restart=Never
Then following command will try to download httpd
docker image from public registry your cluster. After while, a run of following command:
kubectl get pods
should return output similar to:
NAME READY STATUS RESTARTS AGE
my-httpd 1/1 Running 0 24s
Check if you can forward port of application running on Kubernetes to your localhost, and access it via browser.
Run in console:
kubectl port-forward my-httpd 9999:80
And then open in browser localhost:9999
. You should get a page with "It works!" message.
Install docker on your local machine accoring to instructions on docker page
I'd be very grateful for you feedback after workshop: https://forms.gle/dS9JGCF2kdfgYevs9