spierce7
12/06/2022, 2:39 PMdocker-compose
becomes extremely inconvenient as soon as you want to turn off a service and run your own local dev environment.
Surely there is a tool that I just don't know about that everyone is using to manage their environments?Sam
12/06/2022, 2:40 PMspierce7
12/06/2022, 2:44 PMchristophsturm
12/06/2022, 2:49 PMspierce7
12/06/2022, 3:00 PMchristophsturm
12/06/2022, 3:05 PMchristophsturm
12/06/2022, 3:06 PMchristophsturm
12/06/2022, 3:08 PMspierce7
12/06/2022, 3:09 PMchristophsturm
12/06/2022, 3:11 PMspierce7
12/06/2022, 3:12 PMSam
12/06/2022, 3:13 PMspierce7
12/06/2022, 3:14 PMspierce7
12/06/2022, 3:25 PMchristophsturm
12/06/2022, 3:26 PMCody Mikol
12/06/2022, 3:31 PMkubectl
command-line tool to create a proxy that forwards traffic to the local service.
To create a proxy to a local service, use the kubectl proxy
command, which will start a local proxy server that listens on port 8001 by default. For example, to create a proxy to a local service called my-service
, you can run the following command:
kubectl proxy --port=8001 --service=my-service
This command will create a proxy that forwards traffic to the my-service
service on port 8001. Once the proxy is running, you can access the service by using the localhost
hostname and the specified port (in this example, 8001) in your browser or application.
Alternatively, you can use the kubectl port-forward
command to forward traffic from a local port to a port on the Kubernetes cluster. For example, to forward traffic from local port 8080 to port 80 on the my-service
service, you can run the following command:
kubectl port-forward --service=my-service 8080:80
This command will forward traffic from local port 8080 to port 80 on the my-service
service, allowing you to access the service using the localhost
hostname and the specified local port (in this example, 8080) in your browser or application.
Both of these methods allow you to access a local service when developing on Kubernetes, and can be useful for testing and debugging your application.Cody Mikol
12/06/2022, 3:31 PMchristophsturm
12/06/2022, 3:32 PMchristophsturm
12/06/2022, 3:33 PMspierce7
12/06/2022, 3:33 PMCody Mikol
12/06/2022, 3:35 PMCody Mikol
12/06/2022, 3:36 PMCody Mikol
12/06/2022, 3:36 PMchristophsturm
12/06/2022, 3:40 PMCody Mikol
12/06/2022, 3:41 PMspierce7
12/06/2022, 3:41 PMCody Mikol
12/06/2022, 3:41 PMchristophsturm
12/06/2022, 3:41 PMchristophsturm
12/06/2022, 3:41 PMSam
12/06/2022, 3:41 PMHow do you express and choose for a resource whether or not you are building it locally or running the docker image?I’m not sure, but I know it’s possible, because we do it. Somebody other than me was responsible for setting it all up 😄
Cody Mikol
12/06/2022, 3:42 PMCody Mikol
12/06/2022, 3:42 PMspierce7
12/06/2022, 3:43 PMCody Mikol
12/06/2022, 3:43 PMspierce7
12/06/2022, 3:43 PMchristophsturm
12/06/2022, 3:43 PMCody Mikol
12/06/2022, 3:43 PMCody Mikol
12/06/2022, 3:43 PMJames Richardson
12/06/2022, 6:16 PMJared Schlicht
12/06/2022, 7:47 PMTeimatini Marin
12/06/2022, 11:00 PMHIGAN
12/08/2022, 10:09 AMspierce7
12/20/2022, 2:00 AMTommi Lepola
12/20/2022, 2:03 PMdocker compose
inconvenient when you want to turn of a service? You'd just do docker compose stop name-of-the-service
and then startup the local onespierce7
12/20/2022, 5:56 PMdocker_compose('path-to/docker-compose.yml')
Tilt is an application with a UI that manages your services. I think it's pretty fantastic.Tommi Lepola
12/20/2022, 5:58 PMdocker.compose.yml
using the UI?spierce7
12/20/2022, 5:58 PMspierce7
12/20/2022, 5:59 PMspierce7
12/20/2022, 5:59 PMspierce7
12/20/2022, 6:00 PMTommi Lepola
12/20/2022, 6:01 PM