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