Giter VIP home page Giter VIP logo

kubernetes's Introduction

Beyond Kubernetes Certification - Challenges

To keep myself updated and involved with K8S, I will be exploring K8S beyond the certification topics and create challenges here on my findings. These challenges are good-to-know and might be overkill for CKA/CKAD based certifications.

I just mentioned few tips and nothing else for CKA,CKAD certifications as the internet is flooded with many different blogs, repos, videos, training, exercises to prepare for all 3 Kubernetes certifications.

If you are looking for CKS resources, scroll to the bottom of this page.

Note - Please feel free to make a pull request if there's something wrong, should be added, or updated.

Sections

  1. CKA and CKAD - Beyond Certification Challeneges
  2. CKA and CKAD Exam Tips
  3. CKS Resources

CKA CKAD Challenges

CKA CKAD Exam Tips

Kubectl aliases

alias k=kubectl
alias kn='k config set-context --current --namespace '
alias kd='k -o yaml --dry-run=client'
alias kall='k get all -o wide --show-labels'
alias kc='k config get-contexts'

Using aliases

In the exam, every question has a context given, we need to switch over to that context. Some questions are expected to work on specific namespaces. Sometimes we tend to forget adding -n argument to create resources in a specific namespace.

These aliases will help in quickly changing the namespace and also checking the current context before answering/debugging the questions.

  • Example -
    • Create a Deployment name nginx-frontend
    • Expose it using a Service named nginx-svc
    • Write the output of all Service Endpoints to /opt/INC002/endpoints.txt
    • Everything needs to be done in rs67 namespace.

Without aliases

k create deploy nginx-frontend --image nginx -n rs67
k expose deploy nginx-frontend --name nginx-svc --port 80 -n rs67
k get ep -n rs67 > /opt/INC002/endpoints.txt

With aliases

kn rs67         # changing context to use rs67 namespace
kc              # shows the current context and the namespace details

k create deploy nginx-frontend --image nginx
k expose deploy nginx-frontend --name nginx-svc --port 80
k get ep > /opt/INC002/endpoints.txt

kn default      # I feel it is a good practice to switch back to default namespace after every question

VIM Editor changes

These two additions were enough for me to edit/create YAMLs using VI

sudo vi /etc/vim/vimrc
set number
set paste

Bookmarks

During the exam, you can keep only one other browser tab open to refer to official documentation. I have uploaded the bookmarks which I have used for 1.19version. These bookmarks can be used for both CKA/CKAD.

Name Resource
Bookmark Kubernetes-Chrome-Bookmarks

CKS Resources

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.