-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implements an informer for metrics-api types
This patch is for improving scalability of metrics data. It does that by implementing an informer/lister for the metrics-api data. This change will cache metrics data and avoid retrieving metrics data with directly from the api-server, with each update. Other addition includes - Files for scale testing with project KWOK
- Loading branch information
1 parent
756414a
commit cb3a80f
Showing
15 changed files
with
686 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,135 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: fake-web-1 | ||
namespace: default | ||
spec: | ||
replicas: 100 | ||
selector: | ||
matchLabels: | ||
app: fake-web-1 | ||
template: | ||
metadata: | ||
labels: | ||
app: fake-web-1 | ||
spec: | ||
affinity: | ||
nodeAffinity: | ||
requiredDuringSchedulingIgnoredDuringExecution: | ||
nodeSelectorTerms: | ||
- matchExpressions: | ||
- key: type | ||
operator: In | ||
values: | ||
- kwok | ||
# A taints was added to an automatically created Node. | ||
# You can remove taints of Node or add this tolerations. | ||
tolerations: | ||
- key: "kwok.x-k8s.io/node" | ||
operator: "Exists" | ||
effect: "NoSchedule" | ||
containers: | ||
- name: fake-container | ||
image: fake-image | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: fake-web-2 | ||
namespace: default | ||
spec: | ||
replicas: 50 | ||
selector: | ||
matchLabels: | ||
app: fake-web-2 | ||
template: | ||
metadata: | ||
labels: | ||
app: fake-web-2 | ||
spec: | ||
affinity: | ||
nodeAffinity: | ||
requiredDuringSchedulingIgnoredDuringExecution: | ||
nodeSelectorTerms: | ||
- matchExpressions: | ||
- key: type | ||
operator: In | ||
values: | ||
- kwok | ||
# A taints was added to an automatically created Node. | ||
# You can remove taints of Node or add this tolerations. | ||
tolerations: | ||
- key: "kwok.x-k8s.io/node" | ||
operator: "Exists" | ||
effect: "NoSchedule" | ||
containers: | ||
- name: fake-container | ||
image: fake-image | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: fake-backend-1 | ||
namespace: default | ||
spec: | ||
replicas: 25 | ||
selector: | ||
matchLabels: | ||
app: fake-backend-1 | ||
template: | ||
metadata: | ||
labels: | ||
app: fake-backend-1 | ||
spec: | ||
affinity: | ||
nodeAffinity: | ||
requiredDuringSchedulingIgnoredDuringExecution: | ||
nodeSelectorTerms: | ||
- matchExpressions: | ||
- key: type | ||
operator: In | ||
values: | ||
- kwok | ||
# A taints was added to an automatically created Node. | ||
# You can remove taints of Node or add this tolerations. | ||
tolerations: | ||
- key: "kwok.x-k8s.io/node" | ||
operator: "Exists" | ||
effect: "NoSchedule" | ||
containers: | ||
- name: fake-container | ||
image: fake-image | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: fake-backend-2 | ||
namespace: default | ||
spec: | ||
replicas: 10 | ||
selector: | ||
matchLabels: | ||
app: fake-backend-2 | ||
template: | ||
metadata: | ||
labels: | ||
app: fake-backend-2 | ||
spec: | ||
affinity: | ||
nodeAffinity: | ||
requiredDuringSchedulingIgnoredDuringExecution: | ||
nodeSelectorTerms: | ||
- matchExpressions: | ||
- key: type | ||
operator: In | ||
values: | ||
- kwok | ||
# A taints was added to an automatically created Node. | ||
# You can remove taints of Node or add this tolerations. | ||
tolerations: | ||
- key: "kwok.x-k8s.io/node" | ||
operator: "Exists" | ||
effect: "NoSchedule" | ||
containers: | ||
- name: fake-container | ||
image: fake-image |
Oops, something went wrong.