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