-
Notifications
You must be signed in to change notification settings - Fork 59
Expand file tree
/
Copy pathk8s.yaml
More file actions
28 lines (28 loc) · 831 Bytes
/
k8s.yaml
File metadata and controls
28 lines (28 loc) · 831 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
apiVersion: apps/v1
kind: Deployment
metadata:
name: ai-k8s-app-deployment
namespace: ai-k8s-demo # Change to your namespace
labels:
app: ai-k8s-app
spec:
replicas: 1
selector:
matchLabels:
app: ai-k8s-app
template:
metadata:
labels:
app: ai-k8s-app
spec:
containers:
- name: ai-k8s-app
image: container_registry_account/ai-k8s-app:latest # Your container registry account
env:
- name: APPLICATIONINSIGHTS_CONNECTION_STRING
valueFrom:
secretKeyRef:
name: app-env-secret # Matches your secret name
key: appinsights-connection-string # matches the key of the secret data
- name: ASPNETCORE_HOSTINGSTARTUPASSEMBLIES
value: Microsoft.ApplicationInsights.Kubernetes.HostingStartup