代码拉取完成,页面将自动刷新
同步操作将从 cuiliang/spring-boot-demo 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
apiVersion: apps/v1
kind: Deployment
metadata:
name: demo
namespace: NAME_SPACE
labels:
app: demo
spec:
selector:
matchLabels:
app: demo
template:
metadata:
labels:
app: demo
spec:
containers:
- name: demo
image: IMAGE_NAME
resources:
requests:
cpu: 100m
memory: 100Mi
limits:
cpu: 500m
memory: 512Mi
livenessProbe:
httpGet:
path: /health
port: 8888
readinessProbe:
httpGet:
path: /health
port: 8888
ports:
- containerPort: 8888
name: demo
volumeMounts:
- name: localtime
mountPath: /etc/localtime
volumes:
- name: localtime
hostPath:
path: /usr/share/zoneinfo/Asia/Shanghai
restartPolicy: Always
---
apiVersion: v1
kind: Service
metadata:
name: demo
namespace: NAME_SPACE
spec:
selector:
app: demo
type: ClusterIP
sessionAffinity: None
sessionAffinityConfig:
clientIP:
timeoutSeconds: 10800
ports:
- name: demo
port: 8888
targetPort: 8888
---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: demo
namespace: NAME_SPACE
spec:
entryPoints:
- web
routes:
- match: Host(`DOMAIN_NAME`)
kind: Rule
services:
- name: demo
port: 8888
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。