-
Notifications
You must be signed in to change notification settings - Fork 867
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: support only tls in virtual services (#2502)
* fix: support only tls in virtual services Signed-off-by: zachaller <[email protected]> * fix typo Signed-off-by: zachaller <[email protected]> * add test file Signed-off-by: zachaller <[email protected]> * add unit test Signed-off-by: zachaller <[email protected]> * cleanup test Signed-off-by: zachaller <[email protected]> * remove comment Signed-off-by: zachaller <[email protected]> * improve comment Signed-off-by: zachaller <[email protected]> * remove /n Signed-off-by: zachaller <[email protected]> * re-ran codegen Signed-off-by: zachaller <[email protected]> * re-run codegen for 2023 Signed-off-by: zachaller <[email protected]> Signed-off-by: zachaller <[email protected]>
- Loading branch information
Showing
7 changed files
with
188 additions
and
4 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: istio-host-split-tls-canary | ||
spec: | ||
ports: | ||
- port: 80 | ||
targetPort: http | ||
protocol: TCP | ||
name: http | ||
selector: | ||
app: istio-host-split-tls | ||
|
||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: istio-host-split-tls-stable | ||
spec: | ||
ports: | ||
- port: 80 | ||
targetPort: http | ||
protocol: TCP | ||
name: http | ||
selector: | ||
app: istio-host-split-tls | ||
|
||
--- | ||
apiVersion: networking.istio.io/v1alpha3 | ||
kind: VirtualService | ||
metadata: | ||
name: istio-host-split-tls-vsvc | ||
spec: | ||
hosts: | ||
- istio-host-split-tls | ||
tls: | ||
- match: | ||
- port: 3000 | ||
sniHosts: | ||
- istio-host-split-tls | ||
route: | ||
- destination: | ||
host: istio-host-split-tls-stable | ||
weight: 100 | ||
- destination: | ||
host: istio-host-split-tls-canary | ||
weight: 0 | ||
|
||
--- | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Rollout | ||
metadata: | ||
name: istio-host-split-tls | ||
spec: | ||
strategy: | ||
canary: | ||
canaryService: istio-host-split-tls-canary | ||
stableService: istio-host-split-tls-stable | ||
trafficRouting: | ||
istio: | ||
virtualService: | ||
name: istio-host-split-tls-vsvc | ||
routes: | ||
- primary | ||
tlsRoutes: | ||
- port: 3000 | ||
sniHosts: | ||
- istio-host-split-tls | ||
steps: | ||
- setWeight: 10 | ||
- pause: {} | ||
selector: | ||
matchLabels: | ||
app: istio-host-split-tls | ||
template: | ||
metadata: | ||
labels: | ||
app: istio-host-split-tls | ||
spec: | ||
containers: | ||
- name: istio-host-split-tls | ||
image: nginx:1.19-alpine | ||
ports: | ||
- name: http | ||
containerPort: 80 | ||
protocol: TCP | ||
resources: | ||
requests: | ||
memory: 16Mi | ||
cpu: 5m |
This file contains 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