Follow instruction from https://github.com/Digital-Ecosystems/ionos-kubernetes-cluster. Or use the packaged scripts.
cd ionos-kubernetes-cluster
cp .env-template .env
Edit the file with the following content
# Required configuration
export IONOS_TOKEN=''
# Optional configuration
export TF_VAR_datacenter_name='OpenGPT-X Dev'
export TF_VAR_kubernetes_cluster_name='dev'
source .env && ./create-ionos-kubernetes.sh
export KUBECONFIG=$(readlink -f kubeconfig-ionos.yaml)
helm install --replace -n nginx-ingress nginx-ingress ingress-nginx/ingress-nginx -f helm/ingress-controller/values.yaml --version 4.7.2 --create-namespace
export KUBECONFIG=$(readlink -f kubeconfig-ionos.yaml)
helm repo add jetstack https://charts.jetstack.io
helm repo update
# Install CRDs
kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.11.0/cert-manager.crds.yaml
# Install cert-manager
helm install cert-manager jetstack/cert-manager --namespace cert-manager --create-namespace --version v1.11.0 --create-namespace
# Create a ClusterIssuer
kubectl apply -f helm/cert-manager/cluster-issuer.yaml
Follow instruction from https://github.com/Digital-Ecosystems/gx-catalogue-ionos. Or use the packaged scripts.
cd gx-catalogue-ionos
cp .env-template .env
Edit the file with the following content
# Required configuration
export IONOS_TOKEN=''
export TF_VAR_dns_zone='opengpt-x.de'
export DNS_TYPE='manual'
export TF_VAR_kubeconfig=<path to the kubeconfig.yaml file>
In file gx-catalogue-ionos/deployment/helm/keycloak/values.yaml Change the adminPassword.
source .env && ./deploy-catalog-services.sh
Go to https://fc-key-server.opengpt-x.de login with admin credentials. Go to https://fc-key-server.opengpt-x.de/admin/master/console/#/create/user/gaia-x. Create a user, give it a strong password, give it the Client Roles :
- federated-catalogue/Ro-MU-A
- federated-catalogue/Ro-MU-CA
- federated-catalogue/Ro-PA-A
- federated-catalogue/Ro-SD-A Make sure no required actions is pending and email is verified.
ACCESS_TOKEN=$(
curl -s \
-d "client_id=federated-catalogue" \
-d "client_secret=keycloak-client-secret" \
-d "username=<USER>" \
-d "password=<PASSWORD>" \
-d "grant_type=password" \
"https://fc-key-server.opengpt-x.de/realms/gaia-x/protocol/openid-connect/token" | jq '.access_token' | tr -d '"'
)
echo $ACCESS_TOKEN
# get participants
curl -H "Authorization: Bearer $ACCESS_TOKEN" https://fc.opengpt-x.de/participants
# get users
curl -H "Authorization: Bearer $ACCESS_TOKEN" https://fc.opengpt-x.de/users
# get roles
curl -H "Authorization: Bearer $ACCESS_TOKEN" https://fc.opengpt-x.de/roles
Go to Go to https://fc-demo-portal.opengpt-x.de. Login with the user created before.