Skip to content

Instantly share code, notes, and snippets.

@jonchen727
Created June 9, 2022 17:54
Show Gist options
  • Save jonchen727/0087b1cbc8492c52886a8c5dd252a65d to your computer and use it in GitHub Desktop.
Save jonchen727/0087b1cbc8492c52886a8c5dd252a65d to your computer and use it in GitHub Desktop.
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