Skip to content

Commit

Permalink
fix istio config
Browse files Browse the repository at this point in the history
  • Loading branch information
nalbam committed Mar 15, 2024
1 parent 749ba85 commit c5f548b
Showing 1 changed file with 44 additions and 14 deletions.
58 changes: 44 additions & 14 deletions charts/istio/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,41 @@ istiod:
image: auto

lifecycle:
# preStop:
# exec:
# command:
# - "/bin/sh"
# - "-c"
# - "while [ $(netstat -plunt | grep tcp | grep -v envoy | wc -l | xargs) -ne 0 ]; do sleep 1; done"
postStart:
exec:
command:
- pilot-agent
- wait
preStop:
exec:
command:
- "/bin/sh"
- "-c"
- "while [ $(netstat -plunt | grep tcp | grep -v envoy | wc -l | xargs) -ne 0 ]; do sleep 1; done"

# tracer:
# zipkin:
# address: jaeger-collector.addon-tracing.svc.cluster.local:9411

pilot:
podLabels:
# owner: "{{cluster}}"
department: "addons"
autoscaleEnabled: false

serviceAnnotations:
service.kubernetes.io/topology-aware-hints: auto

topologySpreadConstraints:
- maxSkew: 1
topologyKey: topology.kubernetes.io/zone
whenUnsatisfiable: ScheduleAnyway
labelSelector:
matchLabels:
app: istiod
- maxSkew: 1
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: ScheduleAnyway
labelSelector:
matchLabels:
app: istiod

resources:
requests:
Expand All @@ -39,9 +54,11 @@ istiod:
gatewayTopology:
numTrustedProxies: 1
holdApplicationUntilProxyStarts: true
terminationDrainDuration: 60s
terminationDrainDuration: 30s
enableTracing: true
rootNamespace: istio-system
# localityLbSetting:
# enabled: true

extensionProviders:
- name: oauth2-proxy
Expand Down Expand Up @@ -73,10 +90,23 @@ gateway:
service:
type: ClusterIP

labels:
istio: ingressgateway
# owner: "{{cluster}}"
department: "addons"
externalTrafficPolicy: Local
annotations:
service.kubernetes.io/topology-aware-hints: auto

topologySpreadConstraints:
- maxSkew: 1
topologyKey: topology.kubernetes.io/zone
whenUnsatisfiable: ScheduleAnyway
labelSelector:
matchLabels:
app: istio-ingressgateway
- maxSkew: 1
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: ScheduleAnyway
labelSelector:
matchLabels:
app: istio-ingressgateway

raw:
resources:
Expand Down

0 comments on commit c5f548b

Please sign in to comment.