![]() You will need to leave this command running though, so you’ll want to background it (or just start another terminal window). It’s also the approach to use if you have reason to access a particular pod. If you’ve got just one pod (perhaps because it’s a deployment with a single replica), this is a straightforward way to access it. Port forwarding lets you access a specific pod’s container port directly. ![]() Port forwarding directs traffic to a port in a particular pod: $ kubectl get pods NAME READY STATUS RESTARTS AGE aqua-csp-766689745b-4ln7q 1/1 Running 0 6m $ kubectl port-forward aqua-csp-766689745b-4ln7q 8080:8080 Forwarding from 127.0.0.1:8080 -> 8080Īt this point I can browse to 127.0.0.1:8080 and access the Aqua Security web service I’ve got running on my Kubernetes deployment. Once you’ve got your application running in Kubernetes, there are a couple of ways to access it from your desktop. There are some good tutorials to get you started with Kubernetes on Docker for Mac / Windows, like this one from Romin Irani. ![]() Accessing an application on Kubernetes in Docker
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |