ISTIO:错误:没有传递要传递的对象

时间:2018-02-01 16:29:53

标签: amazon-web-services kubernetes istio

关注博文here我试图在我的aws k8s上部署这个示例服务,通过istio给我“错误:没有对象传递给应用”

设置

  • aws k8s v1.7.x
  • istio 0.4.0

配置

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

问题

kubectl apply -f <(istioctl kube-inject -f book-info-v1.yaml)

error: no objects passed to apply

1 个答案:

答案 0 :(得分:2)

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.