API Gateway
Definition
An API Gateway is a server that acts as an intermediary for requests from clients seeking resources from servers. It provides a single entry point for API calls, handling tasks such as request routing, composition, protocol translation, and security enforcement. API Gateways are crucial for managing API traffic, implementing security policies, and ensuring scalability and reliability in microservices architectures.
Secure Settings Example
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
name: secure-gateway
spec:
selector:
istio: ingressgateway
servers:
- port:
number: 443
name: https
protocol: HTTPS
tls:
mode: SIMPLE
credentialName: my-credential
hosts:
- "example.com"
Insecure Settings Example
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
name: insecure-gateway
spec:
selector:
istio: ingressgateway
servers:
- port:
number: 80
name: http
protocol: HTTP
hosts:
- "*"