iac/clusters/nn-dev/10-mesh/kustomization.yaml

30 lines
1.0 KiB
YAML

apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../../infrastructure/istio-base/contour-template
- ../../../infrastructure/istio-pilot/contour-template
- ../../../infrastructure/istio-gateway/contour-template
- ../../../infrastructure/cert-manager/contour-template
patches:
- target:
kind: HelmRelease
name: ingressgateway
patch: |-
- op: replace
path: /spec/values/_internal_defaults_do_not_set/service/type
value: LoadBalancer
- op: add
path: /spec/values/_internal_defaults_do_not_set/service/annotations
value:
yandex.cloud/load-balancer-type: internal
yandex.cloud/subnet-id: "${GATEWAY_SUBNET_ID}"
- op: add
path: /spec/values/_internal_defaults_do_not_set/service/externalTrafficPolicy
value: Local
- op: add
path: /spec/values/_internal_defaults_do_not_set/service/loadBalancerIP
value: "${BALANCER_IP:=}"
patches:
- path: nexus-images-cert-manager.yaml
- path: nexus-images-istiod.yaml