<p dir="auto">Pods with RestartPolicyNever are leaving behind infra pods.  Those infra pods should be nuked as soon as the last successful run is completed.</p>
<p dir="auto">For people with lots of successful / failed never pods this consumes IP addresses which is bad when IP addresses are in use.</p>
<p dir="auto">I suspect this is because we don't have another marker that the pod has completed, but we probably need to get that fixed before 1.0.</p>
<p dir="auto">I have noticed it a couple of times that when I am trying to export a resource, selflinks stay around and the namespace is not part of the link anymore.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[mkargaki@dhcp129-211 kubernetes.github.io]$ kc get quota -o yaml
apiVersion: v1
items:
- apiVersion: v1
  kind: ResourceQuota
  metadata:
    creationTimestamp: 2016-09-29T16:53:38Z
    name: object-counts
    namespace: default
    resourceVersion: &quot;63&quot;
    selfLink: /api/v1/namespaces/default/resourcequotas/object-counts
    uid: 4494594b-8665-11e6-9fad-68f72840e7df
  spec:
    hard:
      pods: &quot;2&quot;
  status:
    hard:
      pods: &quot;2&quot;
    used:
      pods: &quot;0&quot;
kind: List
metadata: {}
$ kc get quota object-counts --export -o yaml
apiVersion: v1
kind: ResourceQuota
metadata:
  creationTimestamp: null
  name: object-counts
  selfLink: /api/v1/namespaces//resourcequotas/object-counts
spec:
  hard:
    pods: &quot;2&quot;
status: {}"><pre class="notranslate"><code class="notranslate">[mkargaki@dhcp129-211 kubernetes.github.io]$ kc get quota -o yaml
apiVersion: v1
items:
- apiVersion: v1
  kind: ResourceQuota
  metadata:
    creationTimestamp: 2016-09-29T16:53:38Z
    name: object-counts
    namespace: default
    resourceVersion: "63"
    selfLink: /api/v1/namespaces/default/resourcequotas/object-counts
    uid: 4494594b-8665-11e6-9fad-68f72840e7df
  spec:
    hard:
      pods: "2"
  status:
    hard:
      pods: "2"
    used:
      pods: "0"
kind: List
metadata: {}
$ kc get quota object-counts --export -o yaml
apiVersion: v1
kind: ResourceQuota
metadata:
  creationTimestamp: null
  name: object-counts
  selfLink: /api/v1/namespaces//resourcequotas/object-counts
spec:
  hard:
    pods: "2"
status: {}
</code></pre></div>
<p dir="auto">We could maybe have this issue as a duplicate of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="151339064" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/24855" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/24855/hovercard" href="https://github.com/kubernetes/kubernetes/issues/24855">#24855</a> but I thought we already cleaned up object meta.</p>
<p dir="auto">@kubernetes/sig-apps</p>