Usage Engine Private Edition Installation - GCP (4.2)
Having completed the preparations, it is now time to install Usage Engine Private Edition.
Main Installation Example
Example Certificate
Before performing the actual installation we are going to set up a certificate. Reason being that we will install Usage Engine Private Edition with TLS enabled.
Here we are going to use an ACME issuer type that is configured to match the Kubernetes cluster that was set up previously in the Preparations - GCP (4.2) chapter:
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
name: example-issuer
spec:
acme:
# The ACME server URL
server: https://acme-v02.api.letsencrypt.org/directory
# Email address used for ACME registration
# You must replace this email address with your own.
# Let's Encrypt will use this to contact you about expiring
# certificates, and issues related to your account.
email: <your valid email address>
# Name of a secret used to store the ACME account private key
privateKeySecretRef:
name: example-issuer-account-key
solvers:
- dns01:
cloudDNS:
# The ID of the GCP project
project: <project_id>
A few things that should be noted:
Set
emailto your email address of choice.Set the
project_idto your GCP project ID that can be found in the GCP dashboard
Assuming that the issuer spec above has been saved into a file called example-issuer.yaml, it can be created like this:
kubectl apply -f example-issuer.yamlInstall Helm Chart
Although the number of helm value combinations to set is virtually endless, some values should more or less always be set. All possible values can be viewed (and set) in the values.yaml file belonging to the helm chart.
So let’s start with a minimal set of values that will serve as a good starting point:
Example below assumes you have configured Postgres admin password through secret. If you have not done so please refer to Usage Engine Private Edition Preparations - GCP (4.2) for guidance.
environment: gcp
global:
ingressController:
serviceName: ingress-nginx-controller
domain: my-uepe-gke-1.pe-mz.gcp.digitalroute.net
imagePullSecrets:
- name: ecr-cred
licenseKey: <insert-your-license-key-string-here>
log:
format: json
platform:
db:
type: postgresql
tls:
cert:
public: certManager
certManager:
public:
issuer:
kind: ClusterIssuer
name: example-issuer
enabled: true
postgres:
adminUsername: postgres
host: db.my-uepe-gke-1.pe-mz.gcp.digitalroute.net
port: 5432
db: mz
persistence:
enabled: true
existingClaim: my-uepe-gke-1-filestore-pvcHere follows information on how you can determine the values to set in your particular installation:
Value | Comment |
|---|---|
| This value should be set to match the |
| This is referencing an image pull secret containing the credentials required in order to pull container images from the Digital Route AWS ECR registry. If you are hosting the container images in your own container registry, depending on how that is configured, another image pull secret is probably needed. See General Usage Engine Private Edition Preparations (4.2) for additional information. |
| The license key that can be found in the |
| These values are set to use the example issuer created at the beginning of this chapter. This should only be seen as an example and the values should be adjusted according to the real world situation. Specifically, the |
| The values related to the system database are set to match the Cloud SQL PostgreSQL service that was created in the Set Up Kubernetes Cluster - GCP (4.2) section. If another database service is being used, these values must be adjusted accordingly. Specifically, the value of Also, in this example, the system database is to be automatically created at install time. For this to happen, you need to provide the database administrator credentials. Hence, the |
| These properties enabled persistent volume and inform the helm installer to use the pre-configured persistent volume claim. Set Execute this command to get the pre-configured persistent volume claim name: kubectl get pvc -n <namespace>Set |
General documentation of the values above is provided in the values.yaml file in the usage-engine-private-edition helm chart.
In this example, the following assumptions have been made:
PostgreSQL is used as the system database.
Postgres admin username (
postgres.adminUsername) is set to the default PostgreSQL administrator ('postgres').It is assumed that you have previously bootstrapped the
postgresqlPasswordsecret key with a value equal to thedb_passwordconfigured in theterraform.tfvarsfile. For instructions on how to do this, please refer to the Usage Engine Private Edition Preparations - GCP (4.2) section.The system database is automatically created during installation.
jdbcPasswordandmzownerPasswordare randomly generated.postgresqlPassword/oraclePassword/saphanaPasswordis not randomly generated and therefore must be created as secret as described in point 3.If you are using the database tool
uepe-sys-db-tool.jarto create the system database manually, ensure that the credentials mentioned in point 5 and 6 are included in the secret. For more details, refer to the Usage Engine Private Edition Preparations - GCP (4.2) section.
The command below can be used to install Usage Engine Private Edition under the assumption that:
uepe-values.yamlis a file that contains the above values.<version>is the version of Usage Engine Private Edition to install. For example4.0.0.
helm install uepe digitalroute/usage-engine-private-edition --version <version> -n uepe -f uepe-values.yamlCheck that all pods are running and that all pod containers become ready (this may take a little while):
kubectl get pods -w
NAME READY STATUS RESTARTS AGE
desktop-online-7c54755c99-hd5zw 1/1 Running 0 60s
external-dns-78d56d8b74-r257g 1/1 Running 0 7d13h
ingress-nginx-controller-7c5cb6456-2gjmj 1/1 Running 0 5h37m
platform-0 1/1 Running 0 60s
uepe-operator-controller-manager-86b758f558-2t94r 2/2 Running 0 60s
uepe-operator-controller-manager-86b758f558-c92s7 2/2 Running 0 60sTo get the Desktop Online web user interface hostname:
kubectl get ingress -n uepeThe output shows FQDN hostname, IP address and port to access desktop online web user interface.
NAME CLASS HOSTS ADDRESS PORTS AGE
ingress-alb <none> desktop-online.my-uepe-gke-1.pe-mz.gcp.digitalroute.net,ingress.my-uepe-gke-1.pe-mz.gcp.digitalroute.net 34.102.139.165 80 13mThe Desktop Online user interface should now be accessible at:
https://desktop-online.my-uepe-gke-1.pe-mz.gcp.digitalroute.net
Note that it may take a little while before the DNS record gets registered.
During the initial Usage Engine Private Edition installation, the load-balancer’s TLS certificate may take a significant amount of time (~ 20-40 minutes) to provision. Desktop Online will only be accessible once the certificate has been successfully issued. To check the certificate provision status, run the following command:
kubectl get managedcertificates -n uepeAdditionally, note that once the certificate has been issued by Google, it will be reused in subsequent installations or upgrades without needing to be provisioned again.
Other Common Installation Configurations
Here follows a few common installation configurations for the Usage Engine Private Edition helm chart.
They should be seen as variations to the main installation example outlined above.
Persistent File Storage
If you have chosen to prepare a persistent file storage, in order for Usage Engine Private Edition to use it, make sure to set these additional helm values:
persistence:
enabled: true
existingClaim: <pvc name>Where <pvc name> is the name of the Persistent Volume Claim created in the Set Up Kubernetes Cluster - GCP (4.2) section.