Editing a KFService Object leaves unused resources
See original GitHub issue/kind bug
What steps did you take and what happened: Deploying a KFService of the following format
apiVersion: serving.kubeflow.org/v1alpha1
kind: KFService
metadata:
labels:
controller-tools.k8s.io: "1.0"
name: foo
namespace: foo-ns
annotations:
foo: bar
spec:
default:
custom:
container:
args:
- http
image: mycr.cr.io/fooimg
name: ""
resources:
limits:
cpu: 400m
memory: 500Mi
requests:
cpu: 400m
memory: 500Mi
minReplicas: 2
maxReplicas: 2
serviceAccountName: svcacc
I subsequently ran kubectl edit kfservice foo -n foo-ns
, edited resources.limits.cpu
and resources.requests.cpu
and minReplicas
to 0.
This resulted in the new AND the previous KNative revisions still being active along with the pods associated with them.
What did you expect to happen: The previous revisions are deleted
Anything else you would like to add: This doesn’t seem like expected behavior - out-of-date revisions without an associated route are kept alive and taking up system resources.
Environment:
- Istio Version: 1.1.3
- Knative Version: 0.7.1
- KFServing Version: 0.1
- Kubernetes version: (use
kubectl version
): 1.13
Issue Analytics
- State:
- Created 4 years ago
- Comments:10 (6 by maintainers)
Top Results From Across the Web
Could someone explain the pros of deleting (or keeping ...
Here are some reasons why unused code should be removed: For anyone new working on a project, they not only have to understand...
Read more >Find Unused App Items
This How-To will teach you how you can find unused items and what you have to keep in mind dealing with unused items....
Read more >Clean up your subscription - step by step tutorial from ...
Cleanup, Removing unnecessary resources from Microsoft Azure cloud. Don't pay if you don't use, step by step tutorial by DevOps Architect.
Read more >Unity Does Not Remove Unused Assets even they're if ...
Unity strips most unused Assets during the build, so you don't gain anything by manually removing Assets from the Project.
Read more >Unused custom object - is it really so bad?
Hello, collegues. I am curious about unused custom objects - is it really so bad to have several (or many) Z objects which...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
this is now fixed with https://github.com/knative/serving/releases/tag/v0.9.0.
@ellis-bigelow: Closing this issue.
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.