Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 817 Bytes

README.md

File metadata and controls

39 lines (27 loc) · 817 Bytes

Simple http server

WORKDIR: current folder service_name: http-app-service

  1. Apply deployment and service
kubectl apply ./
  1. Get URL

Check exposed URL http-app-service

check again install notes of K8s: Get k8s service URL

Example output:

|----------------------|---------------------------|-----------------------------|-----|
|      NAMESPACE       |           NAME            |         TARGET PORT         | URL |
|----------------------|---------------------------|-----------------------------|-----|
| default              | http-app-service          | http://192.168.99.101:31055 |
|----------------------|---------------------------|-----------------------------|-----|

  1. Test url

Request:

curl http://192.168.99.101:31055

Response:

Hello world