diff --git a/jeecg-module-system/jeecg-system-start/deploy.yaml b/jeecg-module-system/jeecg-system-start/deploy.yaml new file mode 100644 index 0000000000000000000000000000000000000000..9973d13e21332a002649e7ef6094e66a42291828 --- /dev/null +++ b/jeecg-module-system/jeecg-system-start/deploy.yaml @@ -0,0 +1,66 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + labels: + app: jeecg-springboot + name: jeecg-springboot + namespace: jeecg #一定要写名称空间 +spec: + progressDeadlineSeconds: 600 + replicas: 1 + selector: + matchLabels: + app: jeecg-springboot + strategy: + rollingUpdate: + maxSurge: 50% + maxUnavailable: 50% + type: RollingUpdate + template: + metadata: + labels: + app: jeecg-springboot + spec: + imagePullSecrets: + - name: aliyun-docker-hub #提前在项目下配置访问阿里云的账号密码 + containers: + - image: $REGISTRY/$DOCKERHUB_NAMESPACE/jeecg-springboot:SNAPSHOT-$BUILD_NUMBER + readinessProbe: + httpGet: + path: /actuator/health + port: 8080 + timeoutSeconds: 10 + failureThreshold: 30 + periodSeconds: 5 + imagePullPolicy: Always + name: app + ports: + - containerPort: 8080 + protocol: TCP + resources: + limits: + cpu: 300m + memory: 600Mi + terminationMessagePath: /dev/termination-log + terminationMessagePolicy: File + dnsPolicy: ClusterFirst + restartPolicy: Always + terminationGracePeriodSeconds: 30 +--- +apiVersion: v1 +kind: Service +metadata: + labels: + app: jeecg-springboot + name: jeecg-springboot + namespace: his +spec: + ports: + - name: http + port: 8080 + protocol: TCP + targetPort: 8080 + selector: + app: jeecg-springboot + sessionAffinity: None + type: ClusterIP \ No newline at end of file