
现在就是简单的拉去代码 部署

kind: Deployment
apiVersion: apps/v1
metadata:
name: blade-log
namespace: iccp-back-prod
labels:
app: blade-log
spec:
replicas: 1
selector:
matchLabels:
app: blade-log
template:
metadata:
labels:
app: blade-log
spec:
volumes:
- name: host-time
hostPath:
path: /etc/localtime
type: ''
containers:
- name: blade-log
image: 10.3.6.33/iccp-back-all-prod/blade-log:v1.0.48
ports:
- name: tcp-8103
containerPort: 8103
protocol: TCP
resources: {}
volumeMounts:
- name: host-time
readOnly: true
mountPath: /etc/localtime
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
imagePullPolicy: Always
imagePullSecrets:
- name: harbor
restartPolicy: Always
terminationGracePeriodSeconds: 30
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 25%
maxSurge: 25%
revisionHistoryLimit: 10
progressDeadlineSeconds: 600
---
kind: Service
apiVersion: v1
metadata:
name: blade-log
namespace: iccp-back-prod
labels:
app: blade-log
spec:
ports:
- name: http
protocol: TCP
port: 8103
targetPort: 8103
nodePort: 31009
selector:
app: blade-log
type: NodePort
sessionAffinity: None