Introduction
Kubernetes upgrades are rarely difficult because of the version change alone. The real challenge is discovering what the application, container image, deployment manifests, admission controllers, observability stack, and infrastructure integrations expect from the cluster.
For .NET applications, an upgrade should therefore be treated as a compatibility exercise, not simply a control-plane operation.
Kubernetes 1.34 was released in August 2025 and introduced 58 enhancements across stable, beta, and alpha stages. The 1.34 release series is scheduled to enter maintenance mode on August 27, 2026, with end of life on October 27, 2026.
That makes compatibility testing especially relevant for teams still running applications on Kubernetes 1.33 or earlier and planning their upgrade path.
The key question is not:
"Will my .NET container start on Kubernetes 1.34?"
It is:
"Will my complete .NET workload behave correctly after the cluster upgrade?"
This article presents a practical compatibility-testing strategy for .NET applications before moving to Kubernetes 1.34.
What Can Break During a Kubernetes Upgrade?
A .NET application does not communicate only with Kubernetes itself.
A typical production deployment looks more like this:
Kubernetes Cluster
|
+----------------+----------------+
| | |
Ingress Service Config
| | |
+----------------+----------------+
|
Pod
|
ASP.NET Core
|
+------------+------------+
| | |
.NET SDK Secrets ConfigMap
|
ContainerCompatibility problems can therefore appear in several places:
Kubernetes API versions
Deployment manifests
Ingress configuration
Service behavior
Probes
Resource limits
Security contexts
Admission webhooks
Container runtime behavior
CSI storage integrations
Network plugins
Monitoring agents
Logging agents
Helm charts
Operators
Custom Resource Definitions
.NET container images
The application may compile successfully and still fail after deployment.
Start With the Current Cluster Inventory
Before testing Kubernetes 1.34, document the current environment.
For example:
kubectl version
kubectl get nodes -o wide
kubectl get pods -A
kubectl get crd
kubectl get validatingwebhookconfigurations
kubectl get mutatingwebhookconfigurationsAlso inspect the workloads:
kubectl get deployments -A
kubectl get statefulsets -A
kubectl get daemonsets -AFor a .NET application, record at least:
| Component | Current Value |
|---|---|
| Kubernetes version | Current production version |
| .NET runtime | 8/9/10/etc. |
| Container base image | Linux distribution + version |
| CPU request | Application-specific |
| Memory request | Application-specific |
| CPU limit | Application-specific |
| Memory limit | Application-specific |
| Ingress controller | Current version |
| CSI driver | Current version |
| Observability agent | Current version |
| Helm chart | Current version |
This inventory becomes the baseline for the compatibility test.
Understand Kubernetes Version Skew
Kubernetes does not require every component to change simultaneously.
The Kubernetes version-skew policy defines supported relationships between components. For example, kubelet must not be newer than kube-apiserver, while it can be several minor versions older within the documented limits. kubectl is supported within one minor version of the API server.
For an upgrade from Kubernetes 1.33 to 1.34, this means you should test the upgrade order rather than independently upgrading random components.
A simplified sequence is:
Current Cluster
|
v
Upgrade Control Plane
|
v
Validate API + Controllers
|
v
Upgrade Worker Nodes
|
v
Validate .NET Workloads
|
v
ProductionThe exact procedure depends on how the cluster is managed.
Build a Kubernetes 1.34 Test Environment
The safest approach is to create a representative non-production environment.
It should resemble production in the areas that affect application behavior:
Production
|
+-- .NET version
+-- Container image
+-- Kubernetes manifests
+-- Ingress
+-- Secrets
+-- ConfigMaps
+-- Storage
+-- Network policies
+-- Observability
+-- AutoscalingAvoid creating a test cluster that contains only the basic Deployment and Service.
That may prove that the container starts, but it does not provide meaningful compatibility evidence.
Test the .NET Container Independently
Before testing Kubernetes behavior, verify the application image itself.
A simple Dockerfile might look like:
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS base
WORKDIR /app
EXPOSE 8080
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
WORKDIR /src
COPY ["MyApi/MyApi.csproj", "MyApi/"]
RUN dotnet restore "MyApi/MyApi.csproj"
COPY . .
WORKDIR "/src/MyApi"
RUN dotnet publish \
"MyApi.csproj" \
-c Release \
-o /app/publish \
/p:UseAppHost=false
FROM base AS final
WORKDIR /app
COPY --from=build /app/publish .
ENTRYPOINT ["dotnet", "MyApi.dll"]Test the image outside Kubernetes:
docker build -t myapi:test .
docker run --rm -p 8080:8080 myapi:testThen verify:
curl http://localhost:8080/healthThis separates container problems from Kubernetes problems.
Test the Kubernetes Deployment
A basic ASP.NET Core deployment could look like:
apiVersion: apps/v1
kind: Deployment
metadata:
name: myapi
spec:
replicas: 3
selector:
matchLabels:
app: myapi
template:
metadata:
labels:
app: myapi
spec:
containers:
- name: myapi
image: myapi:test
ports:
- containerPort: 8080
resources:
requests:
cpu: "250m"
memory: "256Mi"
limits:
cpu: "1"
memory: "512Mi"
readinessProbe:
httpGet:
path: /health/ready
port: 8080
initialDelaySeconds: 5
periodSeconds: 10
livenessProbe:
httpGet:
path: /health/live
port: 8080
initialDelaySeconds: 15
periodSeconds: 20Apply it to the test cluster:
kubectl apply -f deployment.yamlThen inspect:
kubectl get pods
kubectl describe pod <pod-name>
kubectl logs <pod-name>The important point is to test the application exactly as production deploys it.
Validate Kubernetes API Usage
One of the most important upgrade checks is API compatibility.
Search deployment repositories for:
apiVersion:For example:
apiVersion: apps/v1
kind: DeploymentReview:
Deployment
StatefulSet
DaemonSet
Ingress
CronJob
Role
RoleBinding
NetworkPolicy
PodDisruptionBudget
Custom resources
A .NET application may not directly use these APIs from C#, but its deployment infrastructure certainly does.
An API removal can therefore break deployment without changing a single line of C#.
Test Ingress Behavior
ASP.NET Core applications commonly sit behind an ingress layer.
Test:
Client
|
v
Ingress
|
v
Service
|
v
ASP.NET Core PodValidate:
HTTP routing
HTTPS termination
TLS certificates
Path rewriting
Headers
WebSocket connections
Request body limits
Timeouts
Client IP forwarding
For applications using authentication, specifically test:
Authorization header
Cookie
X-Forwarded-For
X-Forwarded-Proto
HostA cluster upgrade can expose assumptions in proxy configuration that were not visible during normal application testing.
Validate ASP.NET Core Forwarded Headers
If your application relies on forwarded headers, make sure the configuration is explicitly tested.
For example:
using Microsoft.AspNetCore.HttpOverrides;
var builder = WebApplication.CreateBuilder(args);
builder.Services.Configure<ForwardedHeadersOptions>(options =>
{
options.ForwardedHeaders =
ForwardedHeaders.XForwardedFor |
ForwardedHeaders.XForwardedProto;
});
var app = builder.Build();
app.UseForwardedHeaders();
app.UseHttpsRedirection();
app.MapControllers();
app.Run();This matters when application behavior depends on whether the original request was HTTP or HTTPS.
Authentication redirects, generated URLs, logging, and security policies can all be affected.
Test Health Probes
Health checks are especially important during node and pod transitions.
A basic ASP.NET Core setup might expose:
app.MapHealthChecks("/health/live");
app.MapHealthChecks("/health/ready");Treat the two endpoints differently.
Liveness
Liveness should answer:
Is this process fundamentally alive?
Readiness
Readiness should answer:
Can this instance currently receive application traffic?
A readiness check might include dependencies such as a database or message broker, while liveness generally should not fail merely because an external dependency is temporarily unavailable.
This distinction becomes important during rolling upgrades.
Test Rolling Deployments
Run an actual rolling deployment in the Kubernetes 1.34 environment.
For example:
kubectl rollout status deployment/myapiThen monitor:
kubectl get pods -wValidate that:
Old Pod
|
v
Traffic continues
|
v
New Pod becomes Ready
|
v
Traffic moves
|
v
Old Pod terminatesThe test should verify that there is no unacceptable interruption.
Test Resource Behavior
Kubernetes upgrades can expose resource assumptions.
For a .NET application, test:
CPU throttling
Memory limits
Garbage collection behavior
Container startup time
OOM termination
Pod eviction
Horizontal scaling
Inspect resource behavior with:
kubectl top pods
kubectl top nodesDo not rely only on whether the application remains "Running."
A pod can be technically healthy while experiencing severe CPU throttling or memory pressure.
Test Autoscaling
If the application uses Horizontal Pod Autoscaling, reproduce a realistic workload.
For example:
kubectl get hpaThen generate controlled traffic and observe:
Traffic
|
v
CPU / Memory / Custom Metric
|
v
HPA
|
v
Replica CountMeasure:
Scale-up time
Scale-down time
Maximum replicas
Request latency during scaling
Startup time of new .NET containers
The application startup path matters because a slow .NET container can create a larger gap between scaling decisions and usable capacity.
Test Graceful Shutdown
Rolling upgrades depend on applications shutting down correctly.
Join the conversation! Your thoughts help the community grow.