You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
jeecg-boot-vue/deploy/enfi-boot-vue-deployment.yml

67 lines
1.6 KiB
YAML

3 years ago
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: enfi-boot-vue
name: enfi-boot-vue
namespace: wang-project #一定要写名称空间
spec:
progressDeadlineSeconds: 600
replicas: 1
selector:
matchLabels:
app: enfi-boot-vue
strategy:
rollingUpdate:
maxSurge: 50%
maxUnavailable: 50%
type: RollingUpdate
template:
metadata:
labels:
app: enfi-boot-vue
spec:
imagePullSecrets:
- name: aliyun-docker-hub #提前在项目下配置访问阿里云的账号密码
containers:
3 years ago
- image: $REGISTRY/$ALIYUNHUB_NAMESPACE/enfi-boot-vue:SNAPSHOT-$BUILD_NUMBER
3 years ago
# readinessProbe:
# httpGet:
# path: /actuator/health
# port: 8080
# timeoutSeconds: 10
# failureThreshold: 30
# periodSeconds: 5
imagePullPolicy: Always
name: app
ports:
- containerPort: 80
protocol: TCP
resources:
limits:
cpu: 300m
memory: 300Mi
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
restartPolicy: Always
terminationGracePeriodSeconds: 30
---
apiVersion: v1
kind: Service
metadata:
labels:
app: enfi-boot-vue
name: enfi-boot-vue
namespace: wang-project
spec:
ports:
- name: http
port: 80
protocol: TCP
targetPort: 80
nodePort: 32248
selector:
app: enfi-boot-vue
sessionAffinity: None
type: NodePort