当前位置: 首页 > news >正文

长春净月潭建设投资集团网站电商网站开发用什么软件好

长春净月潭建设投资集团网站,电商网站开发用什么软件好,网络黄页推广大全,wordpress prower一、前言 在k8s集群中部署nexus服务需要使用到pv、pvc服务来存储nexus的数据#xff0c;需要使用service服务来提供对外访问nexus服务的端口#xff0c;需要使用deployment服务来管理nexus服务#xff0c;接下来就是用这些服务来在k8s集群中搭建nexus#xff0c;pv服务使用…一、前言 在k8s集群中部署nexus服务需要使用到pv、pvc服务来存储nexus的数据需要使用service服务来提供对外访问nexus服务的端口需要使用deployment服务来管理nexus服务接下来就是用这些服务来在k8s集群中搭建nexuspv服务使用了nfs网络存储并且部署的是3.28.0版本的neuxs如需其他版本自行更改镜像版本 二、部署 创建yaml文件存放目录 mkdir /opt/nexus cd /opt/nexus 创建命名空间 kubectl create namespace nexus 在nfs服务器给存储nexus数据的nfs共享路径授权 这是因为在nexus3官方docker仓库说明文档里挂载目录设置的权限为200但实际安装的时候无法启动,权限不够,启动nexus服务导致输出报错如下mkdir: cannot create directory ../sonatype-work/nexus3/log: Permission denied mkdir: cannot create directory ../sonatype-work/nexus3/tmp: Permission denied OpenJDK 64-Bit Server VM warning: Cannot open file ../sonatype-work/nexus3/log/jvm.log due to No such file or directoryWarning: Cannot open log file: ../sonatype-work/nexus3/log/jvm.log Warning: Forcing option -XX:LogFile/tmp/jvm.log java.io.FileNotFoundException: ../sonatype-work/nexus3/tmp/i4j_ZTDnGON8hezynsMX2ZCYAVDtQog.lock (No such file or directory)chmod 777 /share/k8s/nexus 编辑pv配置文件 vi pv.yaml apiVersion: v1 kind: PersistentVolume metadata:name: nexus-pv spec:capacity:storage: 30Gi #配置容量大小accessModes:- ReadWriteOnce #配置访问策略为只允许一个节点读写persistentVolumeReclaimPolicy: Retain #配置回收策略Retain为手动回收storageClassName: nexus #配置为nfsnfs:path: /share/k8s/nexus #配置nfs服务端的共享路径server: 10.1.60.22 #配置nfs服务器地址 编辑pvc配置文件  apiVersion: v1 kind: PersistentVolumeClaim metadata:name: nexus-data-pvcnamespace: nexus spec:accessModes:- ReadWriteOnceresources:requests:storage: 30GistorageClassName: nexus 编辑service配置文件  apiVersion: v1 kind: Service metadata:name: nexusnamespace: nexuslabels:app: nexus spec:selector:app: nexustype: NodePortports:- name: webprotocol: TCPport: 8081targetPort: 8081nodePort: 30001 编辑deployment配置文件 apiVersion: apps/v1 kind: Deployment metadata:labels:app: nexusname: nexusnamespace: nexus spec:replicas: 1progressDeadlineSeconds: 600minReadySeconds: 30strategy:rollingUpdate:maxSurge: 1maxUnavailable: 0type: RollingUpdateselector:matchLabels:app: nexustemplate:metadata:labels:app: nexusspec:containers:- name: nexusimage: sonatype/nexus3:3.28.0imagePullPolicy: IfNotPresentports:- containerPort: 8081name: webprotocol: TCPlivenessProbe:httpGet:path: /port: 8081initialDelaySeconds: 70periodSeconds: 30failureThreshold: 6readinessProbe:httpGet:path: /port: 8081initialDelaySeconds: 60periodSeconds: 30failureThreshold: 6resources:limits:cpu: 1000mmemory: 2Girequests:cpu: 500mmemory: 512MivolumeMounts:- name: nexus-datamountPath: /nexus-datavolumes:- name: nexus-datapersistentVolumeClaim:claimName: nexus-data-pvc 创建yaml文件对应服务 kubectl apply -f pv.yaml kubectl apply -f pvc.yaml kubectl apply -f service.yaml kubectl apply -f deployment.yaml 查询服务是否正常 kubectl get all -n nexus kubectl get pv kubectl get pvc 服务启动正常后获取nexus初始的登录密码 kubectl exec -it nexus-6fcc7c4db9-np769 -n nexus cat /nexus-data/admin.password 通过service的nodeport端口访问nexus服务 http://10.1.60.14:30001/ 默认用户admin 密码使用上面获取的初始密码即可
http://www.pierceye.com/news/787774/

相关文章:

  • 深圳低价做网站广告免费设计在线生成
  • 网站服务体系网站开发补充合同范本
  • 萝岗做网站网站优化大计
  • 服装店网站模板北京网站设计公司哪个好
  • 网站运维工作内容网页设计与制作课程小结
  • 2019网站怎么做网站快速备案公司
  • 上饶网站制作专业网站设计如何提升网页品质
  • 哈尔滨微信网站建设学网站设计和平面设计
  • 网站开发公司网站官网焦作建设企业网站公司
  • 设备上哪个网站做外贸推广php版本不同于wordpress使用
  • 虚拟服务器怎样做网站广州 骏域网站建设专家
  • 谁有做任务网站色多多导入百媚导航
  • 做网站怎么加视频素材网免费
  • 想做棋牌网站怎么做做电商的进货网站
  • 做微信小程序和做网站南昌网站备案
  • 好的摄影网站推荐抖音点赞自助网站
  • 能够做代理的网站有哪些问题朝阳区住房和城乡建设部网站
  • 网站建设与管理考察报告中国农业建设信息网站
  • 张家界做网站中天建设集团有限公司怎么样
  • 广州网站百度排名推广聊天代理分销系统
  • 全球采购网站有哪些网站平台
  • wordpress怎么做商城网站软件工程师证书含金量
  • 锡林浩特建设局网站推广方法有哪几种
  • 汉南城乡建设局网站活动页面设计
  • 滕州网站搜索引擎优化新浪企业邮箱
  • 涿州网站建设珠海网站制作计划
  • 摄影网站设计思想wordpress 同步插件
  • 手机网站不支持下载的视频怎么下载重庆哪里可以做网站的
  • 网站设计深圳联系电话?长沙市房产交易中心官网
  • 泉州建站费用广州建网站费用