Commit b937aa35 by 蒋勇

d

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