This code repository is the code and deck for my Data Processing with Spring presentation.
To run the examples as I do in the talk, you will need kind and k9s installed locally on your machine. You can run this on other Kubernetes installations, however the volume mount configurations will differ.
With kind
and k9s
installed on your machine and no kind cluster running, the other thing you will need to do is to sign up for a Wavefront account. You can do that for free here. Once registered, you will need your API key and URL.
-
In the root of the
config
directory, create a file calledwavefront-secret.yaml
with the following yaml in it replacing the<YOUR_API_KEY_HERE>
with your Wavefront API key base64 encoded:apiVersion: v1 kind: Secret metadata: name: wavefront-api labels: app: wavefront data: wavefront-api-token: <YOUR_API_KEY_HERE>
-
In the
kind-config.yaml
change the value for thehostPath
on line 7 to match the location you will put the input directory on your host system. -
From the root of the
config
directory, run thedeploy.sh
script. -
Run
k9s
. -
Using
k9s
select the mysql pod and presss
to ssh into the pod. -
Launch mysql via
mysql -u root -p
providing the password (yourpassword
if you have not changed it in the yaml). -
Choose the
mysql
database by runninguse mysql;
. -
Create the
TPS_REPORTS
table by running the create statement:CREATE TABLE TPS_REPORTS ( ID BIGINT NOT NULL AUTO_INCREMENT , COVERSHEET VARCHAR(100) NOT NULL, REPORT VARCHAR(100) NOT NULL, PRIMARY KEY (ID) ) ENGINE=InnoDB;
-
Type
exit;
to leave the MySql shell andexit
again to leave the pod. -
Using
k9s
select thescdf-server
pod and press<shift>-f
to add an ingress port. In my demo I used port 9393. -
In a browser navigate to
http://localhost:9393/dashboard
to find the SCDF dashboard.