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 port metrics to deployment in examples #695

Open
wants to merge 1 commit 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
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
Loading