forked from ChatGPTNextWeb/NextChat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeployment.yml
45 lines (45 loc) · 1.16 KB
/
deployment.yml
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
---
apiVersion: v1
kind: Service
metadata:
name: "{{ chatgpt_next_web.project_name }}"
labels:
app: "{{ chatgpt_next_web.project_name }}"
annotations:
alb.ingress.kubernetes.io/healthcheck-path: /chat-with-docs-api/health
alb.ingress.kubernetes.io/healthcheck-port: '3000'
spec:
type: NodePort
ports:
- port: 3000
targetPort: 3000
selector:
app: "{{ chatgpt_next_web.project_name }}"
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: "{{ chatgpt_next_web.project_name }}"
labels:
app: "{{ chatgpt_next_web.project_name }}"
spec:
replicas: 1
selector:
matchLabels:
app: "{{ chatgpt_next_web.project_name }}"
template:
metadata:
labels:
app: "{{ chatgpt_next_web.project_name }}"
spec:
containers:
- name: "{{ chatgpt_next_web.project_name }}"
image: "{{ chatgpt_next_web.main_docker_image }}"
imagePullPolicy: Always
ports:
- containerPort: 3000
envFrom:
- configMapRef:
name: "{{ chatgpt_next_web.project_name }}"
- secretRef:
name: "{{ chatgpt_next_web.project_name }}"