WORKDIR: current folder service_name: http-app-service
- Apply deployment and service
kubectl apply ./
- 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 |
|----------------------|---------------------------|-----------------------------|-----|
- Test url
Request:
curl http://192.168.99.101:31055
Response:
Hello world