httpbin application deployment

Installing httpbin application

Below yaml will create and deployment.

kubectl create -f https://github.com/istio/istio/raw/master/samples/httpbin/httpbin.yaml

Ingress Yaml file.

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: httpbin-web-server
namespace: default
spec:
rules:
- host: httpbin.sfgroups.com
    http:
    paths:
    - path: "/"
        backend:
        serviceName:  httpbin
        servicePort: 8000[

Submit the request to httpbin application

curl --resolve httpbin.sfgroups.com:30912:192.168.16.211 http://httpbin.sfgroups.com:30912//get?show_env=1

Output

{
"args": {
    "show_env": "1"
},
"headers": {
    "Accept": "*/*",
    "Connection": "close",
    "Host": "httpbin.sfgroups.com:30912",
    "User-Agent": "curl/7.29.0",
    "X-Forwarded-For": "10.244.0.0",
    "X-Forwarded-Host": "httpbin.sfgroups.com:30912",
    "X-Forwarded-Port": "80",
    "X-Forwarded-Proto": "http",
    "X-Original-Uri": "//get?show_env=1",
    "X-Real-Ip": "10.244.0.0",
    "X-Scheme": "http"
},
"origin": "10.244.0.0",
"url": "http://httpbin.sfgroups.com:30912/get?show_env=1"
}

For more info https://httpbin.org/

Read more on kubeadm install


Copyright © 2004, Software Groups