Customize 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/v1alpha1
kind: Verrazzano
metadata:
name: example-verrazzano
spec:
profile: prod
components:
istio:
ingress:
kubernetes:
replicas: 3
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- weight: 25
labelSelector:
matchExpressions:
- key: app
operator: In
values:
- istio-ingressgateway
topologyKey: kubernetes.io/hostname
egress:
kubernetes:
replicas: 3
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: app
operator: In
values:
- istio-egressgateway
topologyKey: kubernetes.io/hostname
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.