Skip to content

Instantly share code, notes, and snippets.

@jimmidyson
Last active August 29, 2015 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jimmidyson/5aac6e351befe21bb52c to your computer and use it in GitHub Desktop.
Save jimmidyson/5aac6e351befe21bb52c to your computer and use it in GitHub Desktop.
Clustering on Kubernetes & OpenShift3 using DNS - replication controllers
{
"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