update resources formatting

Signed-off-by: Sameer Naik <sameersbn@vmware.com>
This commit is contained in:
Sameer Naik
2019-11-28 12:29:08 +05:30
parent 43ba5516b2
commit 016d40ff4f
4 changed files with 27 additions and 5 deletions

View File

@@ -86,7 +86,7 @@ The following table lists the configurable parameters of the Node Exporter chart
| `hostNetwork` | Expose the service to the host network | `true` |
| `minReadySeconds` | `minReadySeconds` to avoid killing pods before we are ready | `0` |
| `priorityClassName` | Priority class assigned to the Pods | `nil` |
| `resources` | CPU/Memory resource requests/limits for node | `{}` |
| `resources` | Resource requests/limit | `{}` |
| `podLabels` | Pod labels | `{}` |
| `podAnnotations` | Pod annotations | `{}` |
| `affinity` | Map of node/pod affinities | `{} (The value is evaluated as a template)` |

View File

@@ -60,7 +60,9 @@ spec:
path: /
port: metrics
{{ toYaml .Values.readinessProbe | indent 12 }}
{{- if .Values.resources }}
resources: {{- toYaml .Values.resources | nindent 12 }}
{{- end }}
volumeMounts:
- name: proc
mountPath: /host/proc

View File

@@ -137,10 +137,20 @@ minReadySeconds: 0
##
priorityClassName: ""
## Configure resource requests and limits
## Resource requests and limits
## ref: http://kubernetes.io/docs/user-guide/compute-resources/
##
resources: {}
resources:
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
limits: {}
# cpu: 100m
# memory: 128Mi
requests: {}
# cpu: 100m
# memory: 128Mi
## Pod labels
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/

View File

@@ -137,10 +137,20 @@ minReadySeconds: 0
##
priorityClassName: ""
## Configure resource requests and limits
## Resource requests and limits
## ref: http://kubernetes.io/docs/user-guide/compute-resources/
##
resources: {}
resources:
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
limits: {}
# cpu: 100m
# memory: 128Mi
requests: {}
# cpu: 100m
# memory: 128Mi
## Pod labels
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/