Bridge To Kubernetes (B2K) is development tool to debug microservices, pods which redirects traffic to your local development machine and vice versa.
Перейти к файлу
dependabot[bot] 7952c8bea7
Bump step-security/harden-runner from 2.6.1 to 2.7.0 (#534)
2024-02-21 13:41:03 -08:00
.github Bump step-security/harden-runner from 2.6.1 to 2.7.0 (#534) 2024-02-21 13:41:03 -08:00
build
deployment
samples Bump classnames from 2.3.1 to 2.5.1 in /samples/todo-app/frontend (#512) 2024-02-21 09:53:31 -08:00
scripts
src Bump dotnet/sdk from 7.0 to 8.0 in /src/LocalAgent (#387) 2024-02-21 15:48:25 -05:00
tests
tools/generate many services
.dockerignore
.gitignore
.pre-commit-config.yaml [StepSecurity] Apply security best practices (#357) 2024-02-01 13:49:47 -05:00
CHANGELOG.md
CODEOWNERS
CODE_OF_CONDUCT.md
CONTRIBUTING.md
CodeMaid.config
LICENSE.txt
NOTICE.txt
NuGet.config
PolicheckExclusion.xml
README.md
SECURITY.md
SUPPORT.md
azure-pipelines.yml
build-pipelines-PR.yml
cgmanifest.json

README.md

Bridge to Kubernetes

Build Status

CodeQL

Welcome to Bridge-To-Kubernetes! Bridge to Kubernetes extends the Kubernetes perimeter to your development computer allowing you to write, test, and debug microservice code while connected to your Kubernetes cluster with the rest of your application or services.You can simplyrunyour code natively on your development workstation while connected to the Kubernetes cluster, allowingyou to test your code changes in the context of the larger application.

Introduction Video

https://learn.microsoft.com/en-us/shows/open-at-microsoft/get-started-with-bridge-to-kubernetes

image002

Key Features:

Simplifying Microservice Development

  • Eliminate the need to manually source, configure and compile external dependencies on your development computer.

Easy Debugging

  • Run your usual debug profile with the added cluster configuration. You can debug your code as you normally would while taking advantage of the speed and flexibility of local debugging.

Developing and Testing End-to-End

  • Test end-to-end during development time. Select an existing service in the cluster to route to your development machine where an instance of that service is running locally. Request initiated through the frontend of the application running in Kubernetes will route between services running in the cluster until the service you specified to redirect is called.

Documentation

CLI tool installation

  • curl -fsSL https://raw.githubusercontent.com/Azure/Bridge-To-Kubernetes/main/scripts/install.sh | bash
  • Supports Linux, Darwin, Windows - use WSL (installation link here) or Git Bash (installation link here)

How to use the CLI

  • run the following command dsc connect --service <service-name> --local-port <port-number> --namespace <namespace> --use-kubernetes-service-environment-variables
  • example is dsc connect --service stats-api --local-port 3001 --namespace todo-app
  • for help dsc --help
  • for version dsc --version

Microsoft Open Source Code of Conduct

This project has adopted the Microsoft Open Source Code of Conduct

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow [Microsofts Trademark & Brand Guidelines] (https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks). Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-partys policies.

Security Reporting Guidance

Checkout the SECURITY.md file in this repo for details.

Data Collection

The software may collect information about you and your use of the software and send it to Microsoft. Microsoft may use this information to provide services and improve our products and services. You may turn off the telemetry as described in the repository. There are also some features in the software that may enable you and Microsoft to collect data from users of your applications. If you use these features, you must comply with applicable law, including providing appropriate notices to users of your applications together with a copy of Microsofts privacy statement. Our privacy statement is located at https://go.microsoft.com/fwlink/?LinkID=824704. You can learn more about data collection and use in the help documentation and our privacy statement. Your use of the software operates as your consent to these practices.

Support

Bridge to Kubernetes is an open source project that is not covered by the Microsoft Azure support policy. Please search open issues here, and if your issue isn't already represented please open a new one. The project maintainers will respond to the best of their abilities and triage the most urgent bugs.