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

Make etcd service more Istio-friendly #108

Merged
merged 2 commits into from
Oct 7, 2024
Merged

Conversation

embik
Copy link
Member

@embik embik commented Oct 7, 2024

I tried to set up kcp in a namespace that has istio injection enabled. Unfortunately, it wasn't working (mainly kcp couldn't talk to etcd over the istio-proxy connection) and threw some obscure error messages suggesting authentication failed.

The problem was actually that Istio couldn't detect the right protocol to proxy. I'm adding the appProtocol field to both service ports to ensure that Istio knows it has to proxy HTTPS. In addition, the (client) certificates needed to have 127.0.0.6 (the istio-proxy sidecar IP) injected so they'd be accepted by the servers. This PR therefore also adds the option to add more ip addresses to the generated certificates.

@embik embik requested review from xrstf and mjudeikis October 7, 2024 08:04
@kcp-ci-bot kcp-ci-bot added dco-signoff: yes Indicates the PR's author has signed the DCO. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Oct 7, 2024
@embik
Copy link
Member Author

embik commented Oct 7, 2024

/hold

@kcp-ci-bot kcp-ci-bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 7, 2024
embik added 2 commits October 7, 2024 12:41
Signed-off-by: Marvin Beckers <marvin@kubermatic.com>
Signed-off-by: Marvin Beckers <marvin@kubermatic.com>
@embik
Copy link
Member Author

embik commented Oct 7, 2024

/hold cancel

@kcp-ci-bot kcp-ci-bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 7, 2024
Copy link
Contributor

@xrstf xrstf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve

@kcp-ci-bot kcp-ci-bot added the lgtm Indicates that a PR is ready to be merged. label Oct 7, 2024
@kcp-ci-bot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 4ca437322826e2f9d40a018f98c9db7a23130c61

@embik
Copy link
Member Author

embik commented Oct 7, 2024

/approve

@kcp-ci-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: embik, xrstf

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kcp-ci-bot kcp-ci-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 7, 2024
@kcp-ci-bot kcp-ci-bot merged commit b2de66f into kcp-dev:main Oct 7, 2024
4 checks passed
@embik embik deleted the istio-ready branch October 7, 2024 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. dco-signoff: yes Indicates the PR's author has signed the DCO. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants