0

我正在尝试使用Istio/envoy入口测试 SSL 直通,因为我能够使用 nginx 入口控制器来实现它。所以我创建了一个 nginx https 部署并测试了 deployment/pod/service 的工作情况。

但是,当我像往常一样运行它时,kubectl apply -f <(istioctl kube-inject -f ~/nginx/nginx-app.yaml)部署不会继续(因此没有创建 pod)。

似乎是音量和安装导致了问题。似乎 Istio 也在尝试安装这些。

spec:
      volumes:
      - name: secret-volume
        secret:
          secretName: nginxsecret
      - name: configmap-volume
        configMap:
          name: nginxconfigmap
      containers:
      - image: nginx
        imagePullPolicy: Always
        name: nginx
        ports:
        - containerPort: 80
        - containerPort: 443
        volumeMounts:
          - mountPath: /etc/nginx/ssl
            name: secret-volume
          - mountPath: /etc/nginx/conf.d
            name: configmap-volume

有没有人有见识?

谢谢!

4

1 回答 1

0

我找到了解决方案。它与 https://github.com/istio/istio/issues/3548有关 该问题已修复但尚未合并。所以解决方法是添加sidecar.istio.io/inject: "false"

例如

spec:
  replicas: 1
  template:
    metadata:
      annotations:
        sidecar.istio.io/inject: "false"
      labels:
        app: nginx
于 2018-08-31T20:28:53.733 回答