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