Skip to content

Commit

Permalink
remove istio sidecar clu limit (#27)
Browse files Browse the repository at this point in the history
* removing just default cpu limit
  • Loading branch information
robert-nemet authored Feb 18, 2021
1 parent 7fcaccf commit 3acc108
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions charts/imaginary/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
appVersion: "1.2.4"
description: Deploy imaginary to process pictures on the fly
name: imaginary
version: 0.1.3
version: 0.1.4
home: https://github.com/h2non/imaginary
sources:
- https://github.com/ricardo-ch/helm-charts/tree/main/charts/imaginary
Expand All @@ -15,7 +15,7 @@ keywords:
- h2non
annotations:
artifacthub.io/changes: |
- Adding configuration for istio sidecar(injection and resources). Support istio 1.8+ annotations.
- Removing default value for Istio CPU limit
artifacthub.io/images: |
- name: imaginary
image: h2non/imaginary:1.2.4
4 changes: 2 additions & 2 deletions charts/imaginary/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Imaginary

![Version: 0.1.3](https://img.shields.io/badge/Version-0.1.3-informational?style=flat-square) ![AppVersion: 1.2.4](https://img.shields.io/badge/AppVersion-1.2.4-informational?style=flat-square) ![Release Status](https://github.com/ricardo-ch/helm-charts/workflows/Release%20Charts/badge.svg) [![License](https://img.shields.io/github/license/ricardo-ch/helm-charts)](https://github.com/ricardo-ch/helm-charts/blob/main/LICENSE)
![Version: 0.1.4](https://img.shields.io/badge/Version-0.1.4-informational?style=flat-square) ![AppVersion: 1.2.4](https://img.shields.io/badge/AppVersion-1.2.4-informational?style=flat-square) ![Release Status](https://github.com/ricardo-ch/helm-charts/workflows/Release%20Charts/badge.svg) [![License](https://img.shields.io/github/license/ricardo-ch/helm-charts)](https://github.com/ricardo-ch/helm-charts/blob/main/LICENSE)

This chart installs [Imaginary](https://github.com/h2non/imaginary).

Expand Down Expand Up @@ -34,7 +34,7 @@ Simply add this Chart repository to Helm:
| image | string | `"h2non/imaginary:1.2.4"` | Docker image repository to pull it. |
| imagePullPolicy | string | `"IfNotPresent"` | imagePullPolicy used by k8s |
| istio.cpu | string | `"10m"` | istio sidecar cpu request |
| istio.cpuLimit | string | `"10m"` | istio sidecar cpu request limit |
| istio.cpuLimit | string | `nil` | istio sidecar cpu request limit |
| istio.inject | bool | `false` | istio sidecar configuration, enable injecting sidecar |
| istio.memory | string | `"128Mi"` | istio sidecar memory request |
| istio.memoryLimit | string | `"128Mi"` | istio sidecar memory limit |
Expand Down
2 changes: 2 additions & 0 deletions charts/imaginary/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ spec:
{{- if .Values.istio.inject }}
sidecar.istio.io/inject: {{ quote .Values.istio.inject }}
sidecar.istio.io/proxyCPU: {{ .Values.istio.cpu }}
{{- if .Values.istio.cpuLimit }}
sidecar.istio.io/proxyCPULimit: {{ .Values.istio.cpuLimit }}
{{- end }}
sidecar.istio.io/proxyMemory: {{ .Values.istio.memory }}
sidecar.istio.io/proxyMemoryLimit: {{ .Values.istio.memoryLimit }}
{{- end }}
Expand Down
3 changes: 2 additions & 1 deletion charts/imaginary/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ istio:
# -- istio sidecar cpu request
cpu: 10m
# -- istio sidecar cpu request limit
cpuLimit: 10m
cpuLimit:


# -- estimated time to propagate the information the pod is not part of the service anymore
gracefulShutdownDelaySeconds:
Expand Down

0 comments on commit 3acc108

Please sign in to comment.