All Downloads are FREE. Search and download functionalities are using the official Maven repository.

be.images.fabric8.zookeeper.2.0.44.source-code.kubernetes.json Maven / Gradle / Ivy

There is a newer version: 2.2.23.1
Show newest version
{
    "id": "fabric8-zookeeper-config",
    "kind": "Config",
    "apiVersion": "v1beta1",
    "name": "fabric8-zookeeper-config",
    "description": "Creates a ZooKeeper Server",
    "items": [
        {
            "apiVersion": "v1beta1",
            "creationTimestamp": null,
            "id": "zk-client",
            "kind": "Service",
            "port": 2181,
            "containerPort": "zookeeper-client-port",
            "selector": {
                "name": "zookeeper-pod"
            }
        },
        {
            "apiVersion": "v1beta1",
            "creationTimestamp": null,
            "id": "zk-peer-1",
            "kind": "Service",
            "port": 2888,
            "containerPort": "zookeeper-peer-port",
            "selector": {
                "name": "zookeeper-pod",
                "server": "1"
            }
        },
        {
            "apiVersion": "v1beta1",
            "creationTimestamp": null,
            "id": "zk-peer-2",
            "kind": "Service",
            "port": 2889,
            "containerPort": "zookeeper-peer-port",
            "selector": {
                "name": "zookeeper-pod",
                "server": "2"
            }
        },
        {
            "apiVersion": "v1beta1",
            "creationTimestamp": null,
            "id": "zk-peer-3",
            "kind": "Service",
            "port": 2890,
            "containerPort": "zookeeper-peer-port",
            "selector": {
                "name": "zookeeper-pod",
                "server": "3"
            }
        },

        {
            "apiVersion": "v1beta1",
            "creationTimestamp": null,
            "id": "zk-election-1",
            "kind": "Service",
            "port": 3888,
            "containerPort": "zookeeper-election-port",
            "selector": {
                "name": "zookeeper-pod",
                "server": "1"
            }
        },
        {
            "apiVersion": "v1beta1",
            "creationTimestamp": null,
            "id": "zk-election-2",
            "kind": "Service",
            "port": 3889,
            "containerPort": "zookeeper-election-port",
            "selector": {
                "name": "zookeeper-pod",
                "server": "2"
            }
        },
        {
            "apiVersion": "v1beta1",
            "creationTimestamp": null,
            "id": "zk-election-3",
            "kind": "Service",
            "port": 3890,
            "containerPort": "zookeeper-election-port",
            "selector": {
                "name": "zookeeper-pod",
                "server": "3"
            }
        },
        {
            "id": "zookeeper-controller-1",
            "kind": "ReplicationController",
            "labels": {
                "name": "zookeeper-controller"
            },
            "apiVersion": "v1beta1",
            "creationTimestamp": null,
            "desiredState": {
                "podTemplate": {
                    "desiredState": {
                        "manifest": {
                            "containers": [
                                {
                                    "image": "fabric8/zookeeper",
                                    "name": "zookeeper-server-1",
                                    "volumeMounts": [{
                                        "name": "data",
                                        "mountPath": "/opt/zookeeper/data"
                                    },
                                        {
                                            "name": "log",
                                            "mountPath": "/opt/zookeeper/log"
                                    }],
                                    "env": [
                                        {
                                            "name": "ZK_SERVER_ID",
                                            "value": "1"
                                        },
                                        {
                                            "name": "USE_BRIDGE",
                                            "value": "true"
                                        }
                                    ],
                                    "ports": [
                                        {
                                            "name": "zookeeper-client-port",
                                            "containerPort": 2181,
                                            "protocol": "TCP"
                                        },
                                        {
                                            "name": "zookeeper-peer-port",
                                            "containerPort": 2888,
                                            "protocol": "TCP"
                                        },
                                        {
                                            "name": "zookeeper-election-port",
                                            "containerPort": 3888,
                                            "protocol": "TCP"
                                        }
                                    ]
                                }
                            ],
                            "id": "zookeeper-pod-1",
                            "version": "v1beta1",
                            "volumes":[{
                                "name": "data",
                                "source": {"hostDir":{"path": "/volumes/zookeeper/1/data"}}
                                },
                                {
                                    "name": "log",
                                    "source": {"hostDir":{"path": "/volumes/zookeeper/1/log"}}
                                }
                            ]
                        },
                        "restartpolicy": "Always"
                    },
                    "labels": {
                        "name": "zookeeper-pod",
                        "server":  "1"
                    }
                },
                "replicaSelector": {
                    "name": "zookeeper-pod",
                    "server": "1"
                },
                "replicas": 1
            }
        },


        {
            "id": "zookeeper-controller-2",
            "kind": "ReplicationController",
            "labels": {
                "name": "zookeeper-controller"
            },
            "apiVersion": "v1beta1",
            "creationTimestamp": null,
            "desiredState": {
                "podTemplate": {
                    "desiredState": {
                        "manifest": {
                            "containers": [
                                {
                                    "image": "fabric8/zookeeper",
                                    "name": "zookeeper-server-2",
                                    "volumeMounts": [{
                                        "name": "data",
                                        "mountPath": "/opt/zookeeper/data"
                                    },
                                        {
                                            "name": "log",
                                            "mountPath": "/opt/zookeeper/log"
                                    }],
                                    "env": [
                                        {
                                            "name": "ZK_SERVER_ID",
                                            "value": "2"
                                        },
                                        {
                                            "name": "USE_BRIDGE",
                                            "value": "true"
                                        }
                                    ],
                                    "ports": [
                                        {
                                            "name": "zookeeper-client-port",
                                            "containerPort": 2181,
                                            "protocol": "TCP"
                                        },
                                        {
                                            "name": "zookeeper-peer-port",
                                            "containerPort": 2888,
                                            "protocol": "TCP"
                                        },
                                        {
                                            "name": "zookeeper-election-port",
                                            "containerPort": 3888,
                                            "protocol": "TCP"
                                        }
                                    ]
                                }
                            ],
                            "id": "zookeeper-pod-2",
                            "version": "v1beta1",
                            "volumes":[{
                                "name": "data",
                                "source": {"hostDir":{"path": "/volumes/zookeeper/2/data"}}
                            },
                                {
                                    "name": "log",
                                    "source": {"hostDir":{"path": "/volumes/zookeeper/2/log"}}
                                }
                            ]
                        },
                        "restartpolicy": "Always"
                    },
                    "labels": {
                        "name": "zookeeper-pod",
                        "server": "2"
                    }
                },
                "replicaSelector": {
                    "name": "zookeeper-pod",
                    "server": "2"
                },
                "replicas": 1
            }
        },

        {
            "id": "zookeeper-controller-3",
            "kind": "ReplicationController",
            "labels": {
                "name": "zookeeper-controller"
            },
            "apiVersion": "v1beta1",
            "creationTimestamp": null,
            "desiredState": {
                "podTemplate": {
                    "desiredState": {
                        "manifest": {
                            "containers": [
                                {
                                    "image": "fabric8/zookeeper",
                                    "name": "zookeeper-server-3",
                                    "volumeMounts": [{
                                        "name": "data",
                                        "mountPath": "/opt/zookeeper/data"
                                    },
                                    {
                                        "name": "log",
                                        "mountPath": "/opt/zookeeper/log"
                                    }],
                                    "env": [
                                        {
                                            "name": "ZK_SERVER_ID",
                                            "value": "3"
                                        },
                                        {
                                            "name": "USE_BRIDGE",
                                            "value": "true"
                                        }
                                    ],
                                    "ports": [
                                        {
                                            "name": "zookeeper-client-port",
                                            "containerPort": 2181,
                                            "protocol": "TCP"
                                        },
                                        {
                                            "name": "zookeeper-peer-port",
                                            "containerPort": 2888,
                                            "protocol": "TCP"
                                        },
                                        {
                                            "name": "zookeeper-election-port",
                                            "containerPort": 3888,
                                            "protocol": "TCP"
                                        }
                                    ]
                                }
                            ],
                            "id": "zookeeper-pod-3",
                            "version": "v1beta1",
                            "volumes":[{
                                "name": "data",
                                "source": {"hostDir":{"path": "/volumes/zookeeper/3/data"}}
                            },
                                {
                                    "name": "log",
                                    "source": {"hostDir":{"path": "/volumes/zookeeper/3/log"}}
                                }
                            ]
                        },
                        "restartpolicy": "Always"
                    },
                    "labels": {
                        "name": "zookeeper-pod",
                        "server": "3"
                    }
                },
                "replicaSelector": {
                    "name": "zookeeper-pod",
                    "server": "3"
                },
                "replicas": 1
            }
        }
    ]
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy