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 53 54 55 56 57 58 59
| --- apiVersion: apps/v1 kind: Deployment metadata: name: gpt namespace: <namespace> spec: replicas: 1 selector: matchLabels: app: gpt template: metadata: labels: app: gpt spec: nodeSelector: flag: <node-tag> terminationGracePeriodSeconds: 10 containers: - name: gpt image: yidadaa/chatgpt-next-web imagePullPolicy: Always env: - name: OPENAI_API_KEY value: <api-key> - name: CODE value: <password1,password2,password3> ports: - containerPort: 3000 name: web protocol: TCP resources: limits: cpu: 1000m memory: 1Gi requests: cpu: 500m memory: 512Mi securityContext: runAsUser: 0
--- apiVersion: v1 kind: Service metadata: name: gpt namespace: star labels: app: gpt spec: selector: app: gpt type: ClusterIP ports: - name: web port: 3000 targetPort: 3000
|