Closed skybalsamoan closed 5 months ago
We are facing the same issue, though I think that is an issue with the https://github.com/Kong/kubernetes-ingress-controller, from what I can see.
maybe, but because plugins are included in Kong Gateway I was unsure if the problem occurs due to a change to the plugin not documented AFAIK or due to a change in KIC. have you had the chance to solve the problem?
No, I found the issue. Because we are facing the same.
Is there any solution, I have the same problem.
@skybalsamoan can you create the issue in the KIC repo, or move it to the KIC? I am not sure if this topic get's attention in here.
facing the same issue
issue #5729 created in Kong/kubernetes-ingress-controller
Closing as this issue is tracked in KIC repo.
Is there an existing issue for this?
Kong version (
$ kong version
)3.6
Current Behavior
After upgrading from Kong 3.5 to 3.6 I receive errors while validating KongUpstreamPolicies used as healthchecks with this error: 2024-02-28T09:24:23Z error failed fetching KongUpstreamPolicy: KongUpstreamPolicy mynamespace/kong-health-check not found {"name": "myservice", "namespace": "mynamespace", "GVK": "/v1, Kind=Service", "error": "resource processing failed"}
Expected Behavior
As any breaking change seems to be reported this should work as in previous version
Steps To Reproduce
admin: enabled: false
env: database: "off" router_flavor: "traditional" nginx_worker_processes: "auto" proxy_access_log: /dev/stdout proxy_stream_access_log: /dev/stdout admin_access_log: "off" admin_gui_access_log: "off" portal_api_access_log: "off" proxy_error_log: /dev/stderr admin_error_log: /dev/stderr admin_gui_error_log: /dev/stderr portal_api_error_log: /dev/stderr prefix: /kong_prefix/ trusted_ips: 0.0.0.0/0,::0 real_ip_recursive: "on" real_ip_header: X-Forwarded-For headers: "off" plugins: bundled
status: enabled: true http: enabled: true containerPort: 8100
proxy: enabled: true annotations:
AWS-LOAD-BALANCER-CONTROLLER RELATED
type: LoadBalancer loadBalancerClass: service.k8s.aws/nlb
labels: enable-metrics: "true"
http:
Enable plaintext HTTP listen for the proxy
tls: enabled: true servicePort: 443 containerPort: 8443 overrideServiceTargetPort: 8000 parameters: []
ingressController: enabled: true resources: limits: cpu: 100m memory: 256M requests: cpu: 100m memory: 256M
postgresql: enabled: false
affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms:
topologySpreadConstraints: []
- maxSkew: 1
topologyKey: topology.kubernetes.io/zone
whenUnsatisfiable: DoNotSchedule
labelSelector:
matchLabels:
foo: bar
updateStrategy: type: RollingUpdate rollingUpdate:
maxSurge: "25%"
If you want to specify resources, uncomment the following
lines, adjust them as necessary, and remove the curly braces after 'resources:'.
resources: limits: cpu: 900m memory: 1792M requests: cpu: 900m memory: 1792M
Node labels for pod assignment
Ref: https://kubernetes.io/docs/user-guide/node-selection/
nodeSelector: {}
podAnnotations: {}
kuma.io/gateway:
traffic.sidecar.istio.io/includeInboundPorts: ""
Labels to be added to Kong pods
podLabels: {}
Kong pod count.
It has no effect when autoscaling.enabled is set to true
replicaCount: 1
Enable autoscaling using HorizontalPodAutoscaler
When configuring an HPA, you must set resource requests on all containers via
"resources" and, if using the controller, "ingressController.resources" in values.yaml
autoscaling: enabled: true minReplicas: 1 maxReplicas: 3 behavior: {}
targetCPUUtilizationPercentage only used if the cluster doesn't support autoscaling/v2 or autoscaling/v2beta
targetCPUUtilizationPercentage:
Otherwise for clusters that do support autoscaling/v2 or autoscaling/v2beta, use metrics
metrics:
Kong Pod Disruption Budget
podDisruptionBudget: enabled: false
Uncomment only one of the following when enabled is set to true
maxUnavailable: "50%"
minAvailable: "100%"
serviceMonitor: enabled: false namespace: metrics
enterprise: enabled: false
manager: enabled: false
portal: enabled: false
portalapi: enabled: false
clustertelemetry: enabled: false
extraObjects:
apiVersion: configuration.konghq.com/v1beta1 kind: KongUpstreamPolicy metadata: name: kong-health-check namespace: mynamespace spec: healthchecks: active: httpPath: /actuator/health type: http healthy: interval: 5 successes: 1 unhealthy: httpFailures: 3 interval: 5
apiVersion: v1 kind: Service metadata: name: myservice namespace: mynamespace annotations: konghq.com/upstream-policy: kong-health-check spec: type: ClusterIP ports:
Anything else?
No response