|
@@ -1,15 +1,16 @@
|
|
|
apiVersion: apps/v1
|
|
|
kind: Deployment
|
|
|
metadata:
|
|
|
- name: frontend
|
|
|
+ name: diagnosis-frontend
|
|
|
namespace: prod
|
|
|
+ labels:
|
|
|
+ app: diagnosis-frontend
|
|
|
spec:
|
|
|
- progressDeadlineSeconds: 600
|
|
|
- replicas: 2
|
|
|
+ replicas: 1
|
|
|
revisionHistoryLimit: 10
|
|
|
selector:
|
|
|
matchLabels:
|
|
|
- workload.user.cattle.io/workloadselector: deployment-prod-frontend
|
|
|
+ app: diagnosis-frontend
|
|
|
strategy:
|
|
|
rollingUpdate:
|
|
|
maxSurge: 1
|
|
@@ -17,33 +18,32 @@ spec:
|
|
|
type: RollingUpdate
|
|
|
template:
|
|
|
metadata:
|
|
|
- annotations:
|
|
|
- field.cattle.io/ports: '[[{"containerPort":80,"dnsName":"frontend","kind":"ClusterIP","name":"80tcp02","protocol":"TCP","sourcePort":0}]]'
|
|
|
- creationTimestamp: null
|
|
|
labels:
|
|
|
- workload.user.cattle.io/workloadselector: deployment-prod-frontend
|
|
|
+ app: diagnosis-frontend
|
|
|
spec:
|
|
|
containers:
|
|
|
- - image: feick/diagnosis-frontend:${date}
|
|
|
+ - image: yaoxiang/diagnosis-frontend:${date}
|
|
|
imagePullPolicy: IfNotPresent
|
|
|
- name: frontend
|
|
|
+ name: diagnosis-frontend
|
|
|
ports:
|
|
|
- containerPort: 80
|
|
|
- name: 80tcp02
|
|
|
+ name: 80tcp01
|
|
|
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
|