Skip to content

Latest commit

 

History

History
90 lines (53 loc) · 1.52 KB

21-Practice-Test-Services.md

File metadata and controls

90 lines (53 loc) · 1.52 KB

Practice Test - Services

Solutions to Practice test - Services

  • Run the command kubectl get services and count the number of services.

    $ kubectl get services
    
  • Run the command kubectl get services and look at the Type column

    $ kubectl get services
    
  • Run the command kubectl describe service and look at TargetPort.

    $ kubectl describe service|grep TargetPort
    
  • Run the command kubectl describe service and look at Labels

    $ kubectl describe service
    
  • Run the command kubectl describe service and look at Endpoints

    $ kubectl describe service
    
  • Run the command kubectl get deployment and count the number of pods.

    $ kubectl get deployment
    
  • Run the command kubectl describe deployment and look under the containers section.

    $ kubectl describe deployment
    
  • Try to access the Web Application UI using the tab simple-webapp-ui above the terminal.

  • Update the given values in the service definition file and create the service.

    $ kubectl create -f service-definition-1.yaml