Curling Kubernetes API Requests

45 minutes
  • 3 Learning Objectives

About this Hands-on Lab

The Kubernetes API is a RESTful HTTP API, based on client-server architecture. In this hands-on lab, you’ll demonstrate the Kubernetes API server’s availability to standard client requests through use of the command-line web browser `curl`.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Gather Pod Information

Discover the available pods and the specific pod name requested.

Set Up and Run the curl Command

Execute the curl command, outputting the response to a JSON-formatted file.

Review Output File

Confirm that the file has been created and contains the appropriate information.

Additional Resources

In this scenario, you have been asked to verify that the current Kubernetes cluster is accessible to authenticated, authorized external clients. You choose to use the curl command to gather details from data-backend pod in the current cluster and store it in a file for the proof of concept.

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?