Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Istio upstream tests #9463

Merged
merged 115 commits into from
May 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
115 commits
Select commit Hold shift + click to select a range
cb7c8cd
wip
npolshakova Apr 29, 2024
be72874
wip
npolshakova Apr 29, 2024
9d5ee77
fix istio install
npolshakova Apr 29, 2024
04a838b
use global.istioIntegration.enableAutoMtls
npolshakova Apr 29, 2024
6dde338
Merge refs/heads/main into npolshak/istio-k8s-gw-e2e-test
soloio-bulldozer[bot] Apr 30, 2024
e5d86a1
Merge refs/heads/main into npolshak/istio-k8s-gw-e2e-test
soloio-bulldozer[bot] Apr 30, 2024
8959992
Merge remote-tracking branch 'origin/main' into npolshak/istio-k8s-gw…
npolshakova Apr 30, 2024
af0fe2f
fix imports
npolshakova Apr 30, 2024
5a26a2a
Merge refs/heads/main into npolshak/istio-k8s-gw-e2e-test
soloio-bulldozer[bot] May 1, 2024
7c9c764
check settings
npolshakova May 1, 2024
6cc4b89
fix istio uninstall
npolshakova May 1, 2024
998cbd5
Merge refs/heads/main into npolshak/istio-k8s-gw-e2e-test
soloio-bulldozer[bot] May 1, 2024
a4bbf9a
split istio setup
npolshakova May 1, 2024
4202330
remove settings client
npolshakova May 2, 2024
8d19ca9
Merge remote-tracking branch 'origin/main' into npolshak/istio-k8s-gw…
npolshakova May 2, 2024
ba6ffb7
Merge refs/heads/main into npolshak/istio-k8s-gw-e2e-test
soloio-bulldozer[bot] May 2, 2024
3d51bc6
Merge refs/heads/main into npolshak/istio-k8s-gw-e2e-test
soloio-bulldozer[bot] May 2, 2024
3e0371c
pr feedback
npolshakova May 2, 2024
97efec7
Merge refs/heads/main into npolshak/istio-k8s-gw-e2e-test
soloio-bulldozer[bot] May 2, 2024
22e572c
fixed assertions, cleanup
npolshakova May 2, 2024
fe10b1c
Merge refs/heads/main into npolshak/istio-k8s-gw-e2e-test
soloio-bulldozer[bot] May 2, 2024
714a0a2
changelog, debug instructions
npolshakova May 2, 2024
585641c
switch to sep headless svc test suites
npolshakova May 2, 2024
8e62eb3
Merge remote-tracking branch 'origin/npolshak/istio-k8s-gw-e2e-test' …
npolshakova May 2, 2024
38dd09a
classic edge automtls tests
npolshakova May 2, 2024
122660d
k8s gw headless svc test specific suite
npolshakova May 2, 2024
74e460c
Merge npolshak/istio-k8s-gw-e2e-test into npolshak/istio-classic-e2e-…
soloio-bulldozer[bot] May 3, 2024
041a1a8
Merge refs/heads/main into npolshak/istio-classic-e2e-test
soloio-bulldozer[bot] May 3, 2024
0544986
Merge refs/heads/main into npolshak/istio-classic-e2e-test
soloio-bulldozer[bot] May 3, 2024
7902bb2
Merge refs/heads/main into npolshak/istio-classic-e2e-test
soloio-bulldozer[bot] May 3, 2024
e85f4b5
Merge refs/heads/main into npolshak/istio-classic-e2e-test
soloio-bulldozer[bot] May 6, 2024
085c553
regen
npolshakova May 7, 2024
0068438
add edge api tests
npolshakova May 7, 2024
e702c0f
passing tests
npolshakova May 7, 2024
bc9b194
passing glooctl tests
npolshakova May 8, 2024
747cbbd
fix uninject
npolshakova May 8, 2024
e0b01e8
Merge branch 'main' into npolshak/istio-classic-e2e-test
npolshakova May 8, 2024
57ce5a2
go mod
npolshakova May 8, 2024
7cd8815
changelog
npolshakova May 8, 2024
a5ece50
Merge remote-tracking branch 'origin/main' into npolshak/istio-classi…
npolshakova May 8, 2024
bea5c92
Merge refs/heads/main into npolshak/istio-classic-e2e-test
soloio-bulldozer[bot] May 8, 2024
e5f284b
initial upstream tests
npolshakova May 8, 2024
cff00c0
Merge npolshak/istio-classic-e2e-test into npolshak/add-istio-upstrea…
soloio-bulldozer[bot] May 8, 2024
bfd7b2c
Merge refs/heads/main into npolshak/istio-classic-e2e-test
soloio-bulldozer[bot] May 8, 2024
e2ca61d
Merge refs/heads/npolshak/istio-classic-e2e-test into npolshak/add-is…
soloio-bulldozer[bot] May 8, 2024
390596f
Merge refs/heads/main into npolshak/istio-classic-e2e-test
soloio-bulldozer[bot] May 9, 2024
e136366
Merge refs/heads/npolshak/istio-classic-e2e-test into npolshak/add-is…
soloio-bulldozer[bot] May 9, 2024
3f2bd24
Merge refs/heads/main into npolshak/istio-classic-e2e-test
soloio-bulldozer[bot] May 9, 2024
ed374e7
Merge refs/heads/npolshak/istio-classic-e2e-test into npolshak/add-is…
soloio-bulldozer[bot] May 9, 2024
0501333
mimimize diff
npolshakova May 9, 2024
ce74407
Merge refs/heads/main into npolshak/istio-classic-e2e-test
soloio-bulldozer[bot] May 9, 2024
204de84
Adding changelog file to new location
May 9, 2024
1d115c3
Deleting changelog file from old location
May 9, 2024
d7fa1a7
glooctl
npolshakova May 9, 2024
02215ac
Merge remote-tracking branch 'origin/npolshak/istio-classic-e2e-test'…
npolshakova May 9, 2024
965fd24
use testInst.GeneratedFiles.TempDir
npolshakova May 9, 2024
3bc1f46
remove glooctl path
npolshakova May 9, 2024
ec1d9e3
Merge remote-tracking branch 'origin/npolshak/istio-classic-e2e-test'…
npolshakova May 9, 2024
c0ec588
fix upstream upgrade test
npolshakova May 9, 2024
fc31601
Merge remote-tracking branch 'origin/main' into npolshak/istio-classi…
npolshakova May 9, 2024
101aeb4
Merge remote-tracking branch 'origin/npolshak/istio-classic-e2e-test'…
npolshakova May 9, 2024
591cc79
Merge refs/heads/main into npolshak/istio-classic-e2e-test
soloio-bulldozer[bot] May 10, 2024
e202054
Merge refs/heads/npolshak/istio-classic-e2e-test into npolshak/add-is…
soloio-bulldozer[bot] May 10, 2024
2367916
Merge refs/heads/main into npolshak/istio-classic-e2e-test
soloio-bulldozer[bot] May 10, 2024
5e83dee
Merge refs/heads/npolshak/istio-classic-e2e-test into npolshak/add-is…
soloio-bulldozer[bot] May 10, 2024
14b2000
pr feedback
npolshakova May 10, 2024
deb10cb
Merge remote-tracking branch 'origin/npolshak/istio-classic-e2e-test'…
npolshakova May 10, 2024
bd37b5c
changelog
npolshakova May 10, 2024
0a1ef5b
regen
npolshakova May 10, 2024
0bb2d17
Merge refs/heads/npolshak/istio-classic-e2e-test into npolshak/add-is…
soloio-bulldozer[bot] May 10, 2024
02d463a
pr feedback, regen
npolshakova May 10, 2024
04580c9
Merge refs/heads/npolshak/istio-classic-e2e-test into npolshak/add-is…
soloio-bulldozer[bot] May 10, 2024
d75af9a
add TestGlooctlIstioInjectEdgeApiGateway to test to run in ci
npolshakova May 10, 2024
f665a4a
add TestAutomtlsIstioEdgeApisGateway and TestIstioEdgeApiGateway to c…
npolshakova May 10, 2024
1b4c147
Merge refs/heads/npolshak/istio-classic-e2e-test into npolshak/add-is…
soloio-bulldozer[bot] May 10, 2024
9289070
Merge refs/heads/main into npolshak/istio-classic-e2e-test
soloio-bulldozer[bot] May 10, 2024
ffc841a
Merge refs/heads/npolshak/istio-classic-e2e-test into npolshak/add-is…
soloio-bulldozer[bot] May 10, 2024
b549d0c
remove TestCluster refs
npolshakova May 10, 2024
a924ada
Merge refs/heads/npolshak/istio-classic-e2e-test into npolshak/add-is…
soloio-bulldozer[bot] May 10, 2024
5358416
Merge refs/heads/main into npolshak/istio-classic-e2e-test
soloio-bulldozer[bot] May 10, 2024
766488a
Merge refs/heads/npolshak/istio-classic-e2e-test into npolshak/add-is…
soloio-bulldozer[bot] May 10, 2024
a459ac1
fix filepath
npolshakova May 10, 2024
6ae5072
Merge refs/heads/npolshak/istio-classic-e2e-test into npolshak/add-is…
soloio-bulldozer[bot] May 10, 2024
cefec55
remove --istio-namespace, not required for uninject, use default for …
npolshakova May 10, 2024
7cac02f
Merge refs/heads/npolshak/istio-classic-e2e-test into npolshak/add-is…
soloio-bulldozer[bot] May 10, 2024
0269552
Merge refs/heads/main into npolshak/istio-classic-e2e-test
soloio-bulldozer[bot] May 10, 2024
95a7615
Merge refs/heads/npolshak/istio-classic-e2e-test into npolshak/add-is…
soloio-bulldozer[bot] May 10, 2024
41a9a7a
fix manifest file name
npolshakova May 13, 2024
d90be82
Merge refs/heads/npolshak/istio-classic-e2e-test into npolshak/add-is…
soloio-bulldozer[bot] May 13, 2024
f4db0a3
add missing istio installation to automtls test
npolshakova May 13, 2024
cf46b4b
Merge refs/heads/npolshak/istio-classic-e2e-test into npolshak/add-is…
soloio-bulldozer[bot] May 13, 2024
b2e6942
use edge api headless svc test
npolshakova May 13, 2024
abb29d1
Merge refs/heads/npolshak/istio-classic-e2e-test into npolshak/add-is…
soloio-bulldozer[bot] May 13, 2024
eb7e7a5
regen
npolshakova May 13, 2024
92e8686
Merge refs/heads/main into npolshak/istio-classic-e2e-test
soloio-bulldozer[bot] May 13, 2024
c299153
Merge refs/heads/npolshak/istio-classic-e2e-test into npolshak/add-is…
soloio-bulldozer[bot] May 13, 2024
d2fd840
add pr execution run time
npolshakova May 13, 2024
1344e0d
add debug report
npolshakova May 13, 2024
caf279d
fix curl
npolshakova May 13, 2024
fff5f0a
Merge remote-tracking branch 'origin/main' into npolshak/add-istio-up…
npolshakova May 13, 2024
4287ef8
fix upstream tests
npolshakova May 14, 2024
a2dd10e
Merge remote-tracking branch 'origin/main' into npolshak/add-istio-up…
npolshakova May 14, 2024
0a7c70a
regen
npolshakova May 14, 2024
4782999
move changelog
npolshakova May 14, 2024
dc2cf1d
add assertions gw and example apps are ready
npolshakova May 14, 2024
f938287
Merge remote-tracking branch 'origin/main' into npolshak/add-istio-up…
npolshakova May 14, 2024
6f1a3f2
fix assertions
npolshakova May 15, 2024
f780bd5
increase timeout
npolshakova May 15, 2024
89ae2dc
add cluster id to debug output
npolshakova May 15, 2024
9b62c78
Merge refs/heads/main into npolshak/add-istio-upstream-tests
soloio-bulldozer[bot] May 15, 2024
910533e
fix setup
npolshakova May 15, 2024
ead93da
clean up diff
npolshakova May 15, 2024
a53c1a2
pr feedback
npolshakova May 16, 2024
2ac8189
pr feedback
npolshakova May 16, 2024
93dad84
fix TestDisableAutomtlsOverridesSSLConfig assertion reset reason
npolshakova May 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ runs:
env:
GO_TEST_USER_ARGS: ${{ inputs.test-args }} -run "${{ inputs.run-regex }}"
CLUSTER_NAME: ${{ inputs.cluster-name }}
CLUSTER_ID: ${{ inputs.cluster-id }}
TEST_PKG: ./test/kubernetes/e2e/tests
shell: bash
run: make go-test
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/pr-kubernetes-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,10 @@ jobs:
cluster-name: kind
test-args: ${{ matrix.test.go-test-args }}
run-regex: ${{ matrix.test.go-test-run-regex }}
cluster-id: ${{ matrix.test.cluster-id }}
- name: Archive bug report directory on failure
if: ${{ failure() }}
uses: actions/upload-artifact@v4
with:
name: bug-report
path: ./_test/bug_report
path: ./_test/bug_report/${{ matrix.test.cluster-id }}
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ TEST_ASSET_DIR ?= $(ROOTDIR)/_test
BUG_REPORT_DIR := $(TEST_ASSET_DIR)/bug_report
$(BUG_REPORT_DIR):
mkdir -p $(BUG_REPORT_DIR)
# Create bug report directory for each cluster in ci (cluster_one, cluster_two, etc.)
npolshakova marked this conversation as resolved.
Show resolved Hide resolved
mkdir -p $(BUG_REPORT_DIR)/cluster_one
mkdir -p $(BUG_REPORT_DIR)/cluster_two
mkdir -p $(BUG_REPORT_DIR)/cluster_three
mkdir -p $(BUG_REPORT_DIR)/cluster_four

