-
Notifications
You must be signed in to change notification settings - Fork 17
/
demoapi.yaml
49 lines (49 loc) · 1.13 KB
/
demoapi.yaml
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
apiVersion: "v1"
kind: Service
metadata:
name: aadpodidentitydemoapisvc
labels:
name: aadpodidentitydemoapisvc
app: aadpodidentitydemoapi
spec:
selector:
name: aadpodidentitydemoapibackend
app: aadpodidentitydemoapi
type: LoadBalancer
ports:
- port: 80
name: http
targetPort: 80
protocol: TCP
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: aadpodidentitydemoapibackend
spec:
replicas: 3
minReadySeconds: 5
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
template:
metadata:
labels:
name: aadpodidentitydemoapibackend
app: aadpodidentitydemoapi
aadpodidbinding: azureidentitydemo
spec:
containers:
- name: aadpodidentitydemoapi
image: anmock.azurecr.io/aadpodidentitydemoapi:1.0
env:
- name: KeyVault__BaseUrl
value: "<your keyvault url e.g.: https://myvault.vault.azure.net>"
ports:
- containerPort: 80
name: http
protocol: TCP
imagePullSecrets:
- name: <your docker-registry secret>