创建部署问题时,请参考下面模板,你提供的信息越多,越容易及时获得解答。如果未按模板创建问题,管理员有权关闭问题。
确保帖子格式清晰易读,用 markdown code block 语法格式化代码块。
你只花一分钟创建的问题,不能指望别人花上半个小时给你解答。

操作系统信息
例如:虚拟机/物理机,Centos7.5/Ubuntu18.04,4C/8G

Kubernetes版本信息
all-in-one部署的k8s v 1.20.4

容器运行时

KubeSphere版本信息

问题:
kubesphere部署renren-fast一直是启动中:

jenkinsfile:

pipeline {
  agent {
    node {
      label 'maven'
    }

  }
  stages {
    stage('拉取代码') {
      steps {
        container('maven') {
           git(url: 'http://192.168.6.9/root/bear-app-web.git', branch: 'master', changelog: true, poll: false)
           sh 'ls -al'
        }
      }
    }

    stage('代码构建') {
      steps {
        container('maven') {
          sh 'mvn clean package -Dmaven.test.skip=true'
        }

      }
    }

    stage('编译推送') {
      steps {
        container('maven') {
          sh 'docker build -f Dockerfile-on-prem -t $REGISTRY/$DOCKERHUB_NAMESPACE/$APP_NAME:SNAPSHOT-$BRANCH_NAME-$BUILD_NUMBER .'
          withCredentials([usernamePassword(passwordVariable : 'DOCKER_PASSWORD' ,usernameVariable : 'DOCKER_USERNAME' ,credentialsId : "$DOCKER_CREDENTIAL_ID" ,)]) {
            sh 'echo "$DOCKER_PASSWORD" | docker login $REGISTRY -u "$DOCKER_USERNAME" --password-stdin'
            sh 'docker push  $REGISTRY/$DOCKERHUB_NAMESPACE/$APP_NAME:SNAPSHOT-$BRANCH_NAME-$BUILD_NUMBER'
          }

        }

      }
    }

    stage('推送latest') {
      when {
        branch 'master'
      }
      steps {
        container('maven') {
          sh 'docker tag  $REGISTRY/$DOCKERHUB_NAMESPACE/$APP_NAME:SNAPSHOT-$BRANCH_NAME-$BUILD_NUMBER $REGISTRY/$DOCKERHUB_NAMESPACE/$APP_NAME:latest '
          sh 'docker push  $REGISTRY/$DOCKERHUB_NAMESPACE/$APP_NAME:latest '
        }
      }
    }

    stage('部署到测试环境') {
      steps {
        input(id: 'deploy-to-dev', message: 'deploy to dev?')
        kubernetesDeploy(configs: 'deploy/dev-ol/**', enableConfigSubstitution: true, kubeconfigId: "$KUBECONFIG_CREDENTIAL_ID")
        sh 'echo "$REGISTRY"/"$HARBOR_NAMESPACE"/"$APP_NAME":SNAPSHOT-$BRANCH_NAME-$BUILD_NUMBER'
      }
    }
  }
  environment {
    DOCKER_CREDENTIAL_ID = 'harbor-auth'
    GITHUB_CREDENTIAL_ID = 'github-auth'
    KUBECONFIG_CREDENTIAL_ID = 'kubeconfig'
    REGISTRY = 'harbor.devops.ruisu.net'
    DOCKERHUB_NAMESPACE = 'library'
    BRANCH_NAME = 'master'
    GITHUB_ACCOUNT = 'root'
    APP_NAME = 'dev'
  }
  parameters {
    string(name: 'TAG_NAME', defaultValue: '', description: '')
  }
}

deploy文件

apiVersion: v1
kind: Service
metadata:
  labels:
    app: kubesphere
    component: ks-sample-dev
  name: ks-sample-dev
  namespace: kubesphere-sample-dev
spec:
  ports:
    - name: http
      port: 8080
      protocol: TCP
      targetPort: 8080
      nodePort: 30861
  selector:
    app: kubesphere
    component: ks-sample-dev
    tier: backend
  sessionAffinity: None
  type: NodePort
---
apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app: kubesphere
    component: ks-sample-dev
    tier: backend
  name: ks-sample-dev
  namespace: kubesphere-sample-dev
spec:
  progressDeadlineSeconds: 600
  replicas: 1
  selector:
    matchLabels:
      app: kubesphere
      component: ks-sample-dev
      tier: backend
  template:
    metadata:
      labels:
        app: kubesphere
        component: ks-sample-dev
        tier: backend
    spec:
      containers:
        - env:
            - name: CACHE_IGNORE
              value: js|html
            - name: CACHE_PUBLIC_EXPIRATION
              value: 3d
          image: $REGISTRY/$DOCKERHUB_NAMESPACE/$APP_NAME:SNAPSHOT-$BRANCH_NAME-$BUILD_NUMBER
          readinessProbe:
            httpGet:
              path: /
              port: 8080
            timeoutSeconds: 10
            failureThreshold: 30
            periodSeconds: 5
          imagePullPolicy: Always
          name: ks-sample
          ports:
            - containerPort: 8080
              protocol: TCP
          resources:
            limits:
              cpu: 300m
              memory: 600Mi
            requests:
              cpu: 100m
              memory: 100Mi
          terminationMessagePath: /dev/termination-log
          terminationMessagePolicy: File
      dnsPolicy: ClusterFirst
      restartPolicy: Always
      terminationGracePeriodSeconds: 30

启动日志:

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

欢迎使用 renren-fast 人人快速开发平台 - Powered By https://www.renren.io/

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

2023-03-09 03:21:33.840 INFO 7 --- [ main] io.renren.RenrenApplication : Starting RenrenApplication v3.0.0 using Java 1.8.0_111-internal on ks-sample-dev-5479d46795-xpmn2 with PID 7 (/home/renren-fast.jar started by root in /home)

2023-03-09 03:21:33.843 DEBUG 7 --- [ main] io.renren.RenrenApplication : Running with Spring Boot v2.6.6, Spring v5.3.18

2023-03-09 03:21:33.843 INFO 7 --- [ main] io.renren.RenrenApplication : The following 1 profile is active: "dev"

2023-03-09 03:21:45.043 INFO 7 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode!

2023-03-09 03:21:45.134 INFO 7 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Redis repositories in DEFAULT mode.

2023-03-09 03:21:45.438 INFO 7 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 201 ms. Found 0 Redis repository interfaces.

