Skip to content
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
8 changes: 5 additions & 3 deletions example/operator/all-redis-operator-resources.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ spec:
- image: quay.io/spotahome/redis-operator:latest
imagePullPolicy: IfNotPresent
name: app
ports:
- containerPort: 9710
name: metrics
protocol: TCP
securityContext:
readOnlyRootFilesystem: true
runAsNonRoot: true
Expand Down Expand Up @@ -102,7 +106,7 @@ rules:
- leases
verbs:
- "*"

---
apiVersion: v1
kind: ServiceAccount
Expand All @@ -126,7 +130,6 @@ spec:
- name: metrics
port: 9710
protocol: TCP
targetPort: metrics
selector:
app: redisoperator
---
Expand All @@ -149,7 +152,6 @@ spec:
- default
---


apiVersion: monitoring.coreos.com/v1
kind: PodMonitor
metadata:
Expand Down
4 changes: 4 additions & 0 deletions example/operator/operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ spec:
- image: quay.io/spotahome/redis-operator:latest
imagePullPolicy: IfNotPresent
name: app
ports:
- containerPort: 9710
name: metrics
protocol: TCP
securityContext:
readOnlyRootFilesystem: true
runAsNonRoot: true
Expand Down