| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
 | | --- |  | apiVersion: apps/v1 |  | kind: Deployment |  | metadata: |  |   name: service-zuul |  | spec: |  |   selector: |  |     matchLabels: |  |       app: springcloud-service-zuul |  |   |  |   replicas: 1 |  |   |  |   template: |  |     metadata: |  |       labels: |  |         app: springcloud-service-zuul |  |     spec: |  |       containers: |  |        - name: service-zuul-instance |  |          image: registry.cn-hangzhou.aliyuncs.com/magiclian/service-zuul:v3 |  |          env: |  |          - name: EUREKA_URL |  |            value: eureka-server |  |          ports: |  |          - containerPort: 8762 |  |   |  |   |  | --- |  | kind: Service |  | apiVersion: v1 |  | metadata: |  |   name: service-zuul |  | spec: |  |   selector: |  |     app: springcloud-service-zuul |  |   ports: |  |   - protocol: TCP |  |     port: 8762 |  |     targetPort: 8762 |  |   type: NodePort | 
 |