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

[graphite] Add securityContext as parameter #466

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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/graphite/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v2
version: 2.0.0
version: 2.1.0
appVersion: "1.1.10-3"
description: Graphite metrics server
name: graphite
Expand Down
3 changes: 2 additions & 1 deletion charts/graphite/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ The following table lists the configurable parameters of the Graphite chart and
| Parameter | Description | Default |
|--------------------------------|----------------------------------------------|----------------------------------------|
| `image.repository` | Docker image repo | `graphiteapp/graphite-statsd` |
| `image.tag` | Docker image | `1.1.5-4` |
| `image.tag` | Docker image | `1.1.5-4` |
| `image.pullPolicy` | Docker image pull policy | `IfNotPresent` |
| `service.type` | Service type | `ClusterIP` |
| `service.port` | Service port of Graphite UI | `8080` |
Expand All @@ -49,6 +49,7 @@ The following table lists the configurable parameters of the Graphite chart and
| `persistence.accessMode` | PVC Access Mode for config volume | `ReadWriteOnce` |
| `persistence.size` | PVC Storage Request for config volume | `10Gi` |
| `resources` | Resource limits for Graphite pod | `{}` |
| `securityContext` | SecurityContext for Graphite pod | `{}` |
| `ingress.enabled` | Ingress enabled | `false` |
| `ingress.annotations` | Ingress annotations | `{}` |
| `ingress.path` | Ingress path | `/` |
Expand Down
2 changes: 2 additions & 0 deletions charts/graphite/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ spec:
mountPath: /opt/statsd/config/udp.js
- name: {{ template "graphite.fullname" . }}-pvc
mountPath: /opt/graphite/storage/
securityContext:
{{ toYaml .Values.securityContext | indent 10 }}
volumes:
- name: {{ template "graphite.fullname" . }}-configmap
configMap:
Expand Down
10 changes: 10 additions & 0 deletions charts/graphite/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,16 @@ resources: {}
# cpu: 200m
# memory: 512Mi

securityContext: {}
# runAsNonRoot: true
# runAsUser: 1000
# runAsGroup: 1000
# allowPrivilegeEscalation: false
# capabilities:
# drop:
# - ALL
# privileged: false

nodeSelector: {}

tolerations: []
Expand Down