Skip to content

Latest commit

 

History

History
79 lines (52 loc) · 1.41 KB

21-Practice-Test-Services.md

File metadata and controls

79 lines (52 loc) · 1.41 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