Code Monkey home page Code Monkey logo

cka-practice-environment's Introduction

Hi there 👋

Arush's github stats

Top Langs

Visitors Count

Loading

cka-practice-environment's People

Contributors

arush-sal avatar mcmattco avatar zanhsieh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cka-practice-environment's Issues

Add support for Kind

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.

gateone container exited upon creation `SyntaxError: invalid syntax`

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

Authentication Failure

Thanks for the tool. I tried starting the lab using docker-compose up -d, but when I open the website, I get Authentication Failure

image

Authentication failure

Steps to reproduce

  1. Start minikube and point kubectl on it.
  2. start docker engine
docker-machine start default
eval $(docker-machine env default)
  1. parse docker host IP IP=$(docker-machine ip default)

  2. Run app docker-compose up -d

  3. Visit http://${IP}

  4. Click "Let's Start Exam"

Issue

Authentication failure.

image

  • Do I need browser plugin?
  • Do I need CKA candidate handbook to understand what's error in this simulation?

kubeadm not working

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.

Boostraping not clear

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 ?

"audit policy" dead link

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.

Solutions to the questions?

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.