参照官网k8s部署手册进行部署服务,发现服务成功启动,nacos上服务列表没有;docker方式正常。11:28:49.882 INFO --- [ main] io.seata.server.ServerApplication : Starting ServerApplication using Java 1.8.0_342 on seata-server-68b7c8b885-ztjg7 with PID 1 (/seata-server/classes started by root in /seata-server) 11:28:49.885 INFO --- [ main] io.seata.server.ServerApplication : No active profile set, falling back to 1 default profile: "default" 11:28:51.081 INFO --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 7091 (http) 11:28:51.090 INFO --- [ main] o.a.coyote.http11.Http11NioProtocol : Initializing ProtocolHandler ["http-nio-7091"] 11:28:51.091 INFO --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat] 11:28:51.091 INFO --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.62] 11:28:51.170 INFO --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext 11:28:51.170 INFO --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 1245 ms 11:28:51.859 INFO --- [ main] o.s.b.a.w.s.WelcomePageHandlerMapping : Adding welcome page: class path resource [static/index.html] 11:28:52.027 WARN --- [ main] o.s.s.c.a.web.builders.WebSecurity : You are asking Spring Security to ignore Ant [pattern='/']. This is not recommended -- please use permitAll via HttpSecurity#authorizeHttpRequests instead. 11:28:52.028 INFO --- [ main] o.s.s.web.DefaultSecurityFilterChain : Will secure Ant [pattern='/'] with [] 11:28:52.028 WARN --- [ main] o.s.s.c.a.web.builders.WebSecurity : You are asking Spring Security to ignore Ant [pattern='/**/*.css']. This is not recommended -- please use permitAll via HttpSecurity#authorizeHttpRequests instead. 11:28:52.028 INFO --- [ main] o.s.s.web.DefaultSecurityFilterChain : Will secure Ant [pattern='/**/*.css'] with [] 11:28:52.028 WARN --- [ main] o.s.s.c.a.web.builders.WebSecurity : You are asking Spring Security to ignore Ant [pattern='/**/*.js']. This is not recommended -- please use permitAll via HttpSecurity#authorizeHttpRequests instead. 11:28:52.028 INFO --- [ main] o.s.s.web.DefaultSecurityFilterChain : Will secure Ant [pattern='/**/*.js'] with [] 11:28:52.028 WARN --- [ main] o.s.s.c.a.web.builders.WebSecurity : You are asking Spring Security to ignore Ant [pattern='/**/*.html']. This is not recommended -- please use permitAll via HttpSecurity#authorizeHttpRequests instead. 11:28:52.029 INFO --- [ main] o.s.s.web.DefaultSecurityFilterChain : Will secure Ant [pattern='/**/*.html'] with [] 11:28:52.029 WARN --- [ main] o.s.s.c.a.web.builders.WebSecurity : You are asking Spring Security to ignore Ant [pattern='/**/*.map']. This is not recommended -- please use permitAll via HttpSecurity#authorizeHttpRequests instead. 11:28:52.029 INFO --- [ main] o.s.s.web.DefaultSecurityFilterChain : Will secure Ant [pattern='/**/*.map'] with [] 11:28:52.029 WARN --- [ main] o.s.s.c.a.web.builders.WebSecurity : You are asking Spring Security to ignore Ant [pattern='/**/*.svg']. This is not recommended -- please use permitAll via HttpSecurity#authorizeHttpRequests instead. 11:28:52.029 INFO --- [ main] o.s.s.web.DefaultSecurityFilterChain : Will secure Ant [pattern='/**/*.svg'] with [] 11:28:52.029 WARN --- [ main] o.s.s.c.a.web.builders.WebSecurity : You are asking Spring Security to ignore Ant [pattern='/**/*.png']. This is not recommended -- please use permitAll via HttpSecurity#authorizeHttpRequests instead. 11:28:52.029 INFO --- [ main] o.s.s.web.DefaultSecurityFilterChain : Will secure Ant [pattern='/**/*.png'] with [] 11:28:52.029 WARN --- [ main] o.s.s.c.a.web.builders.WebSecurity : You are asking Spring Security to ignore Ant [pattern='/**/*.ico']. This is not recommended -- please use permitAll via HttpSecurity#authorizeHttpRequests instead. 11:28:52.029 INFO --- [ main] o.s.s.web.DefaultSecurityFilterChain : Will secure Ant [pattern='/**/*.ico'] with [] 11:28:52.029 WARN --- [ main] o.s.s.c.a.web.builders.WebSecurity : You are asking Spring Security to ignore Ant [pattern='/console-fe/public/**']. This is not recommended -- please use permitAll via HttpSecurity#authorizeHttpRequests instead. 11:28:52.029 INFO --- [ main] o.s.s.web.DefaultSecurityFilterChain : Will secure Ant [pattern='/console-fe/public/**'] with [] 11:28:52.029 WARN --- [ main] o.s.s.c.a.web.builders.WebSecurity : You are asking Spring Security to ignore Ant [pattern='/api/v1/auth/login']. This is not recommended -- please use permitAll via HttpSecurity#authorizeHttpRequests instead. 11:28:52.030 INFO --- [ main] o.s.s.web.DefaultSecurityFilterChain : Will secure Ant [pattern='/api/v1/auth/login'] with [] 11:28:52.056 INFO --- [ main] o.s.s.web.DefaultSecurityFilterChain : Will not secure any request 11:28:52.087 INFO --- [ main] o.a.coyote.http11.Http11NioProtocol : Starting ProtocolHandler ["http-nio-7091"] 11:28:52.102 INFO --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 7091 (http) with context path '' 11:28:52.110 INFO --- [ main] io.seata.server.ServerApplication : Started ServerApplication in 3.121 seconds (JVM running for 3.668) 11:28:52.353 INFO --- [ main] i.s.core.rpc.netty.NettyServerBootstrap : Server started, service listen port: 30091 11:28:52.362 INFO --- [ main] io.seata.server.ServerRunner : seata server started in 250 millSeconds
另外发现 中文和英文语言得k8s部署配置也不大相同
3条答案
按热度按时间tmb3ates1#
@luojiasheng Is the configuration file using type conf or properties, yml ?
wz3gfoph2#
@luojiasheng Is the configuration file using type conf or properties, yml ?
`
apiVersion: v1
kind: Service
metadata:
name: seata-server
namespace: default
labels:
k8s-app: seata-server
spec:
type: NodePort
ports:
nodePort: 30091
protocol: TCP
name: service
nodePort: 30092
protocol: TCP
name: console
selector:
k8s-app: seata-server
apiVersion: apps/v1
kind: Deployment
metadata:
name: seata-server
namespace: default
labels:
k8s-app: seata-server
spec:
replicas: 1
selector:
matchLabels:
k8s-app: seata-server
template:
metadata:
labels:
k8s-app: seata-server
spec:
containers:
image: docker.io/seataio/seata-server:1.6.1
imagePullPolicy: IfNotPresent
env:
value: "30091"
ports:
containerPort: 30091
protocol: TCP
containerPort: 7091
protocol: TCP
volumeMounts:
mountPath: /root/seata-config
volumes:
configMap:
name: seata-server-config
apiVersion: v1
kind: ConfigMap
metadata:
name: seata-server-config
data:
application.yml: |
server:
port: 7091
`
pepwfjgg3#
我也遇到了 就解决办法