Skip to content

Instantly share code, notes, and snippets.

View aveshagarwal's full-sized avatar

Avesh Agarwal aveshagarwal

View GitHub Profile
git-clone|sti-build|manage-dockerfile|052d6528dc4f85703f14f282070be43d3fc83331603b98783ee307aa6504b517|d5ad324f6e351c4b37bbeacc777d291262b2636c8e3e7334438e6a17cdaaae72|e8c2fc66cdc000498dc0ddf61f872e4dbad2b66b
ebb1340ee9914ea7aa95de1d|extended-test-s2i-build-quota-gsfc7-28ksz|c2cbd02c-dbe3-11e7-85de-0e10bc5ac50a|c505062cbd02c-dbe3-11e7-85de-0e10bc5ac50a|c2cbd02c_dbe3_11e7_85de_0e10bc5ac50a|711fd7158baaf84a1c01916e30b1
cf5150faa90eba69e4191ce36717a4475d62|c1f12642-dbe3-11e7-85de-0e10bc5ac50a
# A headless service to create DNS records
apiVersion: v1
kind: Service
metadata:
name: foo
namespace: test
labels:
app: hello-pod
spec:
ports:
apiVersion: v1
kind: List
metadata: {}
items:
- apiVersion: v1
kind: ReplicationController
metadata:
labels:
metrics-infra: hawkular-cassandra
name: hawkular-cassandra
apiVersion: v1
kind: Pod
metadata:
name: dapi-test-pod
spec:
containers:
- name: test-container
image: gcr.io/google_containers/busybox:1.24
command: [ "/bin/sh", "-c", "sleep 9999999999" ]
env:
curl -i -k -N -H "Sec-Websocket-Key: XLJ11MuCWXhqDKS7TOp9uQ==" -H "Connection: Upgrade" -H "Upgrade: websocket" -H "Host: localhost" -H "Origin: http://localhost:8080" http://localhost:8080/api/v1/pods?watch=true -v -H "Sec-Websocket-Version: 13"
* About to connect() to localhost port 8080 (#0)
* Trying ::1...
* Connection refused
* Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 8080 (#0)
> GET /api/v1/pods?watch=true HTTP/1.1
> User-Agent: curl/7.29.0
> Accept: */*
> Sec-Websocket-Key: XLJ11MuCWXhqDKS7TOp9uQ==
# curl -i -H 'Accept-Encoding: gzip, deflate, sdch, br' -H 'Accept-Language: en-US,en;q=0.8' -H 'Cache-Control: no-cache' -H 'Connection: upgrade' -H 'Upgrade: websocket' -H 'Host: 127.0.0.1:8080' -H 'Origin: http://127.0.0.1:8080' http://127.0.0.1:8080/api/v1/pods?watch=true
HTTP/1.1 400 Bad Request
mismatch challenge/response
# curl -i -H 'Accept-Encoding: gzip, deflate, sdch, br' -H 'Accept-Language: en-US,en;q=0.8' -H 'Cache-Control: no-cache' -H 'Connection: upgrade' -H 'Upgrade: 0.1:8080' -H 'Origin: http://127.0.0.1:8080' 127.0.0.1:8080/api/v1/pods?watch=true
HTTP/1.1 400 Bad Request
mismatch challenge/response
# curl -i -H 'Accept-Encoding: gzip, deflate, sdch, br' -H 'Accept-Language: en-US,en;q=0.8' -H 'Cache-Control: no-cache' -H 'Connection: upgrade' -H 'Upgrade: websocket' -H 'Host: 127.0.0.1:8080' -H 'Origin: http://127.0.0.1:8080' http://127.0.0.1:8080/api/v1/pods?watch=true
HTTP/1.1 400 Bad Request
mismatch challenge/response[root@rhel73 kubernetes]# curl -i -H 'Accept-Encoding: gzip, deflate, sdch, br' -H 'Accept-Language: en-US,en;q=0.8' -H 'Cache-Control: no-cache' -H 'Connection: upgrade' -H 'Upgrade: 0.1:8080' -H 'Origin: http://127.0.0.1:8080' 127.0.0.1:8080/api/v1/pods?watch=true
HTTP/1.1 400 Bad Request
mismatch challenge/response[root@rhel73 kubernetes]# curl -i -H 'Accept-Encoding: gzip, deflate, sdch, br' -H 'Accept-Language: en-US,en;q=0.8' -H 'Cache-Control: no-cache' -H 'Connection: upgrade' -H 'Upgrade: 0.1:8080' -H 'Origin: 127.0.0.1:8080' 127.0.0.1:8080/api/v1/pods?watch=true
HTTP/1.1 400 Bad Request
mismatch challenge/response
#curl -i -k -N -H 'Accept-Encoding: gzip, deflate, sdch, br' -H 'Accept-Language: en-US,en;q=0.8' -H 'Cache-Control: no-cache' -H 'Connection: upgrade' -H 'Upgrade: websocket' -H 'Host: http://127.0.0.1:8080' -H 'Origin: http://127.0.0.1:8080' http://127.0.0.1:8080/api/v1/namespaces/default/pods?watch=true
HTTP/1.1 400 Bad Request
Content-Type: text/plain
Connection: close
400 Bad Request: malformed Host header
# curl -i -H 'Accept-Encoding: gzip, deflate, sdch, br' -H 'Accept-Language: en-US,en;q=0.8' -H 'Cache-Control: no-cache' -H 'Connection: upgrade' -H 'Upgrade: websocket' -H 'Host: http://127.0.0.1:8080' -H 'Origin: http://127.0.0.1:8080' http://127.0.0.1:8080/api/v1/namespaces/default/pods?watch=true
HTTP/1.1 400 Bad Request
#curl -i -k -N -H 'Accept-Encoding: gzip, deflate, sdch, br' -H 'Accept-Language: en-US,en;q=0.8' -H 'Cache-Control: no-cache' -H 'Connection: upgrade' -H 'Upgrade: websocket' -H 'Host: http://127.0.0.1:8080' -H 'Origin: http://127.0.0.1:8080' http://127.0.0.1:8080/api/v1/namespaces/default/pods?watch=true
HTTP/1.1 400 Bad Request
Content-Type: text/plain
Connection: close
400 Bad Request: malformed Host header
# curl -i -H 'Accept-Encoding: gzip, deflate, sdch, br' -H 'Accept-Language: en-US,en;q=0.8' -H 'Cache-Control: no-cache' -H 'Connection: upgrade' -H 'Upgrade: websocket' -H 'Host: http://127.0.0.1:8080' -H 'Origin: http://127.0.0.1:8080' http://127.0.0.1:8080/api/v1/namespaces/default/pods?watch=true
HTTP/1.1 400 Bad Request