-
Notifications
You must be signed in to change notification settings - Fork 527
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
clusterloader2: Fix error of probes about metrics-server #2066
Conversation
spec: | ||
containers: | ||
- name: prober | ||
image: gcr.io/k8s-testimages/probes:v0.0.4 | ||
image: gcr.io/k8s-testimages/probes:v0.0.5 |
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.
@mm4tt, I build the image using https://github.com/kubernetes/perf-tests/blob/master/util-images/probes/Dockerfile
but don't have permission to push gcr.io/k8s-testimages/probes:v0.0.5
.
I think I need help to push an image gcr.io/k8s-testimages/probes:v0.0.5
to registry
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.
@@ -4,27 +4,27 @@ metadata: | |||
namespace: probes | |||
name: metrics-server-prober | |||
labels: | |||
probe: metrics-server-probe | |||
probe: kube-client |
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.
Hmm - I actually likes the metrics-server-probe (or sth like that).
kube-client seems too generic too me.
Why are you changing this?
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.
yeah, thanks for review. I have updated all suggestions
@@ -0,0 +1,14 @@ | |||
--- | |||
apiVersion: rbac.authorization.k8s.io/v1 |
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.
What's the point of splitting into multiple files? Keeping whole BRA-related stuff in one file as it was actually is pretty convinient to use...
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.
ok, I have I have rollbacked to use one file.
b8ef2a6
to
2d467e6
Compare
/test pull-perf-tests-clusterloader2 |
2d467e6
to
d74cfe8
Compare
/retest |
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.
/cc @wojtek-t I have updated all suggestions.
apiVersion: v1 | ||
kind: List | ||
items: | ||
- apiVersion: rbac.authorization.k8s.io/v1 |
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 don't understand this...
k8s doesn't support list containing multiple types of objects...
I still don't understand why you're touching it - what didn't work with the original 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.
The issue is here
obj, err := templateProvider.TemplateToObject(filepath.Base(manifest), templateMapping) |
According to the original file, only the first object can be parsed from the file, and the following cannot be parsed.
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.
/cc @wojtek-t
In the original file, only one type of resource can be loaded, and the rest cannot be loaded.
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.
and I observed that other manifest files also have only one resource.
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.
OK - that makes sense.
@yangjunmyfm192085: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
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.
/test pull-perf-tests-clusterloader2-e2e-gce-scale-performance-manual
@yangjunmyfm192085: The specified target(s) for
The following commands are available to trigger optional jobs:
Use
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
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.
/retest
Hi, @wojtek-t, Is this analysis correct? |
/approve But we need to push the image before lgtm-ing. |
I've pushed 0.0.5, but please change also util-images/probes/Makefile version from 0.0.4 to 0.0.5 |
d74cfe8
to
6a76603
Compare
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.
/cc @marseel
Hi, @marseel I have applied all modifications, any other updates? |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: marseel, wojtek-t, yangjunmyfm192085 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 |
What type of PR is this?
/kind bug
What this PR does / why we need it:
When using
InClusterAPIServerRequestLatency
to measure the latency of metrics-server, need to addserviceMonitor
and other information, and update the probe imageWhich issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?:
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: