Kubernetes/File/Yaml/chatgpt-pandora.yaml
offends 7a2f41e7d6
All checks were successful
continuous-integration/drone Build is passing
synchronization
2024-08-07 18:54:39 +08:00

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