Pu Zhibing
2025-02-27 f0a9a41697a8568e8b3bd3436c450e68b3298916
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
41
42
43
44
45
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: service-auth
spec:
  selector:
    matchLabels:
      app: springcloud-service-auth
 
  replicas: 2
 
  template:
    metadata:
      labels:
        app: springcloud-service-auth
    spec:
      containers:
       - name: service-auth-instance
         image: registry.cn-chengdu.aliyuncs.com/panzhihua/service-auth:v1
         imagePullPolicy: Always
         env:
         - name: EUREKA_URL
           value: eureka-server
         - name: CONFIG_URL
           value: config-server
         ports:
         - containerPort: 8191
      imagePullSecrets:
        - name: hhf
 
 
---
kind: Service
apiVersion: v1
metadata:
  name: service-auth
spec:
  selector:
    app: springcloud-service-auth
  ports:
  - protocol: TCP
    port: 8191
    targetPort: 8191
  #type: NodePort