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