<p>I am following <a href="https://kubernetes.io/docs/tasks/access-application-cluster/connecting-frontend-backend/" rel="noreferrer">this tutorial</a>.</p>

<p>My objective was to create a Deployment made with a custom container instead of the hello container.</p>

<p>I made this <code>my-custom-server-deployment.yaml</code>:</p>

<pre><code>apiVersion: v1
kind: Deployment
metadata:
  name: my-custom-server-deployment
spec:
  replicas: 2
  template:
    metadata:
      labels:
        app: my-custom
        tier: backend
    spec:
      containers:
        - name: my-custom-server
          image: my-custom-server
          ports:
              containerPort: 3000
</code></pre>

<p>I tried to build it with <code>kubectl create -f my-custom-server-deployment.yaml</code> and i got:</p>

<pre><code>error: error validating "my-custom-server-deployment.yaml": error validating data: couldn't find type: v1.Deployment; if you choose to ignore these errors, turn validation off with --vali
date=false
</code></pre>

<p>When i add <code>--validate=false</code> i get:</p>

<pre><code> no matches for /, Kind=Deployment
</code></pre>

<p>I thought this was pretty straight forward. What am i doing wrong? </p>

<p>Try using <code>apiVersion: apps/v1beta1</code> instead. I believe Deployments is a still a beta feature.</p>
