Commit b937aa35 by 蒋勇

d

parent 81aaa809
......@@ -3,32 +3,43 @@ kind: Deployment
metadata:
name: my-redis
namespace: tencent-qifu
labels:
app: my-redis
spec:
replicas: 1
selector:
matchLabels:
app: my-redis
template:
metadata:
labels:
name: my-redis
labels:
app: my-redis
spec:
containers:
- name: my-redis
image: csighub.tencentyun.com/brg_icp/tencent2020:redisv1
volumeMounts:
restartPolicy: Always
containers:
- name: my-redis
#image: registry.cn-beijing.aliyuncs.com/hantang2/imgshare:1220.0.1
#image: registry.cn-beijing.aliyuncs.com/hantang2/imgshare:1220.0.2
image: csighub.tencentyun.com/brg_icp/tencent2020:redisv1
imagePullPolicy: IfNotPresent
ports:
- containerPort: 6379
volumeMounts:
- name: foo
mountPath: "/usr/local/etc"
command:
- "redis-server"
args:
- "/usr/local/etc/redis/redis.conf"
volumes:
- name: foo
configMap:
name: zhichan-config
items:
- key: redis.conf
path: redis/redis.conf
mountPath: "/usr/local/etc"
command:
- "redis-server"
args:
- "/usr/local/etc/redis/redis.conf"
volumes:
- name: foo
configMap:
name: zhichan-config
items:
- key: redis.conf
path: redis/redis.conf
---
kind: Service
......
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