<p>Somehow if I specify resource in my KubernetesPodOperator, the DAG will fail. Looks like the pod is created at least it attempts to create it. The log says <code>Event: XXXXX-e59a4be6 had an event of type Pending</code>.</p>

<p><code>resource_config = {'limit_memory': 1, 'limit_cpu': 1, 'request_memory': 1, 'request_cpu': 1}</code></p>

<pre><code>dagA = KubernetesPodOperator(
            name="podA", namespace='my-app', task_id="task1", resources=resource_config,
    ...
</code></pre>

<p>If I don't specify the resource, it will run. The <code>resource</code> param is of type dictionary looking at code. </p>

<p>Did anyone have this issue? </p>

<p>I found a solution. Specifying a whole integer values does not work based on the examples <a href="https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/composer/workflows/kubernetes_pod_operator.py" rel="nofollow noreferrer">here</a>. This resource spec works:</p>

<pre><code>resource_config = {'limit_memory': '1024Mi', 'limit_cpu': '500m'}
</code></pre>

<p>So I think that is the correct way for specifying the values. </p>
