From 142759ac50d6689eed1742a0097b48a143f31532 Mon Sep 17 00:00:00 2001 From: ChenZhaoYu <790348264@qq.com> Date: Fri, 31 Mar 2023 11:53:10 +0800 Subject: [PATCH] chore: lint fix --- kubernetes/deploy.yaml | 46 ++++++++++++++++++++--------------------- kubernetes/ingress.yaml | 24 ++++++++++----------- 2 files changed, 35 insertions(+), 35 deletions(-) diff --git a/kubernetes/deploy.yaml b/kubernetes/deploy.yaml index 25273b5..db706b8 100644 --- a/kubernetes/deploy.yaml +++ b/kubernetes/deploy.yaml @@ -21,26 +21,26 @@ spec: name: chatgpt-web imagePullPolicy: Always ports: - - containerPort: 3002 + - containerPort: 3002 env: - - name: OPENAI_API_KEY - value: sk-xxx - - name: OPENAI_API_BASE_URL - value: "https://api.openai.com" - - name: OPENAI_API_MODEL - value: gpt-3.5-turbo - - name: API_REVERSE_PROXY - value: https://bypass.duti.tech/api/conversation - - name: AUTH_SECRET_KEY - value: '123456' - - name: TIMEOUT_MS - value: '60000' - - name: SOCKS_PROXY_HOST - value: '' - - name: SOCKS_PROXY_PORT - value: '' - - name: HTTPS_PROXY - value: '' + - name: OPENAI_API_KEY + value: sk-xxx + - name: OPENAI_API_BASE_URL + value: 'https://api.openai.com' + - name: OPENAI_API_MODEL + value: gpt-3.5-turbo + - name: API_REVERSE_PROXY + value: https://bypass.duti.tech/api/conversation + - name: AUTH_SECRET_KEY + value: '123456' + - name: TIMEOUT_MS + value: '60000' + - name: SOCKS_PROXY_HOST + value: '' + - name: SOCKS_PROXY_PORT + value: '' + - name: HTTPS_PROXY + value: '' resources: limits: cpu: 500m @@ -57,10 +57,10 @@ metadata: name: chatgpt-web spec: ports: - - name: chatgpt-web - port: 3002 - protocol: TCP - targetPort: 3002 + - name: chatgpt-web + port: 3002 + protocol: TCP + targetPort: 3002 selector: app: chatgpt-web type: ClusterIP diff --git a/kubernetes/ingress.yaml b/kubernetes/ingress.yaml index d5355c0..bed8dfd 100644 --- a/kubernetes/ingress.yaml +++ b/kubernetes/ingress.yaml @@ -3,19 +3,19 @@ kind: Ingress metadata: annotations: kubernetes.io/ingress.class: nginx - nginx.ingress.kubernetes.io/proxy-connect-timeout: "5" + nginx.ingress.kubernetes.io/proxy-connect-timeout: '5' name: chatgpt-web spec: rules: - - host: chatgpt.example.com - http: - paths: - - backend: - service: - name: chatgpt-web - port: - number: 3002 - path: / - pathType: ImplementationSpecific + - host: chatgpt.example.com + http: + paths: + - backend: + service: + name: chatgpt-web + port: + number: 3002 + path: / + pathType: ImplementationSpecific tls: - - secretName: chatgpt-web-tls + - secretName: chatgpt-web-tls