2018-11-16 17:38:22 +03:00
|
|
|
#######################################################
|
|
|
|
# API #
|
|
|
|
#######################################################
|
|
|
|
|
2018-11-15 11:48:26 +03:00
|
|
|
apiVersion: apps/v1beta1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
2018-11-16 17:38:22 +03:00
|
|
|
name: contosomaintenance-api
|
2018-11-15 11:48:26 +03:00
|
|
|
spec:
|
2018-11-16 17:38:22 +03:00
|
|
|
replicas: 3
|
2018-11-15 11:48:26 +03:00
|
|
|
strategy:
|
|
|
|
rollingUpdate:
|
|
|
|
maxSurge: 1
|
|
|
|
maxUnavailable: 1
|
|
|
|
minReadySeconds: 5
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
2018-11-16 17:38:22 +03:00
|
|
|
app: contosomaintenance-api
|
2018-11-15 11:48:26 +03:00
|
|
|
spec:
|
|
|
|
containers:
|
2018-11-16 17:38:22 +03:00
|
|
|
- name: contosomaintenance-api
|
|
|
|
image: robinmanuelthiel/contosomaintenance-api
|
|
|
|
env:
|
|
|
|
- name: AzureCosmosDb__Endpoint
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: appsettings
|
2019-01-09 20:40:48 +03:00
|
|
|
key: AzureCosmosDb__Endpoint
|
2018-11-16 17:38:22 +03:00
|
|
|
- name: AzureCosmosDb__Key
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: appsettings
|
2019-01-09 20:40:48 +03:00
|
|
|
key: AzureCosmosDb__Key
|
|
|
|
- name: AzureStorage__StorageAccountName
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: appsettings
|
|
|
|
key: AzureStorage__StorageAccountName
|
|
|
|
- name: AzureStorage__Key
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: appsettings
|
|
|
|
key: AzureStorage__Key
|
|
|
|
- name: ActiveDirectory__Tenant
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: appsettings
|
|
|
|
key: ActiveDirectory__Tenant
|
|
|
|
- name: ActiveDirectory__ApplicationId
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: appsettings
|
|
|
|
key: ActiveDirectory__ApplicationId
|
|
|
|
- name: ActiveDirectory__SignUpSignInPolicy
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: appsettings
|
|
|
|
key: ActiveDirectory__SignUpSignInPolicy
|
|
|
|
- name: ApplicationInsights__InstrumentationKey
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: appsettings
|
|
|
|
key: ApplicationInsights__InstrumentationKey
|
2018-11-16 17:38:22 +03:00
|
|
|
ports:
|
2018-11-15 11:48:26 +03:00
|
|
|
- containerPort: 80
|
2018-11-16 17:38:22 +03:00
|
|
|
- containerPort: 443
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
memory: "64Mi"
|
|
|
|
cpu: "250m"
|
|
|
|
limits:
|
|
|
|
memory: "128Mi"
|
|
|
|
cpu: "500m"
|
2018-11-15 11:48:26 +03:00
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
2018-11-16 17:38:22 +03:00
|
|
|
name: contosomaintenance-api
|
2018-11-15 11:48:26 +03:00
|
|
|
spec:
|
|
|
|
type: LoadBalancer
|
|
|
|
ports:
|
2018-11-16 17:38:22 +03:00
|
|
|
- name: http
|
|
|
|
port: 80
|
|
|
|
- name: https
|
|
|
|
port: 443
|
2018-11-15 11:48:26 +03:00
|
|
|
selector:
|
2018-11-16 17:38:22 +03:00
|
|
|
app: contosomaintenance-api
|
|
|
|
---
|
|
|
|
|
|
|
|
#######################################################
|
|
|
|
# Chatbot #
|
|
|
|
#######################################################
|
|
|
|
|
|
|
|
apiVersion: apps/v1beta1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: contosomaintenance-bot
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
strategy:
|
|
|
|
rollingUpdate:
|
|
|
|
maxSurge: 1
|
|
|
|
maxUnavailable: 1
|
|
|
|
minReadySeconds: 5
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: contosomaintenance-bot
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: contosomaintenance-bot
|
|
|
|
image: robinmanuelthiel/contosomaintenance-bot
|
|
|
|
ports:
|
|
|
|
- containerPort: 80
|
|
|
|
- containerPort: 443
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
memory: "64Mi"
|
|
|
|
cpu: "250m"
|
|
|
|
limits:
|
|
|
|
memory: "128Mi"
|
|
|
|
cpu: "500m"
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: contosomaintenance-bot
|
|
|
|
spec:
|
|
|
|
type: LoadBalancer
|
|
|
|
ports:
|
|
|
|
- name: http
|
|
|
|
port: 80
|
|
|
|
- name: https
|
|
|
|
port: 443
|
|
|
|
selector:
|
|
|
|
app: contosomaintenance-bot
|