question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 4 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
yuzisuncommented, Sep 18, 2019
0reactions
k8s-ci-robotcommented, Sep 22, 2019

@ellis-bigelow: Closing this issue.

In response to this:

/close

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found