- run
check_resulton work pc to check result
| 1 | Create a Gateway |
|---|---|
| Task weight | 1% |
| Acceptance criteria | ns nginx-gateway name nginx-gateway gatewayClassName nginx listener : name http port 80 protocol HTTP allowedRoutes - namespaces from All |
| 2 | Create default restrict (HTTPRoute) |
|---|---|
| Task weight | 1% |
| Acceptance criteria | ns app name restricted PathPrefix /svc app-restricted port 80 |
| tests | curl non-domain.example:30102 -s result Server Name = restricted |
| 3 | Create HTTPRoute cka.local |
|---|---|
| Task weight | 2% |
| Acceptance criteria | ns app name cka-route hostname cka.local header environment = dev path / svc app-dev port 80 path / svc app-prod port 80 |
| tests | curl cka.local:30102 -s result Server Name = production curl cka.local:30102 -s -H "environment: dev" result Server Name = dev |
| 4 | Create HTTPRoute dev-cka.local |
|---|---|
| Task weight | 1% |
| Acceptance criteria | ns app name dev-cka-route hostname dev-cka.local path / svc app-dev port 80 |
| tests | curl dev-cka.local:30102 -s result Server Name = dev |
| 5 | Create HTTPRoute weight-cka.local |
|---|---|
| Task weight | 2% |
| Acceptance criteria | ns app name weight-cka-route hostname weight-cka.local path / svc app-weight-v1 port 80 weight 70 path / svc app-weight-v2 port 80 weight 30 |
| tests | curl weight-cka.local:30102 -s result 70% Server Name = app-weight-v1 30% Server Name = app-weight-v2 |
| 6 | Create HTTPRoute header-cka.local |
|---|---|
| Task weight | 3% |
| Acceptance criteria | ns app name header-cka-route hostname header-cka.local path / svc app-dev port 80 add Header User-Type = test-user remove Header X-CH overwrite Header User-City to NYC |
| tests | curl header-cka.local:30102 -s -H "X-CH: CH" -H "User-City: TBC" result Headers : User-Type = test-user , X-CH was deleted , User-City = NYC |