supertubes mirror-maker2 deploy 🔗︎

Deploy MirrorMaker2 instances to Kubernetes clusters.

Synopsis 🔗︎

Deploy MirrorMaker2 instances to Kubernetes clusters for cross-cluster mirroring between Kafka clusters.

supertubes mirror-maker2 deploy [flags]

Examples 🔗︎


# Deploy MirrorMaker2 to multiple Kubernetes clusters specified in the descriptor file
$ supertubes mm2 deploy -f <path-to-deployment-descriptor-file>

# Deploy MirrorMaker2 to multiple Kubernetes clusters specified in the descriptor file and also deploy configmap with Grafana dashboard for monitoring
$ supertubes mm2 deploy -f <path-to-deployment-descriptor-file> --deploy-grafana-dashboard

# Deploy MirrorMaker2 to multiple Kubernetes clusters specified in the descriptor passed to stdin
$ supertubes mm2 deploy -f -<<EOF
# list of Kubernetes config file paths of clusters hosting our Kafka clusters that we want to make MM2 deployments aware of
kubernetesConfigs:
  - my-kubeconfig-1.yaml
  - my-kubeconfig-2.yaml
# list of Kafka clusters to make MM2 deployments aware of
kafkaClusters:
  - namespace: kafka
    name: kafka
    kubernetesConfigContext: k8s-cluster-1
    alias: kafka1
    internalListenerName: internal
    externalListenerName: external   
  - namespace: kafka
    name: kafka
    kubernetesConfigContext: user1@k8s-cluster-2
    alias: kafka2
    internalListenerName: internal
    externalListenerName: external
mirrorMaker2Properties: |-
  # replication topologies and flows, mm2 config, etc.
  kafka1->kafka2.enabled=true
  kafka2->kafka1.enabled=true
EOF

Options 🔗︎

  -f, --config string              Deployment descriptor file that describes MirrorMaker2 deployment topology and MirrorMaker2 configuration.
      --deploy-grafana-dashboard   Deploy Grafana dashboard. This flag has affect only if Grafana is present in the Kubernetes cluster and is configured to autoload dashboards from config maps.
      --grafana-label string       The label by which Grafana identifies config maps to autoload Grafana dashboards from. (default "app.kubernetes.io/supertubes_managed_grafana_dashboard")
  -h, --help                       help for deploy

Options inherited from parent commands 🔗︎

      --accept-license                  Accept the license: https://banzaicloud.com/docs/supertubes/evaluation-license
      --color                           use colors on non-tty outputs (default true)
      --context string                  name of the kubeconfig context to use
      --formatting.force-color          force color even when non in a terminal
      --interactive                     ask questions interactively even if stdin or stdout is non-tty
  -c, --kubeconfig string               path to the kubeconfig file to use for CLI requests
      --non-interactive                 never ask questions interactively
  -o, --output string                   output format (table|yaml|json) (default "table")
      --persistent-config-file string   Supertubes persistent config file to use instead of the default at ~/.banzai/supertubes/
  -v, --verbose                         turn on debug logging

SEE ALSO 🔗︎