2015-06-10 21:54:42 +00:00
|
|
|
apiVersion: v1
|
2015-02-04 04:35:13 +00:00
|
|
|
kind: ReplicationController
|
2015-05-07 22:44:58 +00:00
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
db: rethinkdb
|
2015-07-07 13:27:49 +00:00
|
|
|
name: rethinkdb-rc
|
2015-05-07 22:44:58 +00:00
|
|
|
spec:
|
2015-02-04 04:35:13 +00:00
|
|
|
replicas: 1
|
2015-05-07 22:44:58 +00:00
|
|
|
selector:
|
2015-02-04 04:35:13 +00:00
|
|
|
db: rethinkdb
|
|
|
|
role: replicas
|
2015-05-07 22:44:58 +00:00
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
db: rethinkdb
|
|
|
|
role: replicas
|
|
|
|
spec:
|
|
|
|
containers:
|
2015-07-08 09:53:23 +00:00
|
|
|
- image: gcr.io/google_containers/rethinkdb:1.16.0_1
|
2015-05-07 22:44:58 +00:00
|
|
|
name: rethinkdb
|
2015-07-07 13:27:49 +00:00
|
|
|
env:
|
|
|
|
- name: POD_NAMESPACE
|
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
|
|
|
fieldPath: metadata.namespace
|
2015-05-07 22:44:58 +00:00
|
|
|
ports:
|
|
|
|
- containerPort: 8080
|
|
|
|
name: admin-port
|
|
|
|
- containerPort: 28015
|
|
|
|
name: driver-port
|
|
|
|
- containerPort: 29015
|
|
|
|
name: cluster-port
|
|
|
|
volumeMounts:
|
|
|
|
- mountPath: /data/rethinkdb_data
|
|
|
|
name: rethinkdb-storage
|
|
|
|
volumes:
|
|
|
|
- name: rethinkdb-storage
|
|
|
|
emptyDir: {}
|