<p dir="auto">Extracted from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="143513623" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/23491" data-hovercard-type="pull_request" data-hovercard-url="/kubernetes/kubernetes/pull/23491/hovercard?comment_id=251777767&amp;comment_type=issue_comment" href="https://github.com/kubernetes/kubernetes/pull/23491#issuecomment-251777767">#23491 (comment)</a></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="This appears to be leaking journalctl processes originating here: https://github.com/kubernetes/kubernetes/blob/master/vendor/github.com/google/cadvisor/utils/oomparser/oomparser.go#L169"><pre class="notranslate"><code class="notranslate">This appears to be leaking journalctl processes originating here: https://github.com/kubernetes/kubernetes/blob/master/vendor/github.com/google/cadvisor/utils/oomparser/oomparser.go#L169
</code></pre></div>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="143513623" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/23491" data-hovercard-type="pull_request" data-hovercard-url="/kubernetes/kubernetes/pull/23491/hovercard" href="https://github.com/kubernetes/kubernetes/pull/23491">#23491</a> set kubelet unit files to restart just the kubelet process and this ends up orphaning and leaking <code class="notranslate">journalctl</code> processes launched by cAdvisor.<br>
AFAIK, this behavior can leak many other processes like <code class="notranslate">du</code>, <code class="notranslate">ls</code>, <code class="notranslate">mount</code>, etc.</p>
<p dir="auto">@kubernetes/sig-node we need to fix this.</p>
<p dir="auto">I recommend reverting <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="143513623" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/23491" data-hovercard-type="pull_request" data-hovercard-url="/kubernetes/kubernetes/pull/23491/hovercard" href="https://github.com/kubernetes/kubernetes/pull/23491">#23491</a> to begin with as suggested by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/wwwtyro/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/wwwtyro">@wwwtyro</a></p>
<p dir="auto"><strong>Kubernetes version</strong> (use <code class="notranslate">kubectl version</code>):<br>
Client Version: version.Info{Major:"1", Minor:"3", GitVersion:"v1.3.10", GitCommit:"c3e367ec9eae7338ac4e2a57f293634891319b7c", GitTreeState:"clean", BuildDate:"2016-10-31T21:25:43Z", GoVersion:"go1.6.2", Compiler:"gc", Platform:"linux/amd64"}<br>
Server Version: version.Info{Major:"1", Minor:"4", GitVersion:"v1.4.3", GitCommit:"4957b090e9a4f6a68b4a40375408fdc74a212260", GitTreeState:"clean", BuildDate:"1970-01-01T00:00:00Z", GoVersion:"go1.7.1", Compiler:"gc", Platform:"linux/amd64"}</p>
<p dir="auto"><strong>Environment</strong>:<br>
NAME=Fedora<br>
VERSION="22 (Twenty Two)"<br>
ID=fedora<br>
VERSION_ID=22<br>
PRETTY_NAME="Fedora 22 (Twenty Two)"<br>
ANSI_COLOR="0;34"<br>
CPE_NAME="cpe:/o:fedoraproject:fedora:22"<br>
HOME_URL="<a href="https://fedoraproject.org/" rel="nofollow">https://fedoraproject.org/</a>"<br>
BUG_REPORT_URL="<a href="https://bugzilla.redhat.com/" rel="nofollow">https://bugzilla.redhat.com/</a>"<br>
REDHAT_BUGZILLA_PRODUCT="Fedora"<br>
REDHAT_BUGZILLA_PRODUCT_VERSION=22<br>
REDHAT_SUPPORT_PRODUCT="Fedora"<br>
REDHAT_SUPPORT_PRODUCT_VERSION=22<br>
PRIVACY_POLICY_URL=<a href="https://fedoraproject.org/wiki/Legal:PrivacyPolicy" rel="nofollow">https://fedoraproject.org/wiki/Legal:PrivacyPolicy</a><br>
VARIANT="Workstation Edition"<br>
VARIANT_ID=workstation</p>
<p dir="auto">Linux mori.mattharris.org 4.4.14-200.fc22.x86_64 <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="35192559" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/1" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/1/hovercard" href="https://github.com/kubernetes/kubernetes/issues/1">#1</a> SMP Fri Jun 24 21:19:33 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux</p>
<p dir="auto">minikube version: v0.12.2</p>
<p dir="auto"><strong>What happened</strong>:<br>
Merged two configs together and ran kubectl create -f newmergedfile.yml, did not error on validation when missing --- between a service and a deployment</p>
<p dir="auto"><strong>What you expected to happen</strong>:<br>
to create the correct pieces and error on the invalid</p>
<p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="kind: Service
metadata: 
  name: kong-app
spec:
  type: NodePort
  ports:
    - port: 8000
      targetPort: 8000
      name: http
    - port: 8001
      targetPort: 8001
      name: admin
  selector:
    name: kong-app

---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: kong-app
spec:
  template:
    metadata:
      labels:
        name: kong-app
        tier: development
    spec:
      containers:
        - name: kong-app
          image: kong
          env:
            - name: KONG_DATABASE
              value: cassandra
            - name: KONG_CASSANDRA_CONTACT_POINTS
              value: kong-database
          ports:
            - containerPort: 8000
            - containerPort: 8001
            - containerPort: 7946
            - containerPort: 7946
              protocol: UDP

apiVersion: v1
kind: Service
metadata:
  name: kong-database
spec:
  type: NodePort
  ports:
    - port: 9042
      targetPort: 9042
      nodePort: 30042
  selector:
    name: kong-database

---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: kong-database
spec:
  template:
    metadata:
      labels:
        name: kong-database
        tier: development
    spec:
      containers:
        - name: kong-database
          image: cassandra:2.2
          ports:
            - containerPort: 9042"><pre lang="apiVersion:" class="notranslate"><code class="notranslate">kind: Service
metadata: 
  name: kong-app
spec:
  type: NodePort
  ports:
    - port: 8000
      targetPort: 8000
      name: http
    - port: 8001
      targetPort: 8001
      name: admin
  selector:
    name: kong-app

---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: kong-app
spec:
  template:
    metadata:
      labels:
        name: kong-app
        tier: development
    spec:
      containers:
        - name: kong-app
          image: kong
          env:
            - name: KONG_DATABASE
              value: cassandra
            - name: KONG_CASSANDRA_CONTACT_POINTS
              value: kong-database
          ports:
            - containerPort: 8000
            - containerPort: 8001
            - containerPort: 7946
            - containerPort: 7946
              protocol: UDP

apiVersion: v1
kind: Service
metadata:
  name: kong-database
spec:
  type: NodePort
  ports:
    - port: 9042
      targetPort: 9042
      nodePort: 30042
  selector:
    name: kong-database

---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: kong-database
spec:
  template:
    metadata:
      labels:
        name: kong-database
        tier: development
    spec:
      containers:
        - name: kong-database
          image: cassandra:2.2
          ports:
            - containerPort: 9042
</code></pre></div>
<p dir="auto">and run create</p>
<p dir="auto"><strong>Anything else do we need to know</strong>:<br>
nope</p>