Operator for Code Ready Dependency Analytics Plateform Deployment
This Operator will deploy necessary Services in CRDA Plateform for Online Flow.
- kubectl (v1.17+)
- minikube.
kubectl
context should be set to minikube.You can download kubectx for easy context, namespace switching.
- go version v1.13+.
- docker version 17.03+.
- kustomize v3.1.0+
- operator-sdk
- Export
AWS_KEY
andAWS_SECRET
in System Environment. Verify by:printenv | grep AWS
.
- You can modify preset config values at f8a_v1alpha1_codereadyanalytics.yaml that caters to your needs and then generate image for same.
CRDA Service Development
CRDA Service Development
- Create Namespace:
kubectl create ns crda
- Run Operator:
make crda
This should deploy all the custom resources (CR) in local cluster in crda
namespace.
- Execute
kubectl get all -n crda
You should see something similar to:
NAME READY STATUS RESTARTS AGE
pod/api-server-6ccdcdcbd6-mh9c6 1/1 Running 0 4m16s
pod/bayesian-gremlin-http-6f454d4df7-4ltkf 1/1 Running 0 4m16s
pod/bayesian-pgbouncer-0 1/1 Running 0 4m16s
pod/bayesian-worker-api-854bd5598f-8x4pj 1/1 Running 1 4m16s
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
service/api-server NodePort 10.108.78.118 <none> 5000:32000/TCP 4m16s
service/bayesian-gremlin-http NodePort 10.105.117.132 <none> 8182:32500/TCP 4m16s
service/bayesian-pgbouncer LoadBalancer 10.104.65.12 <pending> 5432:31500/TCP 4m16s
NAME READY UP-TO-DATE AVAILABLE AGE
deployment.apps/api-server 1/1 1 1 4m16s
deployment.apps/bayesian-gremlin-http 1/1 1 1 4m17s
deployment.apps/bayesian-worker-api 1/1 1 1 4m16s
NAME DESIRED CURRENT READY AGE
replicaset.apps/api-server-6ccdcdcbd6 1 1 1 4m16s
replicaset.apps/bayesian-gremlin-http-6f454d4df7 1 1 1 4m17s
replicaset.apps/bayesian-worker-api-854bd5598f 1 1 1 4m16s
NAME READY AGE
statefulset.apps/bayesian-pgbouncer 1/1 4m16s
minikube service list
|-------------|-----------------------|--------------|-----------------------------|
| NAMESPACE | NAME | TARGET PORT | URL |
|-------------|-----------------------|--------------|-----------------------------|
| crda | api-server | 5000 | http://192.168.xx.yyy:32000 |
| crda | bayesian-gremlin-http | 8182 | http://192.168.xx.yyy:32500 |
| crda | bayesian-pgbouncer | 5432 | http://192.168.xx.yyy:31500 |
| default | kubernetes | No node port |
| kube-system | kube-dns | No node port |
|-------------|-----------------------|--------------|-----------------------------|
Production Installation via OLM :
- Install OLM on Server
operator-sdk olm install
- Generate CSV
operator-sdk generate csv --csv-version 0.1.0
- Install Operator
operator-sdk run packagemanifests --operator-version 0.1.0 --olm
PS: All resources are deployed in crda
namespace.