Commit 7dfb32ae authored by 胡凯旋's avatar 胡凯旋

redis

parent a54eb19a
......@@ -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. 测试服务是否正常
......
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
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment