istio: Can not create gateway

Describe the bug A clear and concise description of what the bug is. Follow the doc “https://istio.io/docs/tasks/traffic-management/ingress/” to create gateway, Error from server (InternalError): error when creating “STDIN”: Internal error occurred: failed calling admission webhook “pilot.validation.istio.io”: Post https://istio-galley.istio-system.svc:443/admitpilot?timeout=30s: EOF Expected behavior A clear and concise description of what you expected to happen. The gateway should be created Steps to reproduce the bug Steps to reproduce the behavior.

  1. Download istio and export the path:export PATH=$PWD/bin:$PATH

2.Install CRD:kubectl apply -f install/kubernetes/helm/istio/templates/crds.yaml

3.Install istio with Helm:helm install install/kubernetes/helm/istio --name istio --namespace istio-system

4.manually inject the sidecar to deploying the httpbin application:kubectl apply -f <(istioctl kube-inject -f samples/httpbin/httpbin.yaml)

  1. export INGRESS_PORT、SECURE_INGRESS_PORT and INGRESS_HOST
  2. Create an Istio Gateway: cat <<EOF | kubectl apply -f - apiVersion: networking.istio.io/v1alpha3 kind: Gateway metadata: name: httpbin-gateway spec: selector: istio: ingressgateway # use Istio default gateway implementation servers:
  • port: number: 80 name: http protocol: HTTP hosts:
    • “httpbin.example.com” EOF Version What version of istio and Kubernetes are you using? Use istioctl version and kubectl version istioctl version: Version: 1.0.0 GitRevision: 3a136c90ec5e308f236e0d7ebb5c4c5e405217f4 User: root@71a9470ea93c Hub: gcr.io/istio-release GolangVersion: go1.10.1 BuildStatus: Clean

kubectl version: Client Version: version.Info{Major:“1”, Minor:“11”, GitVersion:“v1.11.0”, GitCommit:“91e7b4fd31fcd3d5f436da26c980becec37ceefe”, GitTreeState:“clean”, BuildDate:“2018-06-27T20:17:28Z”, GoVersion:“go1.10.2”, Compiler:“gc”, Platform:“linux/amd64”} Server Version: version.Info{Major:“1”, Minor:“11”, GitVersion:“v1.11.0”, GitCommit:“91e7b4fd31fcd3d5f436da26c980becec37ceefe”, GitTreeState:“clean”, BuildDate:“2018-06-27T20:08:34Z”, GoVersion:“go1.10.2”, Compiler:“gc”, Platform:“linux/amd64”}

helm version Client: &version.Version{SemVer:“v2.9.1”, GitCommit:“20adb27c7c5868466912eebdf6664e7390ebe710”, GitTreeState:“clean”} Server: &version.Version{SemVer:“v2.9.1”, GitCommit:“20adb27c7c5868466912eebdf6664e7390ebe710”, GitTreeState:“clean”}

Is Istio Auth enabled or not? Did you install the stable istio.yaml, istio-auth.yaml… or if using the Helm chart please provide full command line input. Using Helm to install istio: helm install install/kubernetes/helm/istio --name istio --namespace istio-system

Environment Which environment, cloud vendor, OS, etc are you using? Centos7 in VM, Kubernetes installed with Kubeadm,1 master 2 nodes

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 2
  • Comments: 32 (10 by maintainers)

Most upvoted comments

https://istio.io/docs/setup/kubernetes/helm-install/#option-1-install-with-helm-via-helm-template

helm template install/kubernetes/helm/istio \
    --name istio \
    --namespace istio-system \
    --set global.configValidation=false | kubectl apply -f -