-
Notifications
You must be signed in to change notification settings - Fork 47
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
docs: add prometheus-operator example for jobset #629
Conversation
✅ Deploy Preview for kubernetes-sigs-jobset canceled.
|
type: NodePort | ||
# Port mapping: Note if deploying with kind for testing, if docker mappings are not exposed when the cluster starts, | ||
# kube port-forward needs to be used for port forwarding | ||
# kubectl port-forward services/jobset-metrics 39090:9090 --address 0.0.0.0 -njobset-system |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# kubectl port-forward services/jobset-metrics 39090:9090 --address 0.0.0.0 -njobset-system | |
# kubectl port-forward services/jobset-metrics 39090:9090 --address 0.0.0.0 -n jobset-system |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
name: jobset-metrics | ||
namespace: jobset-system | ||
spec: | ||
serviceAccountName: prometheus-jobset |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this service account need to be created before we apply the Prometheus CR? I see you create it lower in this file - have you tested this manually?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I split into rbac.yaml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not just put the service account and RBACs above the Prometheus CR in the same file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@googs1025 Can you add a short readme in this folder explaining the steps to demo this example? |
4c8494e
to
2c38e16
Compare
2c38e16
to
cefb6ee
Compare
https://github.com/googs1025/jobset/tree/docs_prometheus/examples/prometheus-operator |
NAME READY STATUS RESTARTS AGE | ||
jobset-controller-manager-76767b599b-v8wcc 2/2 Running 0 6d22h | ||
prometheus-jobset-metrics-0 2/2 Running 0 17s | ||
root@VM-0-5-ubuntu:/home/ubuntu# kubectl get svc -njobset-system |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Last nit: can you add a space between "-n" and "jobset-system" please? it is more readable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry. fixed.
d148d4f
to
348997c
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: danielvegamyhre, googs1025 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Fix: #626