Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question]: I am getting error while calling slack webhook - tls: handshake faliure #607

Open
3 of 4 tasks
anikm1987 opened this issue Feb 2, 2025 · 0 comments
Open
3 of 4 tasks

Comments

@anikm1987
Copy link

anikm1987 commented Feb 2, 2025

Checklist

  • I've searched for similar issues and couldn't find anything matching
  • I've included steps to reproduce the behavior

Affected Components

  • K8sGPT (CLI)
  • K8sGPT Operator

K8sGPT Version

k8sgpt-operator-0.2.6

Kubernetes Version

v1.32.0

Host OS and its Version

Ubuntu 20.04

Steps to reproduce

  1. created incoming webhook in slack.
  2. Tested using postman and ablet o send message to channel using webhook
  3. Updated k8sgpt-resource.yaml with webhook url and deployed
apiVersion: core.k8sgpt.ai/v1alpha1
kind: K8sGPT
metadata:
  name: k8sgpt-sample
spec:
  ai:
    model: mistral-nemo:latest
    backend: localai
    baseUrl: http://host.minikube.internal:11434/v1
    enabled: true
    secret:
      name: k8sgpt-sample-secret
      key: ollama-api-key
  noCache: false
  repository: ghcr.io/k8sgpt-ai/k8sgpt
  version: v0.3.41
  sink:
    type: slack
    webhook: https://hooks.slack.com/services/T08BBMM6X0B/B08B5C1TJMC/KXXXXXXXXXXXXX # use the sink secret if you want to keep your webhook url private

  1. Getting below error in k8sgpt-operator-system/release-k8sgpt-operator-controller-manager-7647859d44-4xn9l:manager
Finished Reconciling k8sGPT with error: Post "https://hooks.slack.com/services/T08BBMM6X0B/B08B5C1TJMC/KXXXXXXXXXXXXX": remote error: tls: handshake failure   ││ 2025-02-02T00:06:57Z    ERROR    Reconciler error    {"controller": "k8sgpt", "controllerGroup": "core.k8sgpt.ai", "controllerKind": "K8sGPT", "K8sGPT": {"name":"k8sgpt ││ sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler                                                                                    ││     /go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:324                                                                         ││ sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem                                                                                 ││     /go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:265                                                                         ││ sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2                                                                                       ││     /go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:226

Expected behaviour

It should be able to send the message to slack webhook.

Actual behaviour

No meesage received in slack but seeing error in the log

Getting below error in k8sgpt-operator-system/release-k8sgpt-operator-controller-manager-7647859d44-4xn9l:manager

Finished Reconciling k8sGPT with error: Post "https://hooks.slack.com/services/T08BBMM6X0B/B08B5C1TJMC/KXXXXXXXXXXXXX": remote error: tls: handshake failure   ││ 2025-02-02T00:06:57Z    ERROR    Reconciler error    {"controller": "k8sgpt", "controllerGroup": "core.k8sgpt.ai", "controllerKind": "K8sGPT", "K8sGPT": {"name":"k8sgpt ││ sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler                                                                                    ││     /go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:324                                                                         ││ sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem                                                                                 ││     /go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:265                                                                         ││ sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2                                                                                       ││     /go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:226

Additional Information

I can curl the webhook url fine if I do minikube ssh and then perform curl -v <webhook_url>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant