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: applets
spec:
  selector:
    matchLabels:
      app: springcloud-applets
 
  replicas: 2
 
  template:
    metadata:
      labels:
        app: springcloud-applets
    spec:
      containers:
        - name: applets-instance
          image: registry.cn-chengdu.aliyuncs.com/panzhihua/applets:v1
          imagePullPolicy: Always
          env:
            - name: EUREKA_URL
              value: eureka-server
            - name: CONFIG_URL
              value: config-server
          ports:
            - containerPort: 8195
      imagePullSecrets:
        - name: hhf
 
 
---
kind: Service
apiVersion: v1
metadata:
  name: service-applets
spec:
  selector:
    app: springcloud-applets
  ports:
    - protocol: TCP
      port: 8195
      targetPort: 8195
  #type: NodePort