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

Requirements for Prometheus #46

Merged
merged 2 commits into from
Nov 6, 2023
Merged

Conversation

roehrich-hpe
Copy link
Contributor

Add a label to the ServiceMonitor resource that will be common across all DWS and NNF repos so we easily tell Prometheus which ones it should select.

Copy the namespace value into config/prometheus so that part of config/ can be deployed on its own.

Add a ClusterRoleBinding that can be used by a metrics reader process to debug the metrics endpoing of the controller. The ClusterRole is already being installed, and the ServiceAccount is already installed.

Introduce a deploy.sh script for the "make deploy" and "make undeploy" targets. This script will do the usuall deploy/undeploy, but will also determine whether or not the ServiceMonitor resource can be applied.

@@ -205,10 +205,10 @@ uninstall: manifests kustomize ## Uninstall CRDs from the K8s cluster specified
$(KUSTOMIZE) build config/crd | kubectl delete --ignore-not-found -f -

deploy: kustomize edit-image ## Deploy controller to the K8s cluster specified in ~/.kube/config.
$(KUSTOMIZE) build config/begin | kubectl apply -f -
./deploy.sh deploy $(KUSTOMIZE) config/begin
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On the "deploy" lines, the "config/begin" isn't used because it's hard coded into the deploy.sh script. Does it have to be included on this line? Same for all the other PRs too.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I hadn't meant for it to be hardcoded. I'll adjust that.

Add a label to the ServiceMonitor resource that will be common across all
DWS and NNF repos so we can easily tell Prometheus which ones it should select.

Copy the namespace value into config/prometheus so that part of config/ can
be deployed on its own.

Add a ClusterRoleBinding that can be used by a metrics reader process to
debug the metrics endpoint of the controller.  The ClusterRole is already
being installed, and the ServiceAccount is already installed.

Introduce a deploy.sh script for the "make deploy" and "make undeploy" targets.
This script will do the usual deploy/undeploy, but will also determine
whether or not the ServiceMonitor resource can be applied.

Signed-off-by: Dean Roehrich <[email protected]>
@roehrich-hpe roehrich-hpe force-pushed the prometheus-requirements branch from b0601cb to 206526a Compare November 6, 2023 21:41
Signed-off-by: Dean Roehrich <[email protected]>
@roehrich-hpe roehrich-hpe merged commit ad260f9 into master Nov 6, 2023
2 checks passed
@roehrich-hpe roehrich-hpe deleted the prometheus-requirements branch November 6, 2023 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants