Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eureka-server
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangguangchao
eureka-server
Commits
ebdfba7c
Commit
ebdfba7c
authored
Nov 28, 2023
by
lixinyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
K8S配置更改
parent
73469306
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
11 deletions
+34
-11
k8sdeploy.yaml
k8sdeploy.yaml
+34
-11
No files found.
k8sdeploy.yaml
View file @
ebdfba7c
...
@@ -17,11 +17,12 @@ spec:
...
@@ -17,11 +17,12 @@ spec:
version
:
v1
version
:
v1
spec
:
spec
:
containers
:
containers
:
-
image
:
rdwh/eurekaserver:latest
-
image
:
rdwh/eurekaserver:latest
name
:
eureka-server
name
:
eureka-server
command
:
[
'
sh'
,
'
-c'
,
'
sh
./bin/startup.sh
&&
sleep
3600'
]
command
:
[
'
sh'
,
'
-c'
,
'
sh
./bin/startup.sh
&&
sleep
3600'
]
ports
:
ports
:
-
containerPort
:
8769
-
containerPort
:
8769
serviceAccountName
:
eureka-server-test
---
---
apiVersion
:
v1
apiVersion
:
v1
kind
:
Service
kind
:
Service
...
@@ -32,10 +33,32 @@ metadata:
...
@@ -32,10 +33,32 @@ metadata:
namespace
:
devops
namespace
:
devops
spec
:
spec
:
ports
:
ports
:
-
port
:
8769
-
port
:
8769
protocol
:
TCP
protocol
:
TCP
targetPort
:
8769
targetPort
:
8769
nodePort
:
30092
nodePort
:
30092
selector
:
selector
:
app
:
eureka-server
app
:
eureka-server
type
:
NodePort
type
:
NodePort
\ No newline at end of file
---
apiVersion
:
rbac.authorization.k8s.io/v1beta1
kind
:
ClusterRoleBinding
metadata
:
name
:
eureka-server-test
#ClusterRoleBinding的名字
subjects
:
-
kind
:
ServiceAccount
name
:
eureka-server-test
#serviceaccount资源对象的name
namespace
:
devops
#serviceaccount的namespace
roleRef
:
kind
:
ClusterRole
name
:
cluster-admin
#k8s集群中最高权限的角色
apiGroup
:
rbac.authorization.k8s.io
---
apiVersion
:
v1
kind
:
ServiceAccount
metadata
:
name
:
eureka-server-test
# ServiceAccount的名字
namespace
:
devops
# serviceaccount的namespace
labels
:
app
:
eureka-server-test
#ServiceAccount的标签
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment