kubesphere部署尚医通

项目架构

复制代码
yygh-parent
|---common                                  //通用模块
|---hospital-manage                         //医院后台				[9999]   
|---model																		//数据模型
|---server-gateway													//网关    				[80]
|---service																	//微服务层
|-------service-cmn													//公共服务				[8202]
|-------service-hosp												//医院数据服务		[8201]
|-------service-order												//预约下单服务		[8206]
|-------service-oss													//对象存储服务		[8205]
|-------service-sms													//短信服务				[8204]
|-------service-statistics									//统计服务				[8208]
|-------service-task												//定时服务				[8207]
|-------service-user												//会员服务				[8203]


====================================================================

yygh-admin																	//医院管理后台		[9528]
yygh-site																		//挂号平台				[3000]

中间件

|---------------|---------------------------|-----------------------------------------------------------------------------|
| 中间件 | 集群内地址 | 外部访问地址 |
| Nacos | his-nacos.his:8848 | 192.168.1.211:30349/nacos |
| MySQL | his-mysql.his:3306 | 192.168.1.211:31840 |
| Redis | his-redis.his:6379 | 192.168.1.211:31968 |
| Sentinel | his-sentinel.his:8080 | 192.168.1.211 |
| MongoDB | his-mongodb.his:27017 | 192.168.1.211**:32693** |
| RabbitMQ | his-rabbitmq.his:5672 | 192.168.1.211:32606 |
| ElasticSearch | his-es.his:9200 | 192.168.1.211:31300 |

deploy.yaml

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

修改maven从阿里云下载镜像

  • 使用admin登陆ks
  • 进入集群管理
  • 进入配置中心
  • 找到配置
    • ks-devops-agent
    • 修改这个配置。加入maven阿里云镜像加速地址

<mirror>

<id>aliyunmaven</id>

<mirrorOf>*</mirrorOf>

<name>阿里云公共仓库</name>

<url>https://maven.aliyun.com/repository/public\</url>

</mirror>

相关推荐
Sheffield12 小时前
今天浅浅的回顾一下Ansible吧
运维
DeepFlow 零侵扰全栈可观测13 小时前
3分钟定位OA系统GC瓶颈:DeepFlow全栈可观测平台实战解析
大数据·运维·人工智能·云原生·性能优化
一点晖光13 小时前
jenkins 流水线脚本
运维·jenkins
济61713 小时前
linux(第九期)--交叉编译器-- Ubuntu20.04
linux·运维·服务器
zxdzxdzzxd13 小时前
Tailscale Linux 登录指南
linux·运维·服务器
虚神界熊孩儿14 小时前
linux下创建用户和用户组常用命令
linux·运维·创建用户
咕噜签名-铁蛋14 小时前
云服务器GPU:释放AI时代的算力引擎
运维·服务器·人工智能
阿巴~阿巴~14 小时前
“可达”方能“可靠”:深入解析网络层在TCP通信中的基石作用
运维·服务器·网络·网络协议·tcp/ip·ip·tcp
小白电脑技术14 小时前
节点小宝「中心节点」:一个设备,解锁全家远程访问
运维·服务器
gaize121314 小时前
主机与服务器的区别是什么?我能改造主机为服务器吗?
运维·服务器