Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
K
k8s-develop-local
Project
Project
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
system
k8s-develop-local
Commits
af4f0850
Commit
af4f0850
authored
Oct 25, 2018
by
胡凯旋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update readme
parent
eb26a81d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
README.md
README.md
+7
-5
No files found.
README.md
View file @
af4f0850
Mac下搭建本地k8s,并进行开发、调试和部署
【WIP】
Mac下搭建本地k8s,并进行开发、调试和部署
## 安装Docker/k8s
## 安装Docker/k8s
...
@@ -114,7 +114,7 @@ kubectl create -f service/mimas-service.yml
...
@@ -114,7 +114,7 @@ kubectl create -f service/mimas-service.yml
kubectl create -f service/doris-service.yml
kubectl create -f service/doris-service.yml
```
```
9.
测试服务是否正常
启动
9.
测试服务是否正常
```
```
kubectl get service -o wide
kubectl get service -o wide
```
```
...
@@ -122,11 +122,13 @@ kubectl get service -o wide
...
@@ -122,11 +122,13 @@ kubectl get service -o wide
![](
./image/2018-10-25-12-10-56.png
)
![](
./image/2018-10-25-12-10-56.png
)
## 服务调试
## 服务调试
1.
更改代码
1.
本地开发,对/srv/apps的服务进行开发
2.
更新服务
2.
(如果涉及依赖的更新,先切到项目目录,执行
`docker build --no-cache -t 项目名:local.latest .`
)
3.
更新服务
```
```
kubectl replace --force -f deploy/backend-service.yml #
...
kubectl replace --force -f deploy/backend-service.yml #
更改了哪个服务,更新时就用deploy目录下的对应文件更新
```
```
3.
测试
3.
测试
...
...
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