Last active
August 29, 2015 14:19
-
-
Save jimmidyson/5aac6e351befe21bb52c to your computer and use it in GitHub Desktop.
Clustering on Kubernetes & OpenShift3 using DNS - replication controllers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"apiVersion": "v1beta1", | |
"id": "elasticsearch-client-rc", | |
"kind": "ReplicationController", | |
"labels": { | |
"component": "elasticsearch", | |
"type": "client" | |
}, | |
"desiredState": { | |
"podTemplate": { | |
"desiredState": { | |
"manifest": { | |
"containers": [ | |
{ | |
"env": [ | |
{ | |
"name": "SERVICE_DNS", | |
"value": "elasticsearch-cluster" | |
}, | |
{ | |
"name": "NODE_DATA", | |
"value": "false" | |
}, | |
{ | |
"name": "NODE_MASTER", | |
"value": "false" | |
} | |
], | |
"image": "fabric8/elasticsearch-k8s:1.5.0", | |
"imagePullPolicy": "PullIfNotPresent", | |
"name": "elasticsearch-container", | |
"ports": [ | |
{ | |
"containerPort": 9200 | |
}, | |
{ | |
"containerPort": 9300 | |
} | |
] | |
} | |
], | |
"id": "elasticsearchPod", | |
"version": "v1beta1" | |
} | |
}, | |
"labels": { | |
"component": "elasticsearch", | |
"type": "client" | |
} | |
}, | |
"replicaSelector": { | |
"component": "elasticsearch", | |
"type": "client" | |
}, | |
"replicas": 1 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment