Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add nodeSelector, tolerations and affinity to metrics deployment #534

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/nextcloud/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: nextcloud
version: 5.5.4
version: 5.5.5
appVersion: 29.0.6
description: A file sharing server that puts the control and security of your own data back into your hands.
keywords:
Expand Down
12 changes: 12 additions & 0 deletions charts/nextcloud/templates/metrics/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,16 @@ spec:
securityContext:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.metrics.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.metrics.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.metrics.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
28 changes: 19 additions & 9 deletions charts/nextcloud/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -633,24 +633,34 @@ metrics:
## Metrics exporter resource requests and limits
## ref: http://kubernetes.io/docs/user-guide/compute-resources/
##
# resources: {}
resources: {}

# -- Metrics exporter pod Annotation
podAnnotations: {}

# -- Metrics exporter pod Labels
podLabels: {}

# -- Metrics exporter pod nodeSelector
nodeSelector: {}

## Metrics exporter pod Annotation and Labels
# podAnnotations: {}
# -- Metrics exporter pod tolerations
tolerations: []

# podLabels: {}
# -- Metrics exporter pod affinity
affinity: {}

service:
type: ClusterIP
## Use serviceLoadBalancerIP to request a specific static IP,
## otherwise leave blank
# loadBalancerIP:
# Use serviceLoadBalancerIP to request a specific static IP,
# otherwise leave blank
loadBalancerIP:
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "9205"
labels: {}

# security context for the metrics CONTAINER in the pod
# -- security context for the metrics CONTAINER in the pod
securityContext:
runAsUser: 1000
runAsNonRoot: true
Expand All @@ -659,7 +669,7 @@ metrics:
# drop:
# - ALL

# security context for the metrics POD
# -- security context for the metrics POD
podSecurityContext: {}
# runAsNonRoot: true
# seccompProfile:
Expand Down