Showing posts with label k8s. Show all posts
Showing posts with label k8s. Show all posts

Wednesday, June 14, 2023

Error creating: admission webhook "namespace.sidecar-injector.istio.io" denied the request: failed to run injection template: template: inject:212:12: executing "inject" at <.EstimatedConcurrency>: can't evaluate field EstimatedConcurrency in type *inject.SidecarTemplateData

 Problem:

Error creating: admission webhook "namespace.sidecar-injector.istio.io" denied the request: failed to run injection template: template: inject:212:12: executing "inject" at <.EstimatedConcurrency>: can't evaluate field EstimatedConcurrency in type *inject.SidecarTemplateData

Solution:

In vaulues.yaml, make below change:

pilot:

  # Can be a full hub/image:taggcr.io/istio-release
  image: gcr.io/istio-release/pilot:1.16.5

Sunday, October 4, 2020

Kubernetes Pod Readiness Probe

Readiness Probe: 

1. httpGet 

readinessProbe:
  httpGet:
    path: /api/ready
    port: 8080

2. tcpSocket:

readinessProbe:
  topSocket:
    port:3306

3. command

readinessProbe:
  exec:
    command:
       - cat
      -/app/is_ready


Liveness Probe:

 1. httpGet 

livenessProbe:
  httpGet:
    path: /api/ready
    port: 8080 
  initialDelaySeconds: 10 
  periodSeconds: 5 
  failureThreshold: 8 

 
 

2. tcpSocket:

livenessProbe:
  topSocket:
    port:3306


3. command

livenessProbe:
  exec:
    command:
       - cat
      -/app/is_ready