Pre Setup
Once you've gained access to your terminal it might be wise to spend ~1 minute to setup your environment. You could set these:
alias k=kubectl # will already be pre-configured
export do="--dry-run=client -o yaml" # k get pod x $do
export now="--force --grace-period 0" # k delete pod x $now
Vim
To make vim
use 2 spaces for a tab edit ~/.vimrc
to contain:
set tabstop=2
set expandtab
set shiftwidth=2
More setup suggestions are in the tips section.
Question 0 | Instructions
You should avoid using deprecated kubectl
commands as these might not work in the exam.
There are three Kubernetes clusters and 8 nodes in total:
- cluster1-master1
- cluster1-worker1
- cluster1-worker2
- cluster2-master1
- cluster2-worker1
- cluster3-master1
- cluster3-worker1
- cluster3-worker2
Rules
You're only allowed to have one other browser tab open with the Kubernetes documentation
Notes
You have a notepad (top right) where you can store plain text. This is useful to store questions you skipped and might try again at the end.
Difficulty
This simulator is more difficult than the real certification. We think this gives you a greater learning effect and also confidence to score in the real exam. Most of the simulator scenarios require good amount of work and can be considered "hard". In the real exam you will also face these "hard" scenarios, just less often.
SSH Access
As the k8s@terminal user you can connect via ssh to every node, like ssh cluster1-master1
. Using kubectl
as root user on a master node you can connect to the api-server of just that cluster.
File system
User k8s@terminal has root permissions using sudo should you face permission issues. Whenever you're asked to write or edit something in /opt/course/...
it should be done so in your main terminal and not on any of the master or worker nodes.
K8s contexts
Using kubectl
from k8s@terminal you can reach the api-servers of all available clusters through different pre-configured contexts. The command to switch to the correct Kubernetes context will be listed on top of every question when needed.
Ctrl/Cmd-F Search
Do not use the browser search via Ctrl-F or Cmd-F beause this will render the brower terminal unusuable. If this happened you can simply reload your browser page.