├── README.md ├── cncf.png ├── tutorial.md └── warning.png /README.md: -------------------------------------------------------------------------------- 1 | # CNCF PSI Exam - Linux Environment Simulator 2 | 3 | ![CNCF](https://raw.githubusercontent.com/spurin/cncf-psi-k8s-linux-simulator/main/cncf.png) 4 | 5 | A customised Google Cloud Shell enviroment, preconfigured to provide familiarisation of the Desktop environment used in the new PSI CNCF Kubernetes Exam Environments 🚀 6 | 7 | Click the link, authenticate with your Google credentials, you don't need to 'Trust' the image (i.e. share your credentials) for all of the functionality to work. Once launched, follow the short tutorial on the right hand side. 8 | 9 | After following the tutorial steps, you'll have Minikube configured and this will be accessible from an XFCE Linux Desktop environment, which, will be similar to that used in the PSI Exam suite. You should familiarise yourself with using Kubernetes within this environment, documentation via Firefox and general interactions such as copying and pasting (ctrl shift c, ctrl shift v). 10 | 11 | If for any reason, the tutorial is interupted with an error message or does not appear (there is an intermittent Google Cloud Shell issue at the moment), i.e. 12 | 13 | ![Warning](https://raw.githubusercontent.com/spurin/cncf-psi-k8s-linux-simulator/main/warning.png) 14 | 15 | From the terminal run - 16 | 17 | ```teachme tutorial.md``` 18 | 19 | When ready, click the button to launch - 20 | 21 | [![Open in Cloud Shell](https://gstatic.com/cloudssh/images/open-btn.svg)](https://ssh.cloud.google.com/cloudshell/editor?cloudshell_image=gcr.io/cloudshell-images/cloudshell&cloudshell_git_repo=https://github.com/spurin/cncf-psi-k8s-linux-simulator.git&cloudshell_tutorial=tutorial.md&shellonly=true) 22 | -------------------------------------------------------------------------------- /cncf.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spurin/cncf-psi-k8s-linux-simulator/54a825468125debbae3c5fd15db6bf3aadb41293/cncf.png -------------------------------------------------------------------------------- /tutorial.md: -------------------------------------------------------------------------------- 1 | # CNCF PSI Linux Environment Simulator 2 | 3 | ![CNCF](https://raw.githubusercontent.com/spurin/cncf-psi-k8s-linux-simulator/main/cncf.png) 4 | 5 | This tutorial provides you with a Linux Desktop environment that will be similar to that used in the new CKA/CKAD/CKS exams running under the new PSI exam framework. By following this tutorial you'll have a simple Kubernetes setup (single node - command can be modified for multiple nodes) and a Linux desktop with kubectl configured for Minikube. The browser (Firefox) is also configured for the kubernetes.io homepage. 6 | 7 | Firstly, we'll setup our kubernetes environment using minikube - 8 | 9 | ```bash 10 | minikube start 11 | ``` 12 | 13 | We'll then run a Linux Desktop in a container. As we do this, we'll pass in the minikube configuration files and we'll bind to the bridge network, that was created by minikube, therefore allowing our Desktop environment to communicate with Minikube - 14 | 15 | ```bash 16 | docker run -d \ 17 | --name=webtop \ 18 | --security-opt seccomp=unconfined \ 19 | -e PUID=1000 \ 20 | -e PGID=1000 \ 21 | -e TZ=Europe/London \ 22 | -e SUBFOLDER=/ \ 23 | -e KEYBOARD=en-us-qwerty \ 24 | -e KUBECONFIG=/config/.kube/config \ 25 | -p 8080:3000 \ 26 | -v ~/.kube:/config/.kube \ 27 | -v /google/minikube:/google/minikube \ 28 | --shm-size="1gb" \ 29 | --restart unless-stopped \ 30 | --network minikube \ 31 | spurin/webtop-k8s:latest 32 | ``` 33 | 34 | To access the Desktop, click the Web Preview Icon, if you cant find it, click -> here for a walkthrough on where to find it. 35 | 36 | Select 'Preview on Port 8080' and you're good to go! 37 | -------------------------------------------------------------------------------- /warning.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spurin/cncf-psi-k8s-linux-simulator/54a825468125debbae3c5fd15db6bf3aadb41293/warning.png --------------------------------------------------------------------------------