Skip to content
This repository was archived by the owner on Nov 18, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions example/sentinel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@ spec:
metadata:
labels:
app: redis-sentinel
annotations:
pod.beta.kubernetes.io/init-containers: '[{
"name": "k8s-redis-ha-sentinel",
"image": "tarosky/k8s-redis-ha:sentinel-3.0.1",
"volumeMounts": [{"name": "opt", "mountPath": "/opt"}]
}]'
spec:
containers:
- name: redis-sentinel
Expand Down Expand Up @@ -52,6 +46,12 @@ spec:
volumeMounts:
- name: opt
mountPath: /opt
initContainers:
- name: redis-ha-server
image: tarosky/k8s-redis-ha:sentinel-3.0.1
volumeMounts:
- name: opt
mountPath: /opt
volumes:
- name: opt
emptyDir: {}
12 changes: 6 additions & 6 deletions example/server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@ spec:
metadata:
labels:
app: redis-server
annotations:
pod.beta.kubernetes.io/init-containers: '[{
"name": "k8s-redis-ha-server",
"image": "tarosky/k8s-redis-ha:server-3.0.1",
"volumeMounts": [{"name": "opt", "mountPath": "/opt"}]
}]'
spec:
containers:
- name: redis-server
Expand Down Expand Up @@ -44,6 +38,12 @@ spec:
mountPath: /data
- name: opt
mountPath: /opt
initContainers:
- name: redis-ha-server
image: tarosky/k8s-redis-ha:server-3.0.1
volumeMounts:
- name: opt
mountPath: /opt
volumes:
- name: redis-server-volume
emptyDir: {}
Expand Down