<p>I am using minikube (docker driver) with kubectl to test an agones fleet deployment. Upon running <code>kubectl apply -f lobby-fleet.yml</code> (and when I try to apply any other agones yaml file)  I receive the following error:</p>
<pre><code>error: resource mapping not found for name: &quot;lobby&quot; namespace: &quot;&quot; from &quot;lobby-fleet.yml&quot;: no matches for kind &quot;Fleet&quot; in version &quot;agones.dev/v1&quot;
ensure CRDs are installed first
</code></pre>
<p>lobby-fleet.yml:</p>
<pre><code>apiVersion: &quot;agones.dev/v1&quot;
kind: Fleet
metadata:
  name: lobby
spec:
  replicas: 2
  scheduling: Packed
  template:
    metadata:
      labels:
        mode: lobby
    spec:
      ports:
      - name: default
        portPolicy: Dynamic
        containerPort: 7600
        container: lobby
      template:
        spec:
          containers:
          - name: lobby
            image: gcr.io/agones-images/simple-game-server:0.12 # Modify to correct image
</code></pre>
<p>I am running this on WSL2, but receive the same error when using the windows installation of kubectl (through choco). I have minikube installed and running for ubuntu in WSL2 using docker.</p>
<p>I am still new to using k8s, so apologies if the answer to this question is clear, I just couldn't find it elsewhere.</p>
<p>Thanks in advance!</p>

kcode
<p>In order to create a resource of kind <code>Fleet</code>, you have to apply the Custom Resource Definition (CRD) that defines what is a <code>Fleet</code> first.</p>
<p>I've looked into the YAML installation instructions of agones, and the <a href="https://raw.githubusercontent.com/googleforgames/agones/release-1.23.0/install/yaml/install.yaml" rel="noreferrer">manifest</a> contains the CRDs. you can find it by searching <code>kind: CustomResourceDefinition</code>.</p>
<p>I recommend you to first try to install according to <a href="https://agones.dev/site/docs/installation/install-agones/yaml/#installing-agones" rel="noreferrer">the instructions in the docs</a>.</p>
