Skip to content

Metrics server#156

Open
jshiwamV wants to merge 16 commits into
mainfrom
metrics_server
Open

Metrics server#156
jshiwamV wants to merge 16 commits into
mainfrom
metrics_server

Conversation

@jshiwamV

@jshiwamV jshiwamV commented Mar 4, 2026

Copy link
Copy Markdown
Contributor

Add metrics-server kubernetes module. This should be reviewed after #153

Related Issue: #3

@jshiwamV jshiwamV marked this pull request as ready for review March 4, 2026 18:19
@alex-hunt-materialize alex-hunt-materialize changed the base branch from main to network-policies March 5, 2026 12:57
@alex-hunt-materialize

Copy link
Copy Markdown
Contributor

I've temporarily pointed this at the network-policies branch, to make it easier to review the stacked changes. Do not merge without pointing back to main and rebase after the network policies PR is merged.

# Required for the Materialize Console to display cluster metrics
# Disabled by default because AKS provides metrics-server by default
# TODO: we should rather rely on AKS metrics-server instead of installing our own, confirm with team and get rid of this helm release
# If you need to install a custom metrics-server, use the kubernetes/modules/metrics-server module:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What namespace is the AKS provided metrics-server in? Do we need additional network policies to access it?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

No, for both AKS and GCP metrics-server exists in kube-system ns, for which we already have network policy in place.


namespace = "monitoring"
create_namespace = false # operator creates the "monitoring" namespace
create_namespace = true

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Have you tested upgrades from previous code to this? Does the operator removing the namespace cause this to be deleted and conflict?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yes there is a issue during upgrades if you are using existing operator module where monitoring ns is created inside operator, a race condition occurs, the request to create namespace and destroy namespace run simultaneously and I get namespace exists error, it works on the second apply. I didn't bother too much about it assuming there's not customer dependency on this as of now.

@jubrad jubrad force-pushed the network-policies branch from a26e6ab to 2c2a3b7 Compare March 13, 2026 01:00
Base automatically changed from network-policies to main March 13, 2026 05:54
@jshiwamV

Copy link
Copy Markdown
Contributor Author

Are these changes still needed? If so I will resolve the merge conflicts and have it ready for merge, else I can close it if this is not needed anymore.

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.

2 participants