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

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

There is a newer version: 2.2.23.1
Show newest version
{
  "id": "fabric8-zookeeper-config",
  "kind": "List",
  "apiVersion": "v1",
  "name": "fabric8-zookeeper-config",
  "description": "Creates a ZooKeeper Server",
  "items": [
    {
      "kind": "Service",
      "apiVersion": "v1",
      "metadata": {
        "name": "zk-client"
      },
      "spec": {
        "ports": [
          {
            "protocol": "TCP",
            "port": 2181,
            "targetPort": "zookeeper-client-port"
          }
        ],
        "selector": {
          "name": "zookeeper-pod"
        }
      }
    },
    {
      "kind": "Service",
      "apiVersion": "v1",
      "metadata": {
        "name": "zk-peer-1"
      },
      "spec": {
        "ports": [
          {
            "protocol": "TCP",
            "port": 2888,
            "targetPort": "zookeeper-peer-port"
          }
        ],
        "selector": {
          "name": "zookeeper-pod",
          "server": "1"
        }
      }
    },
    {
      "kind": "Service",
      "apiVersion": "v1",
      "metadata": {
        "name": "zk-peer-2"
      },
      "spec": {
        "ports": [
          {
            "protocol": "TCP",
            "port": 2889,
            "targetPort": "zookeeper-peer-port"
          }
        ],
        "selector": {
          "name": "zookeeper-pod",
          "server": "2"
        }
      }
    },
    {
      "kind": "Service",
      "apiVersion": "v1",
      "metadata": {
        "name": "zk-peer-3"
      },
      "spec": {
        "ports": [
          {
            "protocol": "TCP",
            "port": 2890,
            "targetPort": "zookeeper-peer-port"
          }
        ],
        "selector": {
          "name": "zookeeper-pod",
          "server": "3"
        }
      }
    },
    {
      "kind": "Service",
      "apiVersion": "v1",
      "metadata": {
        "name": "zk-election-1"
      },
      "spec": {
        "ports": [
          {
            "protocol": "TCP",
            "port": 3888,
            "targetPort": "zookeeper-election-port"
          }
        ],
        "selector": {
          "name": "zookeeper-pod",
          "server": "1"
        }
      }
    },
    {
      "kind": "Service",
      "apiVersion": "v1",
      "metadata": {
        "name": "zk-election-2"
      },
      "spec": {
        "ports": [
          {
            "protocol": "TCP",
            "port": 3889,
            "targetPort": "zookeeper-election-port"
          }
        ],
        "selector": {
          "name": "zookeeper-pod",
          "server": "2"
        }
      }
    },
    {
      "kind": "Service",
      "apiVersion": "v1",
      "metadata": {
        "name": "zk-election-3"
      },
      "spec": {
        "ports": [
          {
            "protocol": "TCP",
            "port": 3890,
            "targetPort": "zookeeper-election-port"
          }
        ],
        "selector": {
          "name": "zookeeper-pod",
          "server": "3"
        }
      }
    },
    {
      "kind": "ReplicationController",
      "apiVersion": "v1",
      "metadata": {
        "name": "zookeeper-controller-1",
        "labels": {
          "name": "zookeeper-controller"
        }
      },
      "spec": {
        "replicas": 1,
        "selector": {
          "name": "zookeeper-pod",
          "server": "1"
        },
        "template": {
          "metadata": {
            "labels": {
              "name": "zookeeper-pod",
              "server": "1"
            }
          },
          "spec": {
            "volumes": [
              {
                "name": "data",
                "hostPath": {
                  "path": "/volumes/zookeeper/1/data"
                }
              },
              {
                "name": "log",
                "hostPath": {
                  "path": "/volumes/zookeeper/1/log"
                }
              }
            ],
            "containers": [
              {
                "name": "zookeeper-server-1",
                "image": "fabric8/zookeeper",
                "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"
                  }
                ],
                "env": [
                  {
                    "name": "ZK_SERVER_ID",
                    "value": "1"
                  },
                  {
                    "name": "USE_BRIDGE",
                    "value": "true"
                  }
                ],
                "volumeMounts": [
                  {
                    "name": "data",
                    "mountPath": "/opt/zookeeper/data"
                  },
                  {
                    "name": "log",
                    "mountPath": "/opt/zookeeper/log"
                  }
                ],
                "imagePullPolicy": "IfNotPresent"
              }
            ]
          }
        }
      }
    },
    {
      "kind": "ReplicationController",
      "apiVersion": "v1",
      "metadata": {
        "name": "zookeeper-controller-2",
        "labels": {
          "name": "zookeeper-controller"
        }
      },
      "spec": {
        "replicas": 1,
        "selector": {
          "name": "zookeeper-pod",
          "server": "2"
        },
        "template": {
          "metadata": {
            "labels": {
              "name": "zookeeper-pod",
              "server": "2"
            }
          },
          "spec": {
            "volumes": [
              {
                "name": "data",
                "hostPath": {
                  "path": "/volumes/zookeeper/2/data"
                }
              },
              {
                "name": "log",
                "hostPath": {
                  "path": "/volumes/zookeeper/2/log"
                }
              }
            ],
            "containers": [
              {
                "name": "zookeeper-server-2",
                "image": "fabric8/zookeeper",
                "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"
                  }
                ],
                "env": [
                  {
                    "name": "ZK_SERVER_ID",
                    "value": "2"
                  },
                  {
                    "name": "USE_BRIDGE",
                    "value": "true"
                  }
                ],
                "resources": {},
                "volumeMounts": [
                  {
                    "name": "data",
                    "mountPath": "/opt/zookeeper/data"
                  },
                  {
                    "name": "log",
                    "mountPath": "/opt/zookeeper/log"
                  }
                ],
                "imagePullPolicy": "IfNotPresent"
              }
            ]
          }
        }
      }
    },
    {
      "kind": "ReplicationController",
      "apiVersion": "v1",
      "metadata": {
        "name": "zookeeper-controller-3",
        "labels": {
          "name": "zookeeper-controller"
        }
      },
      "spec": {
        "replicas": 1,
        "selector": {
          "name": "zookeeper-pod",
          "server": "3"
        },
        "template": {
          "metadata": {
            "labels": {
              "name": "zookeeper-pod",
              "server": "3"
            }
          },
          "spec": {
            "volumes": [
              {
                "name": "data",
                "hostPath": {
                  "path": "/volumes/zookeeper/3/data"
                }
              },
              {
                "name": "log",
                "hostPath": {
                  "path": "/volumes/zookeeper/3/log"
                }
              }
            ],
            "containers": [
              {
                "name": "zookeeper-server-3",
                "image": "fabric8/zookeeper",
                "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"
                  }
                ],
                "env": [
                  {
                    "name": "ZK_SERVER_ID",
                    "value": "3"
                  },
                  {
                    "name": "USE_BRIDGE",
                    "value": "true"
                  }
                ],
                "resources": {},
                "volumeMounts": [
                  {
                    "name": "data",
                    "mountPath": "/opt/zookeeper/data"
                  },
                  {
                    "name": "log",
                    "mountPath": "/opt/zookeeper/log"
                  }
                ],
                "imagePullPolicy": "IfNotPresent"
              }
            ]
          }
        }
      }
    }
  ]
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy