瀏覽代碼

更新 'deploy-tmp.yaml'

duyangang 1 年之前
父節點
當前提交
3f17c50844
共有 1 個文件被更改,包括 6 次插入4 次删除
  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