Skip to content

Enabling SSL caused relay-agent registration to fail. #76

@britslampe

Description

@britslampe

This is a cross post from this issue

After applying the -boostrap.yaml for the relay-agent onto clusters that I want to import, the agent is not able to connect to Paralus to register clusters. I did some debugging and found that it was not Okta, but the relay application with this problem.

The certificate generated for SSL was created following the Deploy ClusterIssuer and Certificate Objects with cert-manager.

Expected vs actual behavior

  • Expect

    • clusters to register with Paralus and the Cluster Connection status to read SUCCESSFUL when viewing the clusters in a project
  • Actual

    • relay-agent unable to connect and register cluster with Paralus due to Method not allowed
    • Error shown:
      [POST /v2/sentry/bootstrap/{templateToken}/register][501] Bootstrap_RegisterBootstrapAgent default &{Code:12 Details:[] Message:Method Not Allowed}
  • cluster registration stuck pending and Cluster Connection status reads FAILURE

Steps to reproduce the bug

  1. Deploy Paralus
  2. Enable SSL
  3. Try to import another cluster following the instructions in the Paralus Console

Are you using the latest version of the project?

  • chart version: ztka-0.2.4
  • app version: v0.2.3

What is your environment setup? Please tell us your cloud provider, operating system, and include the output of kubectl version --output=yaml and helm version. Any other information that you have, eg. logs and custom values, is highly appreciated!

(optional) If you have ideas on why the bug happens or how it can be solved, please provide it here

  • Before adding the certificate I was able to import other clusters and use the kubectl terminal, perhaps the registration function(s) cannot communicate over HTTPS?
  • I've described the bug, included steps to reproduce it, and included my environment setup with all customizations.
  • I'm using the latest version of the project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingnewNeeds triage

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions