Skip to content

Latest commit

 

History

History

kubernetes

Kubernetes

Pre-reqs

  • EKS Cluster Rook Ceph, Autoscaler provisioned
  • kubectl CLI

Set-up

## create and set default namespace
$ kubectl create namespace kdb
$ sed -i 's|default.svc|kdb.svc|g' microservices-assembly.yaml
$ kubectl config set-context --current --namespace=kdb
## don't forget AWS REGION
# $ kubectl create configmap kxinsights-s3-configmap \
#     --from-file=sym=db/sym \
#     --from-file=par.txt=db/par.txt
$ kubectl create secret docker-registry kx-repo-access \
    --docker-username=${NEXUS_USER} \
    --docker-password=${NEXUS_PASSWORD} \
    --docker-server=registry.dl.kx.com
$ kubectl create secret generic kdb-license-info \
    --from-literal=license=$(base64 -w 0 < $QLIC/kc.lic)
# $ kubectl create secret generic aws-access-secret \
#     --from-literal=AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID} \
#     --from-literal=AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
$ kubectl apply -f rook-ceph-pvc.yaml -n kdb
$ kubectl apply -f microservices-assembly.yaml -n kdb

Port forward

$ kubectl port-forward service/kxi-sg-gw 5040:5040 -n kdb    ## allows you to query localhost:5040

Clean up

$ kubectl delete -f microservices-assembly.yaml -n kdb
$ kubectl delete -f rook-ceph-pvc.yaml -n kdb