Răsfoiți Sursa

更新 'deploy-tmp.yaml'

duyangang 1 an în urmă
părinte
comite
3f17c50844
1 a modificat fișierele cu 6 adăugiri și 4 ștergeri
  1. 6 4
      deploy-tmp.yaml

+ 6 - 4
deploy-tmp.yaml

@@ -79,14 +79,16 @@ kind: Ingress
 metadata:
   name: $DRONE_REPO_NAME-ingress
   namespace: $JNLP_ENV
-  annotations:
-    kubernetes.io/ingress.class: $JNLP_INGRESS
 spec:
   rules:
     - host: $JNLP_ENV-$DRONE_REPO_NAME$JNLP_DOMAIN
       http:
         paths:
           - path: /
+            pathType: Prefix
             backend:
-              serviceName: $DRONE_REPO_NAME-svc
-              servicePort: $JNLP_CONTAINER_PORT
+              service:
+                name: $DRONE_REPO_NAME-svc
+                port: 
+                  number: $JNLP_CONTAINER_PORT
+  ingressClassName: nginx