...
Step 6) Setup K8S-EFS provisioner
- Download k8s-efs repository from git,
- Switch to the deploy directory
- cd external-storage/aws/efs/deploy/
- Apply rbac permissions
- Kubectl apply -f rbac.yaml
- Modify manifest.yaml. In the configmap section change the system.id: and aws.region: to match the details of the EFS you created. Change dns.name if you want to mount by your own DNS name and not by AWS's *file-system-id*.efs.*aws-region*.amazonaws.com.
...
- See following attachment for manifest.yaml,
View file | ||||
---|---|---|---|---|
|
5. Apply the manifest
kubectl apply -f manifest.yaml
6. Check PV and PVC created properly
kubectl get pv,
...
pvc (should return efs volume with aws-efs storage class)
Step 7) Setup Console/Kafka/Grafana/etc.. service types as load balancer for Helm charts
...
Console: ~/pnda/pnda-helm-chart/cloud-pnda/values.yaml
...
Kafka: ~/pnda/pnda-helm-chart/cloud-pnda/charts/kafka-manager
Grafana: ~/pnda/pnda-helm-chart/cloud-pnda/charts/grafana/values.yaml
Step 8) Add storage class as gp2 for all other pvc and aws-efs for deployment manager pvc.
...
Step 9) Install PNDA on eks with helm
(helm install --name pnda --namespace pnda cloud-pnda)
Step 10) Setup DNS alias for external IP’s in Route 53 to access the DNS like console.pnda.io within private network
Step 11) Access the console front end from any one of the ec2 instance.
...
Step 12) Testing the deployment of SparkStreaming
...
- To test the deployment of SparkStreaming we have created an example app literary-word-count-app-wf-0.3.2.tar.gz.
...
- To upload the package to the cloud-pnda platform:
- kubectl -n pnda port-forward service/pnda-package-repository 8888
- It is possible to temporarily expose the package repository API with kubectl port forwarding:
- curl -XPUT "http://localhost:8888/packages/literary-word-count-app- wf-0.3.2.tar.gz?user.name=" --data-binary "@literary-word-count-app- wf-0.3.2.tar.gz"
- You can see the uploaded package details under available packages in Package Management and then deploy the package by clicking Deploy button.
5. After successfully deploying the package, create/install the application in the Apps Tab
6. Verify the application on K8S cluster(Tested on Rancher cluster).
7. To delete the application, you have to click on delete button of particular application under Apps Tab,
Sample Spark Streaming example is in following Git repo,
https://github.com/sreenivasa-xor/SparkStreaming-Example-Application.git
Step 13) Clean-up
Delete PNDA on eks cluster
% helm del –purge pnda
Delete EKS Cluster:
% eksctl delete cluster --region=us-east-2 --name=pnda