/dotnet-bridge-sample

[WIP] Sample .NET Application with Bridge for Kubernetes

Primary LanguageCSSMIT LicenseMIT

🛠️ Bridge to Kubernetes

This repository provides a quick-start sample application that combines an ASP.NET Core Web API backend with a Blazor Web App frontend, designed for testing with Bridge for Kubernetes. Optimized for Dev Containers, it includes a set of Makefile targets to simplify the setup process. With these targets, you can easily set up a local Kubernetes cluster, build and upload container images, and deploy the application, making it straightforward to get started with your testing and debugging.

Architecture

Getting Started

# Provsion the local Kubernetes cluster
kind create cluster

# Build the .NET application Docker images
make build

# Upload Docker images to the Kubernetes nodes
make upload

# Apply Kustomize overlays and deploy Kubernetes manifests
make apply

# Set current context to specific namespace
make set
# List and watch Kubernetes resources
make list

# Display all container logs
make logs

Follow the Use Bridge to Kubernetes (VS Code) tutorial.

Set tasks.json variable useKubernetesServiceEnvironmentVariables to true

Tools