ververica / ververica-platform-playground

Instructions for getting started with Ververica Platform on minikube.
https://docs.ververica.com/getting_started/index.html
Apache License 2.0
89 stars 39 forks source link

Allow enabling metrics/logging without teardown #29

Closed patricklucas closed 4 years ago

patricklucas commented 4 years ago

By always activating the Prometheus metrics reporter and by using helm upgrade --install, the setup script can be run multiple times idempotently to enable logging and/or metrics without first tearing down the existing installation.

Another side-effect of using helm upgrade --install is that we don't actually have to do Helm version discovery in setup.sh anymore.

patricklucas commented 4 years ago
patricklucas commented 4 years ago

I split the first commit into:

commit 4c0b0e21d61d184f5a7a8f466b628f9358fb5f23

    Minor chart values optimizations

    - Allow Elasticsearch to run as a non-privileged container by disabling
      its requirement for sysctl vm.max_map_count >= 262144
    - Specify an (unused) admin password for Grafana so that it does not
      regenerate its Kubernetes Secret on every upgrade which causes a
      needless restart

commit 35565726f028710ad993da1964d6217121e94f50

    Minor shell optimizations

    Remove a function param to make calls a bit more explicit and remove
    some code duplication.

commit ea5a4019102831c9795a140e333204b30e035f56

    Allow enabling metrics/logging without teardown

    By always activating the Prometheus metrics reporter and by using `helm
    install --upgrade`, the setup script can be run multiple times
    idempotently to enable logging and/or metrics without first tearing down
    the existing installation.