Istio
Customize Istio Gateways
You can customize Verrazzano Istio component using settings in the Verrazzano custom resource.
The following table describes the fields in the Verrazzano custom resource pertaining to the Istio component.
Path to Field | Description |
---|---|
spec.components.istio.egress.kubernetes.replicas |
The number of pods to replicate. The default is 2 for the prod profile and 1 for all other profiles. |
spec.components.istio.egress.kubernetes.affinity |
The pod affinity definition expressed as a standard Kubernetes affinity definition. The default configuration spreads the Istio gateway pods across the available nodes. spec: |
spec.components.istio.ingress.kubernetes.replicas |
The number of pods to replicate. The default is 2 for the prod profile and 1 for all other profiles. |
spec.components.istio.ingress.kubernetes.affinity |
The pod affinity definition expressed as a standard Kubernetes affinity definition. The default configuration spreads the Istio gateway pods across the available nodes. spec: |
The following example customizes a Verrazzano prod
profile as follows:
- Increases the replicas count to
3
foristio-ingressgateway
andistio-egressgateway
- Changes the
podAffinity
configuration to userequiredDuringSchedulingIgnoredDuringExecution
foristio-ingressgateway
andistio-egressgateway
apiVersion: install.verrazzano.io/v1beta1
kind: Verrazzano
metadata:
name: example-verrazzano
spec:
profile: prod
components:
istio:
overrides:
- values:
apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
spec:
components:
egressGateways:
- enabled: true
k8s:
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- podAffinityTerm:
labelSelector:
matchExpressions:
- key: app
operator: In
values:
- istio-egressgateway
topologyKey: kubernetes.io/hostname
weight: 100
replicaCount: 3
name: istio-egressgateway
ingressGateways:
- enabled: true
k8s:
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- podAffinityTerm:
labelSelector:
matchExpressions:
- key: app
operator: In
values:
- istio-ingressgateway
topologyKey: kubernetes.io/hostname
weight: 100
replicaCount: 3
service:
type: LoadBalancer
name: istio-ingressgateway
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.