What is the preferred way to add a custom ingressgateway with a different name on an already running cluster? I’m assuming an installation with the istio-operator running would provide a better approach for it, and that’s how I’m doing it.
Using the bellow approach:
apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
metadata:
name: custom-ingressgateway
namespace: istio-system
spec:
components:
ingressGateways:
- enabled: true
name: custom-ingressgateway
k8s:
env:
- name: ISTIO_META_ROUTER_MODE
value: sni-dnat
hpaSpec:
maxReplicas: 5
metrics:
- resource:
name: cpu
targetAverageUtilization: 80
type: Resource
minReplicas: 1
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: custom-ingressgateway
resources:
limits:
cpu: 2000m
memory: 1024Mi
requests:
cpu: 100m
memory: 128Mi
service:
ports:
- name: status-port
port: 15021
targetPort: 15021
- name: http2
port: 80
targetPort: 8080
- name: https
port: 443
targetPort: 8443
- name: tls
port: 15443
targetPort: 15443
strategy:
rollingUpdate:
maxSurge: 100%
maxUnavailable: 25%