<p>When I want to run the following YAML file, I get the following error:</p>

<p>error: error parsing pod2.yaml: error converting YAML to JSON: yaml: line 8: mapping values are not allowed in this context</p>

<pre><code>---
apiVersion: v1
kind: Pod
metadata:
  name: frontend
spec:
  containers:
name: wp
    image: wordpress
    resources:
      requests:
        memory: "64Mi"
        cpu: "250m"
      limits:
        memory: "128Mi"
        cpu: "500m"
</code></pre>

HamiBU
<p>You need to fix indentation and also <code>containers</code> is a list:</p>

<pre><code>---
apiVersion: v1
kind: Pod
metadata:
  name: frontend
spec:
  containers:
  - name: wp
    image: wordpress
    resources:
      requests:
        memory: "64Mi"
        cpu: "250m"
      limits:
        memory: "128Mi"
        cpu: "500m"
</code></pre>
