<p dir="auto"><strong>Is this a request for help?</strong> (If yes, you should use our troubleshooting guide and community support channels, see <a href="http://kubernetes.io/docs/troubleshooting/" rel="nofollow">http://kubernetes.io/docs/troubleshooting/</a>.):</p>
<p dir="auto">No</p>
<p dir="auto"><strong>What keywords did you search in Kubernetes issues before filing this one?</strong> (If you have found any duplicates, you should instead reply there.):</p>
<h2 dir="auto">var/log/containers symlink fluentd</h2>
<p dir="auto"><strong>Is this a BUG REPORT or FEATURE REQUEST?</strong> (choose one):</p>

<p dir="auto"><strong>Kubernetes version</strong> (use <code class="notranslate">kubectl version</code>):<br>
Server Version: version.Info{Major:"1", Minor:"3", GitVersion:"v1.3.2+coreos.0", GitCommit:"52a0d5141b1c1e7449189bb0be3374d610eb98e0", GitTreeState:"clean", BuildDate:"2016-07-19T17:45:13Z", GoVersion:"go1.6.2", Compiler:"gc", Platform:"linux/amd64"}</p>
<p dir="auto"><strong>Environment</strong>:</p>
<ul dir="auto">
<li>
<p dir="auto"><strong>Cloud provider or hardware configuration</strong>:<br>
aws</p>
</li>
<li>
<p dir="auto"><strong>OS</strong> (e.g. from /etc/os-release):<br>
NAME=CoreOS<br>
ID=coreos<br>
VERSION=1068.9.0<br>
VERSION_ID=1068.9.0<br>
BUILD_ID=2016-08-05-0455<br>
PRETTY_NAME="CoreOS 1068.9.0 (MoreOS)"<br>
ANSI_COLOR="1;32"<br>
HOME_URL="<a href="https://coreos.com/" rel="nofollow">https://coreos.com/</a>"<br>
BUG_REPORT_URL="<a href="https://github.com/coreos/bugs/issues">https://github.com/coreos/bugs/issues</a>"</p>
</li>
<li>
<p dir="auto"><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>):</p>
</li>
<li>
<p dir="auto"><strong>Install tools</strong>:</p>
<p dir="auto">kube-aws CLI tool</p>
</li>
<li>
<p dir="auto"><strong>Others</strong>:</p>
</li>
</ul>
<p dir="auto"><strong>What happened</strong>:</p>
<p dir="auto">looking at the fluentd-elasticsearch configuration in td-agent.conf, it says that the kubelet creates symlinks that capture the pod name, namespace, container name &amp; Docker container ID to the docker logs for pods in the /var/log/containers directory on the host.</p>
<p dir="auto">Unfortunately it looks like the /var/log/containers directory on our node hosts have been symlinked to the wrong place</p>
<p dir="auto">it points to</p>
<p dir="auto">var/log/containers -&gt; /mnt/ephemeral/docker/containers</p>
<p dir="auto">when i think it should point to /var/lib/docker/containers/</p>
<p dir="auto">We are running in aws and using the kube-aws CLI tool</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="CoreOS 1068.8.0
Kubernetes v1.3.2"><pre class="notranslate"><code class="notranslate">CoreOS 1068.8.0
Kubernetes v1.3.2
</code></pre></div>
<p dir="auto">Is this a possible bug ?</p>
<p dir="auto"><strong>What you expected to happen</strong>:</p>
<p dir="auto">that the kubelet create symlinks correctly, i.e /var/log/containers is linked to the logs in /var/lib/docker/containers</p>
<p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible):</p>
<p dir="auto">mount a volume on a pod e.g</p>
<p dir="auto">volumeMounts:<br>
- mountPath: /var/log<br>
name: varlog</p>
<ul dir="auto">
<li>hostPath:<br>
path: /var/log<br>
name: varlog</li>
</ul>
<p dir="auto"><strong>Anything else do we need to know</strong>:</p>
<p dir="auto">Nope</p>
<p dir="auto"><strong>What keywords did you search in Kubernetes issues before filing this one?</strong> (If you have found any duplicates, you should instead reply there.): ScheduledJobs API</p>
<hr>
<p dir="auto"><strong>Is this a BUG REPORT or FEATURE REQUEST?</strong> (choose one): BUG</p>
<p dir="auto"><strong>Kubernetes version</strong> (use <code class="notranslate">kubectl version</code>): 1.4.1-beta.0.18</p>
<p dir="auto"><strong>Environment</strong>:</p>
<ul dir="auto">
<li><strong>Cloud provider or hardware configuration</strong>: minikube 0.12.0</li>
<li><strong>OS</strong> (e.g. from /etc/os-release): Mac OS Sierra</li>
</ul>
<p dir="auto"><strong>What happened</strong>:</p>
<p dir="auto">I am trying to create a scheduled job using the API (via kubectl proxy):</p>
<p dir="auto"><code class="notranslate">curl -X POST http://localhost:8001/apis/batch/v2alpha1/scheduledjobs -d @testscheduledjob.yaml -H 'Content-type:application/yaml'</code></p>
<p dir="auto">Contents of testscheduledjob.yaml:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="apiVersion: batch/v2alpha1
kind: ScheduledJob
metadata:
  name: hello
spec:
  schedule: 0/1 * * * ?
  jobTemplate:
    spec:
      template:
        spec:
          containers:
          - name: hello
            image: busybox
            args:
            - /bin/sh
            - -c
            - date; echo Hello from the Kubernetes cluster
          restartPolicy: OnFailure"><pre class="notranslate"><code class="notranslate">apiVersion: batch/v2alpha1
kind: ScheduledJob
metadata:
  name: hello
spec:
  schedule: 0/1 * * * ?
  jobTemplate:
    spec:
      template:
        spec:
          containers:
          - name: hello
            image: busybox
            args:
            - /bin/sh
            - -c
            - date; echo Hello from the Kubernetes cluster
          restartPolicy: OnFailure
</code></pre></div>
<p dir="auto">I get this error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{
  &quot;kind&quot;: &quot;Status&quot;,
  &quot;apiVersion&quot;: &quot;v1&quot;,
  &quot;metadata&quot;: {},
  &quot;status&quot;: &quot;Failure&quot;,
  &quot;message&quot;: &quot;the server does not allow this method on the requested resource&quot;,
  &quot;reason&quot;: &quot;MethodNotAllowed&quot;,
  &quot;details&quot;: {},
  &quot;code&quot;: 405
}"><pre class="notranslate"><code class="notranslate">{
  "kind": "Status",
  "apiVersion": "v1",
  "metadata": {},
  "status": "Failure",
  "message": "the server does not allow this method on the requested resource",
  "reason": "MethodNotAllowed",
  "details": {},
  "code": 405
}
</code></pre></div>
<p dir="auto">Is there a way to create a scheduled job other than using <code class="notranslate">kubectl</code> at the moment?</p>
<p dir="auto"><strong>Anything else do we need to know</strong>:</p>
<p dir="auto">Trying to create a scheduledjob from inside a container</p>