access the webui service through kubectl proxy from local machine
eliassal opened this issue · comments
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
@eliassal kubectl proxy
listens on port 8001 by default. Please see https://container.training/kube-selfpaced.yml.html#752.
@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
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!
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.
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!