Install Helper (Advanced)
Install Helper is an advanced way to install PrimeHub and relative components. It uses environment variables to share common settings for multiple helm charts. Such as,
- Host name for ingress
- Airgap relative settings
- Keycloak settings
- Storage class
How to Use
Please untar the primehub release
Init the configuration.
export PRIMEHUB_SCHEME=https export PRIMEHUB_DOMAIN=primehub.example.com export KC_USER=<user> export KC_PASSWORD=<password> export KC_SCHEME=https export KC_DOMAIN=primehub.example.com export PRIMEHUB_STORAGE_CLASS=<the storage class of RWO PVCs> make initthen the configuration is generated to
~/.primehub/config/<cluster-name>orbin/phenv --pathConfigure PrimeHub for advanced features. Please reference the environment variables and primehub chart configuration.
For more detail of the configuration structure, please see install helper design
Install the metacontroller
make metacontroller-installInstall the keycloak
make keycloak-installInstall the primehub
make primehub-install
Once complete, please check the http(s)://primehub.example.com/
Upgrade Primehub
Diff and install keycloak
make release-diff-keycloak make release-install-keycloakDiff and install primehub
make release-diff-primehub make primehub-upgrade
Install Grafana
Create Grafana Keycloak client:
make create-grafana-keycloak-clientDon't forget to update
.envabout yourGRAFANA_KEYCLOAK_PROXY_CLIENT_SECRET.Set environment
GRAFANA_ADMIN&GRAFANA_PASSWORDin.envfileNever forget to assign their values, or it will be hard for you to log in as
GRAFANA_ADMINsince Grafana will pick a random password if we didn't assign it before.Check Helm difference:
make component-diff-prometheus-operatorInstall applications:
make component-install-prometheus-operatorCheck your Grafana ingress by running:
kubectl get ingresses -n monitoring prometheus-operator-grafana
Upgrade individual helm Release
Get the releases in helm
helm lsCheck the different
make release-diff-<release name>Upgrade
make release-install-<release name>