Germey 5 年之前
父節點
當前提交
2d26b90f60
共有 2 個文件被更改,包括 27 次插入2 次删除
  1. 5 2
      deployment.yml
  2. 22 0
      ingress.yml

+ 5 - 2
deployment.yml

@@ -59,6 +59,7 @@ items:
       namespace: proxypool
     spec:
       replicas: 1
+      revisionHistoryLimit: 0
       strategy: {}
       template:
         metadata:
@@ -73,6 +74,8 @@ items:
             - env:
                 - name: REDIS_HOST
                   value: redis
+                - name: REDIS_PORT
+                  value: 6379
               image: germey/proxypool:${TAG}
               name: proxypool
               ports:
@@ -93,6 +96,7 @@ items:
       namespace: proxypool
     spec:
       replicas: 1
+      revisionHistoryLimit: 0
       strategy: {}
       template:
         metadata:
@@ -114,5 +118,4 @@ items:
           restartPolicy: Always
     status: {}
 kind: List
-metadata: {}
-
+metadata: {}

+ 22 - 0
ingress.yml

@@ -0,0 +1,22 @@
+---
+apiVersion: networking.k8s.io/v1beta1
+kind: Ingress
+metadata:
+  name: ingress-universal-proxypool
+  namespace: proxypool
+  annotations:
+    nginx.ingress.kubernetes.io/ssl-redirect: "true"
+    nginx.ingress.kubernetes.io/rewrite-target: /
+spec:
+  tls:
+    - hosts:
+        - universal.proxypool.cuiqingcai.com
+      secretName: tls-proxypool-cuiqingcai-com
+  rules:
+    - host: universal.proxypool.cuiqingcai.com
+      http:
+        paths:
+          - backend:
+              serviceName: proxypool
+              servicePort: 5555
+            path: /