본문으로 건너뛰기

Gateway API로 라우팅 관리하기

Gateway

apiVersion: v1
kind: ConfigMap
metadata:
name: ingress-infrastructure
namespace: istio-system
data:
service: |
spec:
type: LoadBalancer
externalTrafficPolicy: "Local"

# serviceAccount: |

deployment: |
spec:
replicas: 3
template:
spec:
containers:
- name: istio-proxy
resources:
requests:
cpu: 500m
memory: 512Mi
limits:
cpu: "2"
memory: 1Gi
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: topology.kubernetes.io/zone
operator: In
values:
- ap-northeast-2a
- ap-northeast-2c
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 50
podAffinityTerm:
topologyKey: kubernetes.io/hostname
labelSelector:
matchExpressions: []
matchLabelKeys:
- gateway.networking.k8s.io/gateway-name
- pod-template-hash

horizontalPodAutoscaler: |
spec:
minReplicas: 3
maxReplicas: 5

podDisruptionBudget: |
spec:
minAvailable: 1
apiVersion: gateway.networking.k8s.io/v1
kind: Gateway
metadata:
name: ingress
namespace: istio-system
spec:
gatewayClassName: istio
infrastructure:
parametersRef:
group: ""
kind: ConfigMap
name: ingress-infrastructure