Created
June 9, 2022 17:54
-
-
Save jonchen727/0087b1cbc8492c52886a8c5dd252a65d to your computer and use it in GitHub Desktop.
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
apiVersion: networking.istio.io/v1beta1 | |
kind: Gateway | |
metadata: | |
name: wordpressgateway | |
namespace: wordpress | |
spec: | |
selector: | |
istio: wordpressgateway | |
servers: | |
- hosts: | |
- chemejon.io | |
port: | |
name: http-ext | |
number: 80 | |
protocol: http | |
# If you serve HTTPS and want to 301 redirect http requests | |
# tls: | |
# httpsRedirect: true | |
# If you want to serve HTTPS | |
# - hosts: | |
# - chemejon.io | |
# port: | |
# name: https | |
# number: 443 | |
# protocol: HTTPS | |
# tls: | |
# credentialName: chemejon-cert | |
# mode: SIMPLE | |
--- | |
apiVersion: networking.istio.io/v1beta1 | |
kind: VirtualService | |
metadata: | |
name: wordpress-vs | |
namespace: wordpress | |
spec: | |
gateways: | |
- wordpressgateway | |
hosts: | |
- chemejon.io | |
http: | |
- route: | |
- destination: | |
host: wordpress | |
port: | |
number: 80 | |
timeout: 60s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment