Skip to main content Link Menu Expand (external link) Document Search Copy Copied

5. LAB-3 Kubectl

{ :no_toc }

Table of contents
  1. 5. LAB-3 Kubectl
    1. kubectl
      1. Check resources
      2. Helping manual
    2. Read information
      1. Read node’s information
      2. Read node’s detail information
      3. Read running container’s information
    3. Running Container
    4. Running multi-containers
    5. Assignment-1
    6. Assignment-2

kubectl

Check resources

Helping manual

Read information

Read node’s information

Read node’s detail information

Read running container’s information

Running Container

Running multi-containers

Assignment-1

  • fix it to show the message “Hello to K8s” when you access the ‘webserver’.

Assignment-2

  • Create httpd container as name ‘webserver2’ that has 3 replicas and make it export it to yaml file and name ‘webserver2’.

  • Modify replicas number to 5 in yaml and then recreate containers.


Table of contents