From the course: Automating Kubernetes with GitOps
Unlock this course with a free trial
Join today to access over 24,700 courses taught by industry experts.
Providing access to applications - Kubernetes Tutorial
From the course: Automating Kubernetes with GitOps
Providing access to applications
- All right, now that we have our application up and running, let's talk about providing access to it. Because after running an application in Kubernetes, it doesn't automatically become accessible and to access an application, there are different solutions. There is kubectl port-forward, that's for testing purposes only, and it exposes support on the host that runs the QCTL client. It's convenient and it allows you to figure out what is going on, but it's not how you permanently are going to expose your application. Services are Kubernetes objects that provide load balancing to different pod instances. And ingress is an additional Kubernetes object that provides access to HTTP as well as HTTPS resources. I'll show you more detail how these are working in the next lesson, but for now I want you to understand the differences. So before continuing with the next lesson, let me show you how to use kubectl port-forward. All right, let me use kubectl get all - - selector app is webserver…