Skip to content

Commit

Permalink
fix: nginx defaults (#1693)
Browse files Browse the repository at this point in the history
Co-authored-by: Jehoszafat Zimnowoda <17126497+j-zimnowoda@users.noreply.github.com>
Co-authored-by: CasLubbers <clubbers@akamai.com>
  • Loading branch information
3 people authored Aug 30, 2024
1 parent 65a00cb commit 5c1097d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 19 deletions.
11 changes: 11 additions & 0 deletions helmfile.d/snippets/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -276,9 +276,20 @@ environments:
enabled: true
minReplicas: 2
maxReplicas: 10
service:
annotations: {}
tracing:
enabled: false
samplingRatio: "0.01"
maxBodySize: 1024m
maxBodySizeBytes: 1073741824
resources:
requests:
cpu: 200m
memory: 512Mi
limits:
cpu: 2
memory: 2Gi
_rawValues: {}
istio:
tracing:
Expand Down
20 changes: 1 addition & 19 deletions values/ingress-nginx/ingress-nginx.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,7 @@ controller:
patch:
priorityClassName: otomi-critical
useComponentLabel: true
# set fixed allocation with limits same as requests
resources:
{{- if (hasKey $n "resources") }}
{{- $n.resources | toYaml | nindent 4 }}
{{- else }}
limits:
cpu: 2
memory: 1.5Gi
requests:
cpu: 200m
memory: 512Mi
{{- end }}
resources: {{- $n.resources | toYaml | nindent 4 }}
podAnnotations:
policy.otomi.io/ignore: psp-privileged
opentelemetry:
Expand Down Expand Up @@ -154,13 +143,6 @@ defaultBackend:
requests:
cpu: 10m
memory: 10Mi

# podAnnotations:
# sidecar.istio.io/inject: "false"
{{- if eq $v.cluster.provider "azure" }}
nodeSelector:
beta.kubernetes.io/os: linux
{{- end }}
service:
omitClusterIP: true
rbac:
Expand Down

0 comments on commit 5c1097d

Please sign in to comment.