kubernetes / examples

Kubernetes application example tutorials

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to expose this to outside kubernetes cluster ?

saurastrirajat opened this issue · comments

I tried following this
https://github.com/kubernetes/examples/tree/master/staging/storage/redis#tl-dr

But this setup seems to be accessible within K8S cluster. How do we expose this to outside ?

I tried changing service type to NodePort. This exposed sentinel. Then I did redis-cli to sentinel using node host and nodeport. Which connect me to sentinel and from there my redis master and slave discoverable

However when I try to connect to master from sentinel it do not connect.

Any help or lead to solve this ?

Hey @saurastrirajat
Can you please provide a bit more info?
Which steps / commands exactly did you try to run? Which ones didn't work? And what was the error message?

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

/close

@MoShitrit: Closing this issue.

In response to this:

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.