Skip to content
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
16 changes: 16 additions & 0 deletions helm-quarry/templates/redis_exporter_service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: v1
kind: Service
metadata:
name: redis-exporter
labels:
app: redis
spec:
ports:
- name: web
port: 9121
nodePort: 9121
protocol: TCP
targetPort: 9121
selector:
app: redis
type: NodePort
17 changes: 17 additions & 0 deletions helm-quarry/templates/redis_statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,23 @@ spec:
name: redis-data
resources:
{{- toYaml .Values.redis.resources | nindent 12 }}
ports:
- containerPort: 6379
- name: redis-exporter
image: {{ .Values.redis.exporter.image }}
securityContext:
runAsUser: 59000
runAsGroup: 59000
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
resources:
requests:
cpu: 100m
memory: 100Mi
ports:
- containerPort: 9121
volumes:
- name: redis-data
emptyDir:
Expand Down
6 changes: 4 additions & 2 deletions helm-quarry/values.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
web:
repository: 'quay.io/wikimedia-quarry/quarry'
tag: pr-89 # web tag managed by github actions
tag: pr-90 # web tag managed by github actions
resources:
requests:
memory: "300Mi"
Expand All @@ -11,7 +11,7 @@ web:

worker:
repository: 'quay.io/wikimedia-quarry/quarry'
tag: pr-89 # worker tag managed by github actions
tag: pr-90 # worker tag managed by github actions
resources:
requests:
memory: "400Mi"
Expand All @@ -28,3 +28,5 @@ redis:
limits:
memory: "512Mi"
cpu: "250m"
exporter:
image: quay.io/oliver006/redis_exporter:v1.74.0