Germey 5 anni fa
parent
commit
2d26b90f60
2 ha cambiato i file con 27 aggiunte e 2 eliminazioni
  1. 5 2
      deployment.yml
  2. 22 0
      ingress.yml

+ 5 - 2
deployment.yml

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