synchronization
This commit is contained in:
51
File/Yaml/chatgpt-pandora.yaml
Normal file
51
File/Yaml/chatgpt-pandora.yaml
Normal file
@@ -0,0 +1,51 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: chatgpt
|
||||
labels:
|
||||
name: chatgpt
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: chatgpt-pandora
|
||||
namespace: chatgpt
|
||||
labels:
|
||||
app: chatgpt-pandora
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: chatgpt-web
|
||||
replicas: 1
|
||||
strategy:
|
||||
type: RollingUpdate
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: chatgpt-web
|
||||
spec:
|
||||
containers:
|
||||
- name: chatgpt-pandora
|
||||
image: 'pengzhile/pandora:latest'
|
||||
ports:
|
||||
- name: chatgpt-80
|
||||
containerPort: 80
|
||||
protocol: TCP
|
||||
env:
|
||||
- name: PANDORA_SERVER
|
||||
value: '0.0.0.0:80'
|
||||
- name: PANDORA_CLOUD
|
||||
value: cloud
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: chatgpt-web
|
||||
namespace: chatgpt
|
||||
spec:
|
||||
selector:
|
||||
app: chatgpt-web
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 80
|
||||
targetPort: 80
|
Reference in New Issue
Block a user