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 clone the primehub repository or untar the primehub release
Init the configuration.
export PRIMEHUB_SCHEME=https export PRIMEHUB_DOMAIN=primehub.example.com export PRIMEHUB_CONSOLE_DOCKER_USERNAME=<the primehub console repo user> export PRIMEHUB_CONSOLE_DOCKER_PASSWORD=<the primehub console repo password> export KC_USER=<user> export KC_PASSWORD=<password> export KC_SCHEME=https export KC_DOMAIN=id.example.com export PRIMEHUB_STORAGE_CLASS=<the storage class of RWO PVCs> make init
then the configuration is generated to
~/.primehub/config/<cluster-name>
orbin/phenv --path
Configure 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-install
Install the keycloak
make keycloak-install
Install 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-keycloak
Diff and install primehub
make release-diff-primehub make primehub-upgrade
Install Grafana
Create Grafana Keycloak client:
make create-grafana-keycloak-client
Don't forget to update
.env
about yourGRAFANA_KEYCLOAK_PROXY_CLIENT_SECRET
.Set environment
GRAFANA_ADMIN
&GRAFANA_PASSWORD
in.env
fileNever forget to assign their values, or it will be hard for you to log in as
GRAFANA_ADMIN
since Grafana will pick a random password if we didn't assign it before.Check Helm difference:
make component-diff-prometheus-operator
Install applications:
make component-install-prometheus-operator
Check your Grafana ingress by running:
kubectl get ingresses -n monitoring prometheus-operator-grafana
Upgrade individual helm Release
Get the releases in helm
helm ls
Check the different
make release-diff-<release name>
Upgrade
make release-install-<release name>