27 lines
980 B
YAML
27 lines
980 B
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:=}"
|