Step to replicate True Connector installation in minikube.
Minikube is local Kubernetes, focusing on making it easy to learn and develop for Kubernetes. To install Minikube refer to the official site.
Start minikube:
foo@bar:~$ minikube startStart the consumer and provider configmaps:
Consumer Data APP configmap
foo@bar:~$ kubectl apply -f https://raw.githubusercontent.com/Engineering-Research-and-Development/true-connector/main/kubernetes/be-dataapp-consumer-configmap.yamlexpected result:
configmap/be-dataapp-consumer-configmap created
Provider Data APP configmap
foo@bar:~$ kubectl apply -f https://raw.githubusercontent.com/Engineering-Research-and-Development/true-connector/main/kubernetes/be-dataapp-provider-configmap.yamlexpected result:
configmap/be-dataapp-provider-configmap created
Consumer Execution Core Container configmap
foo@bar:~$ kubectl apply -f https://raw.githubusercontent.com/Engineering-Research-and-Development/true-connector/main/kubernetes/ecc-consumer-configmap-v.2.yamlexpected result:
configmap/ecc-consumer-configmap created
Provider Execution Core Container configmap
expected result:
configmap/ecc-provider-configmap created
Start the certificates configmap:
Inside this configmap are present ssl-server.jks and truststoreEcc.jks.
expected result:
configmap/ca-pemstore configured
Start the consumer and provider pods:
Counsumer pod
expected result:
Provider pod
expected result:
Verify that the pods start up correctly:
expected result:
To test the True Connector in minikube environment have to enable the tunnel. It creates a route to services deployed with type LoadBalancer and sets their Ingress to their ClusterIP. It must be run in a separate terminal window to keep the LoadBalancer running. Ctrl-C in the terminal can be used to terminate the process at which time the network routes will be cleaned up.
expected result:
Now the services tc-consumer and tc-provider have an EXTERNAL-IP. In fact:
expected result:
Test the true connector. Note that the ip in the request url is the tc-consumer EXTERNAL-IP. Note also the value of Forward-To property in the body is 'tc-provider'.
expected result:
Using these two changes you can try same request present in Postman collection which can be used to initiate requests that are most commonly used.
TRUEConnector.postman_collection
TRUEConnector enviroment.postman_environment
This collection comes with predefined environments so be sure to also import environment file.
Last updated