Skip to content

how to use mapped port to init and register #6958

@kechujian-creator

Description

@kechujian-creator

The internal IP is 192.168.1.100, and the external IP is 1.2.3.4. The internal network uses port 8080, mapped to port 10303 on the external network. The initialization is performed with the command karmadactl init -p 8080 --cert-external-ip='1.2.3.4'. After initialization, within the local network, you can use karmadactl register 1.2.3.4:10303 --token xxx --discovery-token-ca-cert-hash xxxx --cluster-name="aaa". However, for servers outside the local network, curl -k https://1.2.3.4:10303/healthz returns "ok," but running karmadactl register 1.2.3.4:10303 --token xxx --discovery-token-ca-cert-hash xxxx --cluster-name="aaa" results in the message [karmada-agent-start] Waiting to perform the TLS Bootstrap and the error Unable to connect to the server: context deadline exceeded.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/questionIndicates an issue that is a support question.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions