浏览代码

version:v6.0.4

alair 4 月之前
父节点
当前提交
00ed22e911
共有 1 个文件被更改,包括 20 次插入1 次删除
  1. 20 1
      pipeline.yaml

+ 20 - 1
pipeline.yaml

@@ -17,7 +17,7 @@ spec:
     spec:
       containers:
         - name: pipleline
-          image: 192.168.0.5:9080/repo/pipeline:v6.0.4
+          image: 192.168.0.5:9080/repo/pipeline:v6.0.3
           imagePullPolicy: Always
           ports:
             - containerPort: 8080
@@ -36,3 +36,22 @@ spec:
   - port: 18081
     targetPort: 8080
   type: ClusterIP
+---
+apiVersion: networking.k8s.io/v1
+kind: Ingress
+metadata:
+  name: pipeline
+  namespace: test
+spec:
+  ingressClassName: traefik
+  rules:
+    - host: pipeline.autumn.com
+      http:
+        paths:
+          - path: /
+            pathType: Prefix
+            backend:
+              service:
+                name: pipleline
+                port:
+                  number: 18081