Skip to content

Commit

Permalink
fix(nextcloud): Add nodeSelector, tolerations and affinity to metric…
Browse files Browse the repository at this point in the history
…s deployment #534

Add nodeSelector, tolerations and affinity to metrics deployment
  • Loading branch information
wrenix authored Sep 12, 2024
2 parents 58ecb7d + 230e4e9 commit 5381a62
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 10 deletions.
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

0 comments on commit 5381a62

Please sign in to comment.