Reputation: 1090
Following blog post here I am trying to deploy this sample service on my aws k8s through istio gives me "error: no objects passed to apply"
Setup
Config
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
Issue
kubectl apply -f <(istioctl kube-inject -f book-info-v1.yaml)
error: no objects passed to apply
Upvotes: 1
Views: 6283
Reputation: 3427
It probably means that istioctl kube-inject
produced empty output in the istioctl kube-inject -f book-info-v1.yaml
part. Try to run istioctl kube-inject -f book-info-v1.yaml
as a separate command and see if it produces any errors.
Upvotes: 2