<p>Following blog post <a href="http://blog.kubernetes.io/2017/05/managing-microservices-with-istio-service-mesh.html" rel="nofollow noreferrer">here</a> I am trying to deploy this sample service on my aws k8s through istio gives me "error: no objects passed to apply"</p>

<p><strong>Setup</strong></p>

<ul>
<li>aws k8s v1.7.x</li>
<li>istio 0.4.0</li>
</ul>

<p><strong>Config</strong></p>

<pre><code>apiVersion: v1
kind: Service
metadata:
 name: productpage
 labels:
   app: productpage
spec:
 type: NodePort
 ports:
 - port: 9080
   name: http
 selector:
   app: productpage
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
 name: productpage-v1
spec:
 replicas: 1
 template:
   metadata:
     labels:
       app: productpage
       track: stable
   spec:
     containers:
     - name: productpage
       image: istio/examples-bookinfo-productpage-v1
       imagePullPolicy: IfNotPresent
       ports:
       - containerPort: 9080
</code></pre>

<p><strong>Issue</strong></p>

<p><code>kubectl apply -f &lt;(istioctl kube-inject -f book-info-v1.yaml)</code></p>

<p><code>error: no objects passed to apply</code></p>

<p>It probably means that <code>istioctl kube-inject</code> produced empty output in the <code>istioctl kube-inject -f book-info-v1.yaml</code> part. Try to run <code>istioctl kube-inject -f book-info-v1.yaml</code> as a separate command and see if it produces any errors.</p>
