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
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: trainsys-provider
labels:
app: trainsys-provider
spec:
replicas: 1
selector:
matchLabels:
app: trainsys-provider
template:
metadata:
labels:
app: trainsys-provider
spec:
imagePullSecrets:
- name: aly-shanghai
containers:
- name: trainsys-provider
image: registry.cn-shanghai.aliyuncs.com/ibizsys/trainsys-provider:latest
imagePullPolicy: Always
ports:
- containerPort: 8081
---
apiVersion: v1
kind: Service
metadata:
name: trainsys-provider
labels:
app: trainsys-provider
spec:
type: NodePort
ports:
- name: http
port: 8081
targetPort: 8081
nodePort: 8081
protocol: TCP
selector:
app: trainsys-provider