Skip to content

Files

Latest commit

7b3bc54 · Feb 7, 2020

History

History

simple_http_server

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Feb 7, 2020
Nov 26, 2019
Nov 26, 2019

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