2023-03-09 03:21:47.842 INFO 7 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'shiroConfig' of type [io.renren.config.ShiroConfig$$EnhancerBySpringCGLIB$$97521ce7] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2023-03-09 03:21:53.239 INFO 7 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'mybatis-plus-com.baomidou.mybatisplus.autoconfigure.MybatisPlusProperties' of type [com.baomidou.mybatisplus.autoconfigure.MybatisPlusProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2023-03-09 03:21:53.336 INFO 7 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'mybatisPlusConfig' of type [io.renren.config.MybatisPlusConfig$$EnhancerBySpringCGLIB$$fa7e2403] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2023-03-09 03:21:53.534 INFO 7 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'paginationInterceptor' of type [com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2023-03-09 03:21:53.640 INFO 7 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'com.baomidou.mybatisplus.autoconfigure.MybatisPlusAutoConfiguration' of type [com.baomidou.mybatisplus.autoconfigure.MybatisPlusAutoConfiguration$$EnhancerBySpringCGLIB$$719eedef] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2023-03-09 03:21:53.735 INFO 7 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'dynamic-io.renren.datasource.properties.DynamicDataSourceProperties' of type [io.renren.datasource.properties.DynamicDataSourceProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2023-03-09 03:21:53.737 INFO 7 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'dynamicDataSourceConfig' of type [io.renren.datasource.config.DynamicDataSourceConfig$$EnhancerBySpringCGLIB$$9af79b37] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2023-03-09 03:21:53.933 INFO 7 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'dataSourceProperties' of type [io.renren.datasource.properties.DataSourceProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2023-03-09 03:21:59.746 INFO 7 --- [ main] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} inited

2023-03-09 03:21:59.747 INFO 7 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'dynamicDataSource' of type [io.renren.datasource.config.DynamicDataSource] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2023-03-09 03:22:04.434 INFO 7 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'sqlSessionFactory' of type [org.apache.ibatis.session.defaults.DefaultSqlSessionFactory] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2023-03-09 03:22:04.536 INFO 7 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'sqlSessionTemplate' of type [org.mybatis.spring.SqlSessionTemplate] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2023-03-09 03:22:04.541 INFO 7 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'sysMenuDao' of type [org.mybatis.spring.mapper.MapperFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2023-03-09 03:22:04.638 INFO 7 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'sysMenuDao' of type [com.sun.proxy.$Proxy87] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2023-03-09 03:22:04.734 INFO 7 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'sysUserDao' of type [org.mybatis.spring.mapper.MapperFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2023-03-09 03:22:04.735 INFO 7 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'sysUserDao' of type [com.sun.proxy.$Proxy88] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2023-03-09 03:22:04.834 INFO 7 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'sysUserTokenDao' of type [org.mybatis.spring.mapper.MapperFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2023-03-09 03:22:04.836 INFO 7 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'sysUserTokenDao' of type [com.sun.proxy.$Proxy89] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2023-03-09 03:22:04.933 INFO 7 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'shiroServiceImpl' of type [io.renren.modules.sys.service.impl.ShiroServiceImpl] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2023-03-09 03:22:04.934 INFO 7 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'OAuth2Realm' of type [io.renren.modules.sys.oauth2.OAuth2Realm] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2023-03-09 03:22:05.336 INFO 7 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'securityManager' of type [org.apache.shiro.web.mgt.DefaultWebSecurityManager] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2023-03-09 03:22:05.538 INFO 7 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'authorizationAttributeSourceAdvisor' of type [org.apache.shiro.spring.security.interceptor.AuthorizationAttributeSourceAdvisor] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2023-03-09 03:22:09.144 INFO 7 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http)

2023-03-09 03:22:09.335 INFO 7 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]

2023-03-09 03:22:09.335 INFO 7 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.60]

2023-03-09 03:22:10.035 INFO 7 --- [ main] o.a.c.c.C.[.[localhost].[/renren-fast] : Initializing Spring embedded WebApplicationContext

2023-03-09 03:22:10.036 INFO 7 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 35499 ms

2023-03-09 03:22:13.333 INFO 7 --- [ main] org.quartz.impl.StdSchedulerFactory : Using default implementation for ThreadExecutor

2023-03-09 03:22:13.538 INFO 7 --- [ main] org.quartz.core.SchedulerSignalerImpl : Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl

2023-03-09 03:22:13.539 INFO 7 --- [ main] org.quartz.core.QuartzScheduler : Quartz Scheduler v.2.3.0 created.

2023-03-09 03:22:13.734 INFO 7 --- [ main] o.s.s.quartz.LocalDataSourceJobStore : Using db table-based data access locking (synchronization).

2023-03-09 03:22:13.737 INFO 7 --- [ main] o.s.s.quartz.LocalDataSourceJobStore : JobStoreCMT initialized.

2023-03-09 03:22:13.738 INFO 7 --- [ main] org.quartz.core.QuartzScheduler : Scheduler meta-data: Quartz Scheduler (v2.3.0) 'RenrenScheduler' with instanceId 'ks-sample-dev-5479d46795-xpmn21678332133335'

kubesphere截图:

以上,找不到原因,不知道哪位大神可以指点一下