Coder Social home page Coder Social logo

kommander-workshop-student's Introduction

Managing Kubernetes at Scale

Introduction

During this workshop, you will learn through the use of customer resource definitions, controllers and APIs how to manage and operate Kubernetes at scale.

Prerequisites

Please go to the Google Drive share and put your name in the Student_Data sheet next to a student number. This will be your student number and password you will use for today's workshop.

Google Drive Share - Contains student data sheet and yaml packages for today's labs.

You need either a Linux, MacOS or a Windows client with the kubernetes command line installed and an internet browser.

Install and Set Up kubectl The Kubernetes command-line tool, kubectl, allows you to run commands against Kubernetes clusters. You can use kubectl to deploy applications, inspect and manage cluster resources, and view logs.

kubectl installation

Install kubectl on Linux

Install kubectl binary with curl on Linux Download the latest release and move the binary in to your PATH with the following commands:

curl -LO "https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl"```
chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin/kubectl

Test to ensure the version you installed is up-to-date:

kubectl version --client

Connect to the Kommander dashboard

Kommander Dashboard https://kommander.k8s-workshops.comops/portal/kommander/ui/#/

Login with your provided credentials:

student number: student###
password: password

Client tokens

To configure kubectl to access the Kubernetes cluster, obtain a token from the web landing page, by selecting Generate Kubectl Token. Select an identity provider and cluster. As many of the backends provide single-sign on (SSO), you may already be signed in. Otherwise, you will be redirected to your identity provider’s web page to login.

Kommander Dashboard - Generate tokens!

Once you have signed in, a page will show the commands required to configure kubectl to access the Konvoy cluster.

Kommander Dashboard - tokens!

When the token expires, it is necessary to repeat the above process to obtain a fresh token. When refreshing a token, only the kubectl config set-credentials command needs to be executed with the new token.

Using kubectl

One of the most common ways to perform administrative tasks and interact with a Kubernetes cluster is through the kubectl command line interface. With kubectl, you can run commands against native Kubernetes clusters to retrieve information about key cluster activities and to control specific cluster-level components and operations.

Validate you are able to connect to the management cluster.

Windows

setupENV.bat

Mac/Linux

chmod +x setupENV.sh
./setupENV.sh

Verify your API connection:

kubectl get pods

You should recieve an output that says:

No resources found in student001-g4vf9 namespace.

Continue to the Multi-cloud lab

kommander-workshop-student's People

Contributors

c-mcinerney avatar

Watchers

 avatar

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.