[ERROR: resource mapping not found for name: "dist-strat-example-worker-0" namespace: "" from "maye_template.yaml": no matches for kind "Deployment" in version "v1"]

apiVersion: apps/v1
kind: Deployment
metadata:
### labels should be put at start of metadata, or
### raise this error.
  name: dist-strat-example-worker-0
  labels:                        
    app: dist-strat-example-worker-0

spec:
  replicas: 1
...  
error: resource mapping not found for name: "dist-strat-example-worker-0" namespace: "" from "maye_template.yaml": no matches for kind "Deployment" in version "v1"
ensure CRDs are installed first
(base) maye@maye-Inspiron-5547:~

[SOLUTION]

apiVersion: apps/v1
kind: Deployment
metadata:
### labels should be put at start of metadata, or
### raise this error.
  labels:                        
    app: dist-strat-example-worker-0
  name: dist-strat-example-worker-0

spec:
  replicas: 1
...