代码拉取完成,页面将自动刷新
同步操作将从 zhangyu/devops-k8s 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
apiVersion: v1
kind: PersistentVolume
metadata:
name: devops-doclever-pv
spec:
capacity:
storage: 20Gi
accessModes:
- ReadWriteMany
persistentVolumeReclaimPolicy: Retain #回收策略
nfs:
path: /doclever-devops-dispute/
server: xxxxx.cn-beijing.nas.aliyuncs.com # ----replace------
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
namespace: devops
name: devops-doclever-pvc
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 20Gi
---
apiVersion: v1
kind: Service
metadata:
name: doclever
namespace: devops
labels:
app: doclever
spec:
selector:
app: doclever
ports:
- name: doclever
protocol: TCP
port: 10000
targetPort: 10000
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: doclever
namespace: devops
labels:
app: doclever
spec:
selector:
matchLabels:
app: doclever
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
replicas: 1
template:
metadata:
labels:
app: doclever
spec:
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 60
preference:
matchExpressions:
- {key: devops-node, operator: In, values: ["beijing-node"]}
containers:
- name: doclever
image: lw96/doclever:latest
imagePullPolicy: IfNotPresent
env:
- name: DB_HOST
value: mongodb://mongodb:27017/DOClever
- name: TZ
value: Asia/Shanghai
ports:
- name: doclever
containerPort: 10000
resources:
requests:
memory: 100M
limits:
memory: 500M
volumeMounts:
- name: devops-doclerver-disk
mountPath: "/root/DOClever/data/file"
subPath: file
- name: devops-doclerver-disk
mountPath: "/root/DOClever/data/img"
subPath: img
- name: devops-doclerver-disk
mountPath: /root/DOClever/data/tmp
subPath: tmp
volumes:
- name: devops-doclerver-disk
persistentVolumeClaim:
claimName: devops-doclever-pvc
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。