-
Notifications
You must be signed in to change notification settings - Fork 25
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
[Cherry-pick rel-v1.30]
Support extended resources and ephemeral-storage for scale-from-zero specified in MachineClass NodeTemplate
#336
Conversation
…specified in MachineClass NodeTemplate (gardener#334) * support extended resouces and ephemeral-storage in scale-from-zero * corrected resource issues * adjusted unit test TestBuildNodeFromTemplate for changes
IT successful. ca-it.log
|
Test CaseShoot SetupShoot with 3 Worker Pools, Only the 2nd Worker Pool with minimum pool size specified as providerConfig:
apiVersion: aws.provider.extensions.gardener.cloud/v1alpha1
kind: WorkerConfig
nodeTemplate:
capacity:
cpu: 8
ephemeral-storage: 50Gi
gpu: 0
hana.hc.sap.com/hcu/cpu: 20
hana.hc.sap.com/hcu/memory: 10
memory: 7Gi
resource.com/dongle: 4
Pod with Extended ResourceAs can be seen, due to k8s restrictions, extended resource declaration must be specified in both apiVersion: v1
kind: Pod
metadata:
name: exrestest1
spec:
containers:
- name: example-container
image: busybox
command: ["sh", "-c", "echo Using extended resources && sleep 3600"]
resources:
limits:
resource.com/dongle: "2"
requests:
resource.com/dongle: "2"
CA Scale UpAs can be seen below, the CA Scale Up Log
Pod Assignment.As can be seen the
Currently, stakeholders are doing this with Kyverno policies to update the scaled Update Scaled Node with extended ResourcesNOTE: This step is performed by policy - replicating manually for testing. Proxy the API server
Patch extended resource
Pod is now Scheduled.
|
[Cherry-pick rel-v1.30]
Support extended resources and ephemeral-storage for scale-from-zero specified in MachineClass NodeTemplate
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.
/lgtm
What this PR does / why we need it:
Right now in scale-from-zero cases, the autoscaler does not respect ephemeral-storage and extended resource specified in the
MachineClass.NodeTemplate
. Only the standardcpu
,gpu
andmemory
are picked up. Neither is there any support for custom extended resource which are fully ignored presently.Which issue(s) this PR fixes:
Fixes #132
Special notes for your reviewer:
Release note: