|
@@ -1,15 +1,16 @@
|
|
apiVersion: apps/v1
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
kind: Deployment
|
|
metadata:
|
|
metadata:
|
|
- name: frontend
|
|
|
|
|
|
+ name: diagnosis-frontend
|
|
namespace: prod
|
|
namespace: prod
|
|
|
|
+ labels:
|
|
|
|
+ app: diagnosis-frontend
|
|
spec:
|
|
spec:
|
|
- progressDeadlineSeconds: 600
|
|
|
|
- replicas: 2
|
|
|
|
|
|
+ replicas: 1
|
|
revisionHistoryLimit: 10
|
|
revisionHistoryLimit: 10
|
|
selector:
|
|
selector:
|
|
matchLabels:
|
|
matchLabels:
|
|
- workload.user.cattle.io/workloadselector: deployment-prod-frontend
|
|
|
|
|
|
+ app: diagnosis-frontend
|
|
strategy:
|
|
strategy:
|
|
rollingUpdate:
|
|
rollingUpdate:
|
|
maxSurge: 1
|
|
maxSurge: 1
|
|
@@ -17,33 +18,32 @@ spec:
|
|
type: RollingUpdate
|
|
type: RollingUpdate
|
|
template:
|
|
template:
|
|
metadata:
|
|
metadata:
|
|
- annotations:
|
|
|
|
- field.cattle.io/ports: '[[{"containerPort":80,"dnsName":"frontend","kind":"ClusterIP","name":"80tcp02","protocol":"TCP","sourcePort":0}]]'
|
|
|
|
- creationTimestamp: null
|
|
|
|
labels:
|
|
labels:
|
|
- workload.user.cattle.io/workloadselector: deployment-prod-frontend
|
|
|
|
|
|
+ app: diagnosis-frontend
|
|
spec:
|
|
spec:
|
|
containers:
|
|
containers:
|
|
- - image: feick/diagnosis-frontend:${date}
|
|
|
|
|
|
+ - image: yaoxiang/diagnosis-frontend:${date}
|
|
imagePullPolicy: IfNotPresent
|
|
imagePullPolicy: IfNotPresent
|
|
- name: frontend
|
|
|
|
|
|
+ name: diagnosis-frontend
|
|
ports:
|
|
ports:
|
|
- containerPort: 80
|
|
- containerPort: 80
|
|
- name: 80tcp02
|
|
|
|
|
|
+ name: 80tcp01
|
|
protocol: TCP
|
|
protocol: TCP
|
|
- resources: {}
|
|
|
|
- securityContext:
|
|
|
|
- allowPrivilegeEscalation: false
|
|
|
|
- capabilities: {}
|
|
|
|
- privileged: false
|
|
|
|
- readOnlyRootFilesystem: false
|
|
|
|
- runAsNonRoot: false
|
|
|
|
- stdin: true
|
|
|
|
- terminationMessagePath: /dev/termination-log
|
|
|
|
- terminationMessagePolicy: File
|
|
|
|
- tty: true
|
|
|
|
- dnsPolicy: ClusterFirst
|
|
|
|
- restartPolicy: Always
|
|
|
|
- schedulerName: default-scheduler
|
|
|
|
- securityContext: {}
|
|
|
|
- terminationGracePeriodSeconds: 30
|
|
|
|
|
|
+
|
|
|
|
+---
|
|
|
|
+apiVersion: v1
|
|
|
|
+kind: Service
|
|
|
|
+metadata:
|
|
|
|
+ name: diagnosis-frontend
|
|
|
|
+ namespace: prod
|
|
|
|
+ labels:
|
|
|
|
+ app: diagnosis-frontend
|
|
|
|
+spec:
|
|
|
|
+ selector:
|
|
|
|
+ app: diagnosis-frontend
|
|
|
|
+ type: ClusterIP
|
|
|
|
+ ports:
|
|
|
|
+ - port: 80
|
|
|
|
+ targetPort: 80
|
|
|
|
+ name: "http"
|
|
|
|
+ protocol: TCP
|