error: unable to recognize "k8s\\service.yaml": no matches for serving.knative.dev/, Kind=Service

6/4/2019

While trying to deploy my service.yaml file on GKE as a knative service it throws error:

kubectl create -f k8s\service.yaml

error: unable to recognize "k8s\\service.yaml": no matches for serving.knative.dev/, Kind=Service

knative error

Am I missing something?

my service.yaml:

   apiVersion: serving.knative.dev/v1alpha1
   kind: Service
   metadata:
     name: revenue-serv
     namespace: default
   spec:
     runLatest:
       configuration:
         revisionTemplate:
           spec:
             container:
               image: "eu.gcr.io/rcup-mza-dev/knative-spring:latest"
-- ARINDAM BANERJEE
google-kubernetes-engine
knative

0 Answers