devops:docker:kubernetes:tutorial-springboot
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
devops:docker:kubernetes:tutorial-springboot [2024/03/05 21:49] – skipidar | devops:docker:kubernetes:tutorial-springboot [2024/03/05 21:51] (current) – skipidar | ||
---|---|---|---|
Line 213: | Line 213: | ||
kubectl port-forward svc/demo 8080:8080 | kubectl port-forward svc/demo 8080:8080 | ||
</ | </ | ||
+ | |||
+ | |||
+ | |||
+ | kubectl: This is the command-line tool used to interact with a Kubernetes cluster. | ||
+ | |||
+ | port-forward: | ||
+ | |||
+ | svc/demo: This specifies the target resource for port forwarding. It indicates a Service named demo in the current namespace. | ||
+ | |||
+ | 8080:8080: This defines the port mapping. The first 8080 represents the local port on your machine that will be used to access the forwarded service. The second 8080 indicates the port on the target service within the cluster. | ||
+ | |||
devops/docker/kubernetes/tutorial-springboot.1709675379.txt.gz · Last modified: by skipidar