feat(example-todo): add example todo chart backed by redis

This commit is contained in:
Gabriel Monroy
2015-10-26 16:56:05 -06:00
parent 8ac389d473
commit c9be9930c2
5 changed files with 68 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
name: example-todo
home: http://github.com/deis/example-todo
version: 0.0.6
description: Example Todo application backed by Redis
maintainers:
- Gabe Monroy <gabe@deis.com>
details:
This chart contains an Example Todo application backed by Redis.
It supports standalone and clustered (sentinel) Redis backends.
@@ -0,0 +1,18 @@
apiVersion: v1
kind: ReplicationController
metadata:
name: example-todo
spec:
replicas: 1
selector:
name: example-todo
template:
metadata:
labels:
name: example-todo
spec:
containers:
- name: example-todo
image: "deis/example-todo:v0.0.6"
ports:
- containerPort: 3000
@@ -0,0 +1,13 @@
apiVersion: v1
kind: Service
metadata:
name: todo-redis-cluster
labels:
heritage: deis
spec:
ports:
- port: 26379
name: redis-sentinel
protocol: TCP
selector:
provider: redis
@@ -0,0 +1,13 @@
apiVersion: v1
kind: Service
metadata:
name: todo-redis-standalone
labels:
heritage: deis
spec:
ports:
- port: 6379
name: redis
protocol: TCP
selector:
provider: redis
@@ -0,0 +1,15 @@
apiVersion: v1
kind: Service
metadata:
name: example-todo
labels:
heritage: deis
spec:
type: NodePort
ports:
- port: 3000
nodePort: 30000
name: http
protocol: TCP
selector:
name: example-todo