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
7dfb32ae
Commit
7dfb32ae
authored
Oct 29, 2018
by
胡凯旋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
redis
parent
a54eb19a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
2 deletions
+35
-2
README.md
README.md
+2
-2
redis-deploy.yml
deploy/redis-deploy.yml
+21
-0
redis-service.yml
service/redis-service.yml
+12
-0
No files found.
README.md
View file @
7dfb32ae
...
...
@@ -85,9 +85,7 @@ docker build --no-cache -t 项目名:local.latest .
cp ./settings_local/backend/settings_local.py /srv/apps/backend/gengmei
cp ./settings_local/gaia/settings_local.py /srv/apps/gaia/gaia
cp ./settings_local/mimas/settings_local.py /srv/apps/mimas/settings/settings_local.py
cp ./settings_local/mimas/deploy_prod.xml /srv/apps/mimas/
cp ./settings_local/doris/devel.py /srv/apps/doris/doris/devel.py
cp ./settings_local/doris/deploy_prod.xml /srv/apps/doris/deploy_prod.xml
```
6.
docker-for-mac上添加File Sharing配置 /srv/apps、/data/log,添加后点击Apply & Restart,若报错如下,可不必添加。
...
...
@@ -116,11 +114,13 @@ kubectl create -f deploy/backend-deploy.yml
kubectl create -f deploy/gaia-deploy.yml
kubectl create -f deploy/mimas-deploy.yml
kubectl create -f deploy/doris-deploy.yml
kubectl create -f deploy/redis-deploy.yml
# Service
kubectl create -f service/backend-service.yml
kubectl create -f service/gaia-service.yml
kubectl create -f service/mimas-service.yml
kubectl create -f service/doris-service.yml
kubectl create -f service/redis-service.yml
```
10.
测试服务是否正常
...
...
deploy/redis-deploy.yml
0 → 100644
View file @
7dfb32ae
apiVersion
:
apps/v1
kind
:
Deployment
metadata
:
name
:
redis-deploy-test
labels
:
app
:
redis
spec
:
replicas
:
1
selector
:
matchLabels
:
app
:
redis
template
:
metadata
:
labels
:
app
:
redis
spec
:
containers
:
-
name
:
redis
image
:
redis:latest
ports
:
-
containerPort
:
6379
service/redis-service.yml
0 → 100644
View file @
7dfb32ae
kind
:
Service
apiVersion
:
v1
metadata
:
name
:
redis-service
spec
:
selector
:
app
:
redis
ports
:
-
protocol
:
TCP
port
:
6379
targetPort
:
6379
\ 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