51 lines
933 B
YAML
51 lines
933 B
YAML
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 |