summaryrefslogtreecommitdiffstats
path: root/clover/clovisor/libclovisor/redis.yaml
diff options
context:
space:
mode:
authorStephen Wong <stephen.kf.wong@gmail.com>2018-09-11 23:37:33 +0000
committerStephen Wong <stephen.kf.wong@gmail.com>2018-11-01 06:42:03 +0000
commit56b8e050641fef01ada624b1eb715aa8177bb5bd (patch)
tree09c02d64ae53e2f0f25d49443dfb8ca78813c6e9 /clover/clovisor/libclovisor/redis.yaml
parent257e0d846ade5b1051c3734ad6a2d5bea4ce4ca7 (diff)
CLOVER-43: Initial commit for Clovisor
Part of Clover's initial task (during project proposal) is to explore cloud native network tracing tools. Clover the project proposes Clovisor as a way for Clover to use the IOvisor (https://www.iovisor.org/) to perform network tracing. This is the first commit of this module Please note that the BPF code used in this commit were only tested with Linux kernel 4.14+ --- hence, if ubuntu is used, and one prefers LTS, the requirement is 18.04+ A different patch will track the redis and k8s API server watcher code Also, a design doc will be added in the future (TBD) Signed-off-by: Stephen Wong <stephen.kf.wong@gmail.com> Change-Id: I30d9f9d474b8703097c470d39628e86bc788f9b6
Diffstat (limited to 'clover/clovisor/libclovisor/redis.yaml')
-rw-r--r--clover/clovisor/libclovisor/redis.yaml53
1 files changed, 53 insertions, 0 deletions
diff --git a/clover/clovisor/libclovisor/redis.yaml b/clover/clovisor/libclovisor/redis.yaml
new file mode 100644
index 0000000..8f99326
--- /dev/null
+++ b/clover/clovisor/libclovisor/redis.yaml
@@ -0,0 +1,53 @@
+apiVersion: v1
+kind: Namespace
+metadata:
+ name: clover-system
+ labels:
+ name: clover-system
+---
+apiVersion: v1
+kind: Pod
+metadata:
+ labels:
+ name: redis
+ redis-sentinel: "true"
+ role: master
+ name: redis
+ namespace: clover-system
+spec:
+ containers:
+ - name: redis
+ image: k8s.gcr.io/redis:v1
+ env:
+ - name: MASTER
+ value: "true"
+ ports:
+ - containerPort: 6379
+ resources:
+ limits:
+ cpu: "0.1"
+ volumeMounts:
+ - mountPath: /redis-master-data
+ name: data
+ - name: sentinel
+ image: kubernetes/redis:v1
+ env:
+ - name: SENTINEL
+ value: "true"
+ ports:
+ - containerPort: 26379
+ volumes:
+ - name: data
+ emptyDir: {}
+---
+apiVersion: v1
+kind: Service
+metadata:
+ name: redis
+ namespace: clover-system
+spec:
+ ports:
+ - port: 6379
+ selector:
+ name: redis
+---