This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"kind": "Route", | |
"apiVersion": "v1", | |
"metadata": { | |
"name": "fails-route-4" | |
}, | |
"id": "fails-route-4", | |
"spec": { | |
"host": "fails-route-4.header.test", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: router-exposition | |
labels: | |
name: router | |
spec: | |
type: NodePort | |
ports: | |
# the port that this service should serve on |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ramr@localhost origin (cached:reload-fixes:c-0:s-0+0:o-114)]$ echo $(oc get endpoints router --output-version=v1beta3 --template='{{ if .subsets }}{{ len .subsets }}{{ else }}0{{ end }}') | |
1 | |
[ramr@localhost origin (cached:reload-fixes:c-0:s-0+0:o-114)]$ oc get endpoints router | |
NAME ENDPOINTS AGE | |
router 33s | |
... wait for the router pod to come up ... | |
[ramr@localhost origin (cached:reload-fixes:c-0:s-0+0:o-114)]$ oc get endpoints router | |
NAME ENDPOINTS AGE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"kind": "Route", | |
"apiVersion": "v1", | |
"metadata": { | |
"name": "header-test-reencrypt-test-failure" | |
}, | |
"id": "header-test-reencrypt-test-failure", | |
"spec": { | |
"host": "header.test", | |
"to": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"kind": "Route", | |
"apiVersion": "v1", | |
"metadata": { | |
"name": "header-test-reencrypt-test-failure" | |
}, | |
"id": "header-test-reencrypt-test-failure", | |
"spec": { | |
"host": "header.test", | |
"to": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo ' | |
{ | |
"kind": "Route", | |
"apiVersion": "v1", | |
"metadata": { | |
"name": "header-test-route", | |
"labels": { | |
"name": "header-test-route" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir -p /tmp/custom-router && cd /tmp/custom-router | |
# For OSE, replace openshift/origin-haproxy-router with the appropriate OSE image: | |
# Example: registry.access.redhat.com/openshift3/ose-haproxy-router:v3.0.2.0 | |
docker run --rm --interactive=true --tty --entrypoint=cat openshift/origin-haproxy-router haproxy-config.template > haproxy-config.template | |
# Customization to bind to only the IP on the external if (/etc/hosts has an entry for extif). | |
sed -i 's/bind :\([80,443]\)/bind extif:\1/g' haproxy-config.template | |
echo ' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cookiejar="/tmp/cookiejar" | |
host="hello.openshift.test" | |
uri="http://$host/helasasa/" | |
to_opts="--connect-timeout 1 -m 1" | |
status=$(curl -s $to_opts -qw '%{http_code}' --resolve $host:80:10.0.2.15 \ | |
-c "$cookiejar" -b "$cookiejar" -o /dev/null $uri) | |
echo "$(date): Initial cookie set status = $status" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[vagrant@openshiftdev origin]$ oadm router --service-account=default --credentials=$KUBECONFIG --replicas=0 | |
password for stats user admin has been set to 27Ndg4S572 | |
deploymentconfigs/router | |
services/router | |
[vagrant@openshiftdev origin]$ oc get dc | |
NAME TRIGGERS LATEST VERSION | |
router ConfigChange 1 | |
[vagrant@openshiftdev origin]$ oc get dc/router -o json | |
{ | |
"kind": "DeploymentConfig", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f5: | |
ip tunnel del tun1 | |
ip tunnel add tun1 mode ipip remote 10.3.89.46 dev eth0 | |
ip tunnel | |
ifconfig tun1 10.3.91.216 | |
ip link set tun1 up | |
# for remote end tunnel | |
ip route add 10.3.91.46 dev tun1 |