-
-
Save pbolduc/557f326f21a081fc70e4f3d0cea83597 to your computer and use it in GitHub Desktop.
Kubernetes manifest for dotnet-monitor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This Deployment manifest defines: | |
# - single-replica deployment of the container image, with label "app: dotnet-hello-world" | |
# - Pod exposes port 8080 | |
# - specify PORT environment variable to the container process | |
# Syntax reference https://kubernetes.io/docs/concepts/configuration/overview/ | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: dotnet-hello-world | |
spec: | |
replicas: 2 | |
selector: | |
matchLabels: | |
app: dotnet-hello-world | |
template: | |
metadata: | |
annotations: | |
prometheus.io/scrape: 'true' | |
prometheus.io/port: "52325" | |
labels: | |
app: dotnet-hello-world | |
spec: | |
volumes: | |
- name: diagnostics | |
emptyDir: {} | |
containers: | |
- name: server | |
image: mcr.microsoft.com/dotnet/core/samples:aspnetapp | |
ports: | |
- containerPort: 80 | |
volumeMounts: | |
- mountPath: /tmp | |
name: diagnostics | |
- name: sidecar | |
image: mcr.microsoft.com/dotnet/nightly/monitor | |
ports: | |
- containerPort: 52325 | |
args: ["--urls", "http://*:52323", "--metricUrls", "http://*:52325"] | |
volumeMounts: | |
- name: diagnostics | |
mountPath: /tmp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment