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

access the webui service through kubectl proxy from local machine #635

Open
eliassal opened this issue Jan 7, 2024 · 6 comments
Open

access the webui service through kubectl proxy from local machine #635

eliassal opened this issue Jan 7, 2024 · 6 comments

Comments

@eliassal
Copy link

eliassal commented Jan 7, 2024

Hi Jerome, I am following your instructions at page 741 at https://container.training/kube-selfpaced.yml.html#741, all works like a charm but one thing I am not able to understand is why you use port 8001 (which works fine) in the command

curl localhost:8001/api/v1/namespaces/yellow/services/webui/proxy/index.html

Webui does not run on 8001, I have deployed all in yellow namespace and running
kubectl get svc
I get

NAME     TYPE        CLUSTER-IP      EXTERNAL-IP   PORT(S)        AGE
hasher   ClusterIP   10.104.87.206   <none>        80/TCP         26h
redis    ClusterIP   10.97.58.189    <none>        6379/TCP       26h
rng      ClusterIP   10.107.13.239   <none>        80/TCP         26h
webui    NodePort    10.104.163.59   <none>        80:30517/TCP   26h

so how this port 8001 works succesfuly? I am really confused, thanks for your help

@conradwt
Copy link

conradwt commented Jan 7, 2024

@eliassal kubectl proxy listens on port 8001 by default. Please see https://container.training/kube-selfpaced.yml.html#752.

@eliassal
Copy link
Author

eliassal commented Jan 7, 2024

Yes, @conradwt , I saw that later in the page 752. Thanks for your response

@eliassal
Copy link
Author

eliassal commented Jan 7, 2024

@conradwt , allow me ask another question please, in page 868, it is indicated to run
kustomize create --resources https://github.com/jpetazzo/kubercoins
I di but getting the error

error: unknown flag: --resources

I remove this flag, I get

error: specify one path to kustomization.yaml

I add -o
kubectl kustomize create https://github.com/jpetazzo/kubercoins -o kustomization.yaml
I get same error

I searched Kustomize github, cant find for CREATE Command

@jpetazzo
Copy link
Owner

jpetazzo commented Mar 4, 2024

Hi @eliassal,

Sorry for the slow reply 😅

That command should work; I just tried it here:

$ kustomize create --resources https://github.com/jpetazzo/kubercoins
$ kustomize version
5.3.0

But perhaps it requires a relatively new version of kustomize (or, to put it differently: maybe you have a relatively old version of kustomized installed?)

Can you check which version you have, and if you still have that problem with a recent version?

Thanks!

@eliassal
Copy link
Author

eliassal commented Mar 5, 2024

Merci @jpetazzo my Kustomize is
Kustomize Version: v4.5.7
I visited the github at https://github.com/kubernetes-sigs/kustomize/releases but not indicated how to upgrade.

@jpetazzo
Copy link
Owner

jpetazzo commented Mar 7, 2024

Ah, it might be a version issue then :)

To upgrade kustomize: use the same method as when you initially installed it.

If you installed it with a package manager (yum apt pacman brew chocolatey...) use that package manager.
If you downloaded the binary and moved it to your $PATH, do that.

Personally I just drop the binary in my ~/bin which is sync'd between my machines, but everyone can do what works best for them!

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

3 participants