Create Kubernetes Nginx Ingress Controller for External API Traffic

Lab Steps

lock
Logging in to the Amazon Web Services Console
lock
Connecting to the CloudAcademy Web based K8s IDE
lock
Install Cilium CNI
lock
Install Nginx Ingress Controller
lock
Deploy the API Deployment and Service Resources
lock
Deploy the API Ingress Resource
lock
Perform External API Test

Ready for the real environment experience?

DifficultyIntermediate
Time Limit1h 30m
Students563
Ratings
4.5/5
starstarstarstarstar-half

Description

If you're building and deploying cloud-native applications and microservices, then Kubernetes is the must-have platform. Kubernetes provides superior container-orchestration, deployment, scaling, and management. When it comes to securing application traffic within Kubernetes, consider using Network Policies.

Being able to consume Kubernetes hosted services externally is a common requirement. Kubernetes provides the Ingress resource type to implement this requirement. In this lab, you learn how to deploy an Nginx Ingress Controller and install and expose a sample API service using an Ingress resource.

Lab Objectives

Upon completion of this lab, you will be able to:

You should:

  • Be comfortable with basic Linux command line administration
  • Be comfortable with basic Kubernetes cluster administration

Lab Environment

This lab will start with the following AWS resources provisioned automatically for you:

  • A single EC2 instance, named k8s.cluster.cloudacademy.platform.instance, which will have a public IP address attached. This will be the instance that you will connect to using your local workstation browser.

To achieve the lab end state, you will be walked through the process of:

  • Using your local workstation browser to remotely connect to k8s.cluster.cloudacademy.platform.instance
  • Install and setup the Nginx Ingress Controller
  • Deploy a ready made Programming Languages themed API into a Kubernetes cluster
  • Create and deploy an Ingress resource to expose the API externally
  • Test and validate the API externally

 

Updates

August 20th, 2020 - Fixed issue with the CNI plugin

August 19th, 2020 - Fixed issue with the storage provisioner

August 14th, 2020 - Fixed issue preventing Kubernetes environment from starting

About the Author
Students125860
Labs66
Courses113
Learning paths180

Jeremy is a Content Lead Architect and DevOps SME here at Cloud Academy where he specializes in developing DevOps technical training documentation.

He has a strong background in software engineering, and has been coding with various languages, frameworks, and systems for the past 25+ years. In recent times, Jeremy has been focused on DevOps, Cloud (AWS, Azure, GCP), Security, Kubernetes, and Machine Learning.

Jeremy holds professional certifications for AWS, Azure, GCP, Terraform, Kubernetes (CKA, CKAD, CKS).