trainsys-provider-trainsys-k8s.yaml 844 字节
---
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