Measurement of energy consumption level on various layers of infrastructure and application components
The components are added are submodules to this repository.
git clone --recursive [email protected]:ALM/planetary.git
Or if you already cloned the repository, you can run the following command to initialize the submodules:
git submodule update --init --recursive
The deployment is automated using a Github Action but requires some initial setup. The action is triggered by a push to the main branch. The action will build the docker images and push them to the Falcon Artifactory and afterwards deploy the application to the cluster.
- Create a kubeconfig file for the cluster and save it as repository secret (KUBECONFIG)
- Create a service account to use for deployment
- https://tc-sb.code.siemens.io/cloud/platform-service/docs/cicd/
- When using the tempale, add statefulsets to resources of the apiGroup "" (required for postgres)
- Create secret with credentials for the Artifactory
kubectl create secret docker-registry regcred --docker-server=falcon.rtf-alm.siemens.cloud --docker-username=<usename> --docker-password=<password> --docker-email=<mail>
- Create secret for the services
kubectl create secret generic planetary-secrets --from-env-file=config/.secrets
- Adopt the
config/config.yaml
file to your needskubectl apply -f config/config.yaml