Skip to content

Instantly share code, notes, and snippets.

@davideagle
Created May 6, 2019 15:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davideagle/96861688f40b65e5cd61c8dbca2cdfe4 to your computer and use it in GitHub Desktop.
Save davideagle/96861688f40b65e5cd61c8dbca2cdfe4 to your computer and use it in GitHub Desktop.
apiVersion: configuration.konghq.com/v1
kind: KongIngress
metadata:
name: kong-wallet-ingress
namespace: default
proxy:
path: /
route:
protocols:
- https
- http
strip_path: true
preserve_host: true
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: kong-wallet-ingress
namespace: default
annotations:
kubernetes.io/ingress.class: "kong"
configuration.konghq.com: kong-wallet-ingress
spec:
tls:
- hosts:
- ${KONG_AWS_DNS}
secretName: ${KONG_AWS_CERT_NAME}
rules:
- host: ${KONG_AWS_DNS}
http:
paths:
- path: "/api/wallet"
backend:
serviceName: wallet
servicePort: http
---
apiVersion: configuration.konghq.com/v1
kind: KongIngress
metadata:
name: kong-wallet-openapi-ingress
namespace: default
proxy:
path: /openapi
route:
protocols:
- https
- http
strip_path: true
preserve_host: true
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: kong-wallet-openapi-ingress
namespace: default
annotations:
kubernetes.io/ingress.class: "kong"
configuration.konghq.com: kong-wallet-openapi-ingress
plugins.konghq.com: wallet-openapi-key-auth, wallet-openapi-acl
spec:
tls:
- hosts:
- ${KONG_AWS_DNS}
secretName: ${KONG_AWS_CERT_NAME}
rules:
- host: ${KONG_AWS_DNS}
http:
paths:
- path: "/api/wallet/openapi"
backend:
serviceName: wallet
servicePort: http
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment