arush-sal / cka-practice-environment Goto Github PK
View Code? Open in Web Editor NEWA sample lab test environment to help in preparation of CKA certification.
License: MIT License
A sample lab test environment to help in preparation of CKA certification.
License: MIT License
Can we have short guide on how we can integrate our own cluster with the exam suite?
There is not much documentation.
We want to add support for (kind)[https://github.com/kubernetes-sigs/kind] so that the whole setup has its own infra to work on and the overall scenario can be as close and similar to what is presented in the exam.
The timer gets reset once the page is refreshed which should not happen, and this needs to be fixed.
Reprod this on Windows and Ubuntu:
jemartin@ubuntu-ws:~/tmp/cka-practice-environment$ docker-compose up -d
Creating network "cka-practice-environment_frontend" with the default driver
Creating volume "cka-practice-environment_ssh_key" with default driver
Pulling gateone (arush/gateone:http)...
http: Pulling from arush/gateone
d3938036b19c: Pull complete
a9b30c108bda: Pull complete
67de21feec18: Pull complete
817da545be2b: Pull complete
d967c497ce23: Pull complete
3aa3377ea114: Pull complete
1ad592e6026c: Pull complete
c340f76fffe4: Pull complete
103ed747abbe: Pull complete
4313ab0f9d2f: Pull complete
a2750501d449: Pull complete
9f43e7c05a26: Pull complete
d42de587a1b6: Pull complete
Pulling lab (arush/cka_lab:)...
latest: Pulling from arush/cka_lab
ff3a5c916c92: Pull complete
b430473be128: Pull complete
7d4e05a01906: Pull complete
8aeac9a3205f: Pull complete
449a71c3265d: Pull complete
Creating cka-practice-environment_gateone_1 ... done
Creating cka-practice-environment_lab_1 ... done
emartin@ubuntu-ws:~/tmp/cka-practice-environment$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ffb9eac43067 arush/cka_lab "nginx -g 'daemon of…" 20 seconds ago Up 15 seconds 0.0.0.0:80->80/tcp cka-practice-environment_lab_1
4a414891e5fe arush/gateone:http "/usr/local/bin/upda…" 20 seconds ago Exited (1) 5 seconds ago cka-practice-environment_gateone_1
jemartin@ubuntu-ws:~/tmp/cka-practice-environment$ docker logs 4a4
Traceback (most recent call last):
File "/usr/local/bin/gateone", line 9, in <module>
load_entry_point('gateone==1.2.0', 'console_scripts', 'gateone')()
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 542, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2569, in load_entry_point
return ep.load()
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2229, in load
return self.resolve()
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2235, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/usr/local/lib/python2.7/dist-packages/gateone-1.2.0-py2.7.egg/gateone/core/server.py", line 361, in <module>
import tornado.httpserver
File "/usr/local/lib/python2.7/dist-packages/tornado/httpserver.py", line 144
def __init__(self, *args: Any, **kwargs: Any) -> None:
^
SyntaxError: invalid syntax
docker-machine start default
eval $(docker-machine env default)
parse docker host IP IP=$(docker-machine ip default)
Run app docker-compose up -d
Visit http://${IP}
Click "Let's Start Exam"
Authentication failure.
HI when I'm trying to run kubectl get node in browser getting this error
The connection to the server 127.0.0.1:6443 was refused - did you specify the right host or port?
Following the README it was simple to get up and running at http://localhost (on Mac OS 10.15.7)
But I can't get passed the first question :-)
I ran the following commands:
apt-get update
sudo is missing so I install it
apt-get install sudo
These commands come from https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/
sudo apt-get update && sudo apt-get install -y apt-transport-https curl
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
cat <<EOF | sudo tee /etc/apt/sources.list.d/kubernetes.list
deb https://apt.kubernetes.io/ kubernetes-xenial main
EOF
sudo apt-get update
sudo apt-get install -y kubelet kubeadm kubectl
sudo apt-mark hold kubelet kubeadm kubectl
But when I run "kubeadm init" I get the following error:
W1107 15:30:50.563919 1034 kubelet.go:200] cannot automatically set CgroupDriver when starting the Kubelet: cannot execute 'docker info -f {{.CgroupDriver}}':
executable file not found in $PATH
Basically the "docker" command is not found.
I've tried installing docker, but I get errors when trying to start it.
In the 1st question : "Bootstrap a Kubernetes v1.10 cluster using kubeadm", it seems that kubeadm is not installed and even docker daemon is not running in the SSH Terminal : is it normal ?
Do we need to install all the needed tools manually in the web app console before taking the test ?
hi
run command: docker-compose up -d
ERROR: Service 'gateone' failed to build: Get https://registry-1.docker.io/v2/arush/gateone/manifests/latest: unauthorized: incorrect username or password
The following question contains a dead link :
Q. Enable cluster auditing
Enable cluster wide auditing. You can use the audit policy provide at here.
Make sure the audit logs are properly generated and saved to a log file.
Hi,
I really enjoy the tool and think its a great way to study for the CKA.
However, I would like to suggest you also supply the answers too. For those of us studying for the cert, the answers may not be what we think. It would be nice have a way to verify that.
Thanks
I can't see any of the exercises, is this expected?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.