Limit memory and CPU for an app.
kubectl apply -f https://raw.githubusercontent.com/richlander/dotnet-k8s/main/resource-limits/resource-limits.yaml
Apply the local file if you've cloned the repo.
kubectl apply -f resource-limits.yaml
See resource limits for the deployment.
kubectl describe deployment
Create a proxy to the service.
kubectl port-forward service/hello-dotnet 8080:80
View the sample app at http://localhost:8080/ or call curl http://localhost:8080/Environment
.
Resources can be deleted using the following pattern:
kubectrl delete -f https://raw.githubusercontent.com/richlander/dotnet-k8s/main/resource-limits/resource-limits.yaml