123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- name: diagnosis
- namespace: dev
- labels:
- app: appointment
- spec:
- replicas: 1
- revisionHistoryLimit: 10
- selector:
- matchLabels:
- app: diagnosis
- strategy:
- rollingUpdate:
- maxSurge: 1
- maxUnavailable: 0
- type: RollingUpdate
- template:
- metadata:
- labels:
- app: diagnosis
- spec:
- containers:
- - args:
- - --spring.profiles.active=dev
- image: yaoxiang/diagnosis:${date}
- imagePullPolicy: IfNotPresent
- name: diagnosis
- ports:
- - containerPort: 8080
- name: 8080tcp01
- protocol: TCP
- ---
- apiVersion: v1
- kind: Service
- metadata:
- name: diagnosis
- namespace: dev
- labels:
- app: diagnosis
- spec:
- selector:
- app: diagnosis
- type: ClusterIP
- ports:
- - port: 8080
- targetPort: 8080
- name: "http"
- protocol: TCP
|