nja
nja

Reputation: 67

Pod not started after sidecar injection manually using istio

I am getting below error while trying to inject istio sidecar container manually to pod.

Installation commands:-

kubectl create namespace istio-system

helm install --namespace istio-system istio-base istio/charts/base

helm install --namespace istio-system istiod istio/charts/istio-control/istio-discovery --set global.jwtPolicy=first-party-jwt

In kubectl get events, I can see below error:

Error creating: admission webhook "sidecar-injector.istio.io" denied the request: template: inject:443: function "appendMultusNetwork" not defined

In kube api server logs, below errors are observed:

W0505 02:05:30.750732 1 dispatcher.go:142] rejected by webhook "validation.istio.io": &errors.StatusError{ErrStatus:v1.Status{TypeMeta:v1.TypeMeta{Kind:"", APIVersion:""}, ListMeta:v1.ListMeta{SelfLink:"", ResourceVersion:"", Continue:"", RemainingItemCount:(*int64)(nil)}, Status:"Failure", Message:"admission webhook \"validation.istio.io\" denied the request: configuration is invalid: gateway must have at least one server", Reason:"", Details:(*v1.StatusDetails)(nil), Code:400}}

Please let me know if any clue on how to resolve this error.

Upvotes: 0

Views: 678

Answers (1)

user15659347
user15659347

Reputation:

I went over step-by-step installation with official documentation, and could not reproduce your problem. Here are a few things worth checking:

  • Did you executed all the commands correctly?
  • Maybe you run a different version of Istio? You can check by issuing istioctl version command
  • Maybe you changed something in config files? If you did, what exactly?
  • Try the latest version of Istio (1.9)

Upvotes: 1

Related Questions