AVI: Difference between revisions
Content added Content deleted
Line 222: | Line 222: | ||
*Create the Route |
*Create the Route |
||
kubectl create -f route.yaml |
kubectl create -f route.yaml |
||
* This will create a VIP in Avi in Tenant Default |
|||
*Test reach-ability: |
|||
curl 10.52.201.15 ==> This will fail as it will not hit the HTTP Request policy to fwd traffic to Pool & will hit 404 policy. |
|||
curl -H "HOST:httptest" 10.52.201.15 |
|||
http://httptest |
|||
*Avi HTTP Request policies: |
|||
oshift-k8s-cloud-connector--httptest--/-- |
|||
Path begins with (/) |
|||
Host Header equals 'httptest' |
|||
Content Switch: |
|||
Pool Group: httptest---aviroute-poolgroup-8080-tcp |
|||
host--path--drop--rule--httptest--[u'/'] |
|||
Path does not equal (/) |
|||
Host Header equals 'httptest' |
|||
Content Switch |
|||
Status Code: 404 |
|||
all-nomatch-host--drop--rule |
|||
Host Header does not equal 'httptest' |
|||
Content Switch |
|||
Status Code: 404 |
|||
= OpenShift = |
= OpenShift = |