forked from Azure-Samples/aks-store-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathai-service.yaml
More file actions
52 lines (52 loc) · 1.22 KB
/
ai-service.yaml
File metadata and controls
52 lines (52 loc) · 1.22 KB
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
50
51
52
apiVersion: apps/v1
kind: Deployment
metadata:
name: ai-service
spec:
replicas: 1
selector:
matchLabels:
app: ai-service
template:
metadata:
labels:
app: ai-service
azure.workload.identity/use: "true"
spec:
serviceAccountName: ai-service-account
nodeSelector:
"kubernetes.io/os": linux
containers:
- name: order-service
image: acraksstoredemo.azurecr.io/aksstoredemo:v1
ports:
- containerPort: 5001
env:
- name: USE_AZURE_OPENAI # set to True for Azure OpenAI, False for Public OpenAI
value: "True"
- name: USE_AZURE_AD
value: "True"
- name: AZURE_OPENAI_DEPLOYMENT_NAME # required if using Azure OpenAI
value: "my-gpt-model"
- name: AZURE_OPENAI_ENDPOINT # required if using Azure OpenAI
value: "https://oai-dev-cls.openai.azure.com/"
resources:
requests:
cpu: 20m
memory: 46Mi
limits:
cpu: 80m
memory: 1024Mi
---
apiVersion: v1
kind: Service
metadata:
name: ai-service
spec:
type: ClusterIP
ports:
- name: http
port: 5001
targetPort: 5001
selector:
app: ai-service