title: kubernetes error: unable to recognize "deployment.yaml": no matches for extensions/, Kind=Deployment
body: <p>Integrated kubernetes with jenkins and run the command in Jenkins file <code>kubectl create -f deployment.yaml --validate=false</code> and getting the error:</p>
  
  <pre><code>unable to recognize "deployment.yaml": no matches for extensions/,Kind=Deployment
  </code></pre>
  
  <p>But if I run the same command in terminal I am able to deploy my image. deployment.yaml file is given below</p>
  
  <pre><code>apiVersion: extensions/v1beta1
  kind: Deployment
  metadata:
    name: appname
  spec:
    template:
      metadata:
        labels:
          app: appname
      spec:
        containers:
        - name: appname
          image: appname
          imagePullPolicy: IfNotPresent
          ports:
          - containerPort: 8080
  </code></pre>