# Used to install ca-certificates in GLOO_DISTROLESS_BASE_IMAGE
PACKAGE_DONOR_IMAGE ?= debian:11
Expand Down
7 changes: 7 additions & 0 deletions changelog/v1.17.0-beta28/add-istio-upstream-tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
changelog:
- type: NON_USER_FACING
issueLink: https://github.com/solo-io/solo-projects/issues/6048
resolvesIssue: false
description: >-
Add Upstream resource e2e tests for Istio integration with disabled peer auth. Adds upgrade/downgrade tests
for Upstream sslConfig switching to Istio auto mtls.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ require (
github.com/solo-io/protoc-gen-openapi v0.2.2
github.com/solo-io/skv2 v0.36.5

// Pinned to the latest `gloo-repo-branch` tag of solo-apis (`sa-k8s-1.28-bump`)
github.com/solo-io/solo-apis v0.0.0-20231206142556-d2e3ed6d4476
// Pinned to the latest `gloo-repo-branch` tag of solo-apis (`gloo-v1.17.0-beta25`)
github.com/solo-io/solo-apis v0.0.0-20240503163415-57628abb2459
npolshakova marked this conversation as resolved.
Show resolved Hide resolved
github.com/solo-io/solo-kit v0.34.2
github.com/spf13/afero v1.9.2
github.com/spf13/cobra v1.8.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1983,8 +1983,8 @@ github.com/solo-io/protoc-gen-openapi v0.2.2 h1:OzyOAxiZuMAaLYWMNoTl2v9E7IXcl7UE
github.com/solo-io/protoc-gen-openapi v0.2.2/go.mod h1:osEjRl1miHqlq4Wl/8SEqHFoyydptPL1EzEdM9c4vfE=
github.com/solo-io/skv2 v0.36.5 h1:DV2mbY8vSQFXpmKN0KsKAagWHQWUP1sRjM42YGCAos4=
github.com/solo-io/skv2 v0.36.5/go.mod h1:0GKILLOrQiTKvGsf7UEFZJiDxJHrp0yKJQ6NbHzn+vY=
github.com/solo-io/solo-apis v0.0.0-20231206142556-d2e3ed6d4476 h1:qtImo1deMtbVHKKkepwKfu1CDJBjGPvTmADtXVWBynE=
github.com/solo-io/solo-apis v0.0.0-20231206142556-d2e3ed6d4476/go.mod h1:/2NUdNZ37KAhD1AfwFGR54rOK7ldDvmro17c0YRriKk=
github.com/solo-io/solo-apis v0.0.0-20240503163415-57628abb2459 h1:fL/ZdBcFcxnQq5LZPP8h6eAMyrBai26JJqiCZ3j6HGo=
github.com/solo-io/solo-apis v0.0.0-20240503163415-57628abb2459/go.mod h1:QXQQr/+kzCA+/GR/jzPuUqQY+aaTU+9Xht3xWm6eAfk=
github.com/solo-io/solo-kit v0.34.2 h1:qcQGvhGEBDY5zvDMcP7z4BjAi+v66BtNLm984hZQK/s=
github.com/solo-io/solo-kit v0.34.2/go.mod h1:HkrxDRo+uR0FZUJi+SGAUkbrUNWC6V0FD7GGXbtC0UU=
github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA=
Expand Down
50 changes: 43 additions & 7 deletions test/gomega/matchers/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,12 @@ import (

// ExpectedPod is a struct that represents the expected pod.
type ExpectedPod struct {
// ContainerName is the name of the container. Required.
// ContainerName is the name of the container. Optional.
ContainerName string

// Status is the pod phase status (e.g. Running, Pending, Succeeded, Failed). Optional.
Status corev1.PodPhase

// TODO(npolshak): Add more fields to match on as needed
}

Expand All @@ -29,18 +32,51 @@ func (pm *podMatcher) Match(actual interface{}) (bool, error) {
if !ok {
return false, fmt.Errorf("expected a pod, got %T", actual)
}
for _, container := range pod.Spec.Containers {
if container.Name == pm.expectedPod.ContainerName {
return true, nil
if pm.expectedPod.ContainerName != "" {
foundContainer := false
for _, container := range pod.Spec.Containers {
if container.Name == pm.expectedPod.ContainerName {
foundContainer = true
}
}
if !foundContainer {
return false, nil
}
}

if pm.expectedPod.Status != "" {
if pod.Status.Phase != pm.expectedPod.Status {
return false, nil
}
}
return false, nil

return true, nil
}

func (pm *podMatcher) FailureMessage(actual interface{}) string {
return fmt.Sprintf("Expected pod to have container '%s', but it was not found", pm.expectedPod.ContainerName)
var errorMsg string
if pm.expectedPod.ContainerName != "" {
errorMsg += fmt.Sprintf("Expected pod to have container '%s', but it was not found", pm.expectedPod.ContainerName)
}
if pm.expectedPod.Status != "" {
errorMsg += fmt.Sprintf("Expected pod to have status '%s', but it was not found", pm.expectedPod.Status)
}
return errorMsg
}

func (pm *podMatcher) NegatedFailureMessage(actual interface{}) string {
return fmt.Sprintf("Expected pod not to have container '%s', but it was found", pm.expectedPod.ContainerName)
pod := actual.(corev1.Pod)

var errorMsg string
if pm.expectedPod.ContainerName != "" {
containers := ""
for _, container := range pod.Spec.Containers {
containers += container.Name + ", "
}
errorMsg += fmt.Sprintf("Expected pod to have container '%s', but it found %s", pm.expectedPod.ContainerName, containers)
}
if pm.expectedPod.Status != "" {
errorMsg += fmt.Sprintf("Expected pod to have status '%s', but it found %s", pm.expectedPod.Status, pod.Status.Phase)
}
return errorMsg
}
28 changes: 26 additions & 2 deletions test/kubernetes/e2e/features/istio/generate/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,36 @@ func main() {
log.Println("starting generate for istio examples")

// use the Gloo Edge Gateway api resources with automtls enabled
edgeGatewayApiResources := istio.GetGlooGatewayEdgeResources(exampleNs)
automtlsGeneratedExample := filepath.Join(util.MustGetThisDir(), "generated_example", fmt.Sprintf("automtls-enabled-%s", istio.EdgeApisRoutingResourcesFileName))
edgeGatewayApiResources := istio.GetGlooGatewayEdgeResources(exampleNs, istio.UpstreamConfigOpts{})
automtlsGeneratedExample := filepath.Join(util.MustGetThisDir(), "generated_example", fmt.Sprintf("automtls-enabled-%s", istio.EdgeApisRoutingFileName))
err := resources.WriteResourcesToFile(edgeGatewayApiResources, automtlsGeneratedExample)
if err != nil {
panic(err)
}

// automtls disabled
edgeGatewayApiResources = istio.GetGlooGatewayEdgeResources(exampleNs, istio.UpstreamConfigOpts{DisableIstioAutoMtls: true})
disableAutomtlsGeneratedExample := filepath.Join(util.MustGetThisDir(), "generated_example", fmt.Sprintf("automtls-disabled-%s", istio.EdgeApisRoutingFileName))
err = resources.WriteResourcesToFile(edgeGatewayApiResources, disableAutomtlsGeneratedExample)
if err != nil {
panic(err)
}

// Upstream sslConfig is set
edgeGatewayApiResources = istio.GetGlooGatewayEdgeResources(exampleNs, istio.UpstreamConfigOpts{SetSslConfig: true})
upstreamSslConfigGeneratedExample := filepath.Join(util.MustGetThisDir(), "generated_example", fmt.Sprintf("sslconfig-%s", istio.EdgeApisRoutingFileName))
err = resources.WriteResourcesToFile(edgeGatewayApiResources, upstreamSslConfigGeneratedExample)
if err != nil {
panic(err)
}

// Upstream sslConfig is set and automtls is disabled
edgeGatewayApiResources = istio.GetGlooGatewayEdgeResources(exampleNs, istio.UpstreamConfigOpts{SetSslConfig: true, DisableIstioAutoMtls: true})
sslConfigAndDisableAutomtlsGeneratedExample := filepath.Join(util.MustGetThisDir(), "generated_example", fmt.Sprintf("sslconfig-and-automtls-disabled-%s", istio.EdgeApisRoutingFileName))
err = resources.WriteResourcesToFile(edgeGatewayApiResources, sslConfigAndDisableAutomtlsGeneratedExample)
if err != nil {
panic(err)
}

log.Println("finished generate for istio examples")
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
apiVersion: gateway.solo.io/v1
kind: VirtualService
metadata:
name: httpbin-vs
namespace: gloo-system
spec:
virtualHost:
domains:
- httpbin
routes:
- matchers:
- prefix: /
routeAction:
single:
upstream:
name: httpbin-upstream
namespace: gloo-system
status: {}
---
apiVersion: gloo.solo.io/v1
kind: Upstream
metadata:
name: httpbin-upstream
namespace: gloo-system
spec:
disableIstioAutoMtls: true
kube:
selector:
app: httpbin
serviceName: httpbin
serviceNamespace: httpbin
servicePort: 8000
status: {}
---
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ metadata:
name: httpbin-upstream
namespace: gloo-system
spec:
disableIstioAutoMtls: false
kube:
selector:
app: httpbin
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
apiVersion: gateway.solo.io/v1
kind: VirtualService
metadata:
name: httpbin-vs
namespace: gloo-system
spec:
virtualHost:
domains:
- httpbin
routes:
- matchers:
- prefix: /
routeAction:
single:
upstream:
name: httpbin-upstream
namespace: gloo-system
status: {}
---
apiVersion: gloo.solo.io/v1
kind: Upstream
metadata:
name: httpbin-upstream
namespace: gloo-system
spec:
disableIstioAutoMtls: true
kube:
selector:
app: httpbin
serviceName: httpbin
serviceNamespace: httpbin
servicePort: 8000
sslConfig:
alpnProtocols:
- istio
sds:
certificatesSecretName: istio_server_cert
clusterName: gateway_proxy_sds
targetUri: 127.0.0.1:8234
validationContextName: istio_validation_context
status: {}
---
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
apiVersion: gateway.solo.io/v1
kind: VirtualService
metadata:
name: httpbin-vs
namespace: gloo-system
spec:
virtualHost:
domains:
- httpbin
routes:
- matchers:
- prefix: /
routeAction:
single:
upstream:
name: httpbin-upstream
namespace: gloo-system
status: {}
---
apiVersion: gloo.solo.io/v1
kind: Upstream
metadata:
name: httpbin-upstream
namespace: gloo-system
spec:
disableIstioAutoMtls: false
kube:
selector:
app: httpbin
serviceName: httpbin
serviceNamespace: httpbin
servicePort: 8000
sslConfig:
alpnProtocols:
- istio
sds:
certificatesSecretName: istio_server_cert
clusterName: gateway_proxy_sds
targetUri: 127.0.0.1:8234
validationContextName: istio_validation_context
status: {}
---