Privacera deployment using AKS and Helm

az login → configure azure cli with your account

brew install helm (I used brew in my mac)

Verify az cli, kubectl and helm version

1 — MariaDB

2 — Zookeeper

3 — Solr

4 — Portal

5 — Ranger

portal.azure.com → click or search Kubernetes Services
Create Kubernetes Cluster

az aks get-credentials — resource-group ${RESOURCE_GROUP_NAME} — name ${CLUSTER_NAME}

kubectl get nodes

doc_uname= docker hub username
dock_password= docker hub password
helm_repo_url=
helm_repo_uname=
helm_repo_pwd=
helm_config_path=

Copy and paste the above parameters in your shell

helm repo add privacera ${helm_repo_url} — username ${helm_repo_uname} — password ${helm_repo_pwd}
“privacera” has been added to your repositories

helm search repo privacera/

neeraj_mac:~ neerajsab$ kubectl get namespace
NAME STATUS AGE
default Active 15m
kube-node-lease Active 15m
kube-public Active 15m
kube-system Active 15m
neeraj_mac:~ neerajsab$ NS=ns-blog-namespace
neeraj_mac:~ neerajsab$ kubectl create namespace $NS
namespace/ns-blog-namespace created
neeraj_mac:~ neerajsab$ kubectl get namespace
NAME STATUS AGE
default Active 16m
kube-node-lease Active 16m
kube-public Active 16m
kube-system Active 16m
ns-blog-namespace Active 4s
neeraj_mac:~ neerajsab$

neeraj_mac:~ neerajsab$ kubectl create secret -n $NS docker-registry regcred — docker-server=<get this from privacera> — docker-username=${doc_uname} — docker-password=${doc_password}
secret/regcred created
neeraj_mac:~ neerajsab$

helm repo add stable https://kubernetes-charts.storage.googleapis.com/

helm repo update

helm install stakater stable/reloader — set reloader.watchGlobally=false — namespace $NS

helm -n $NS install zk privacera/zookeeper -f $helm_config_path/zk.yml

kubectl -n $NS get pods

helm -n $NS install mariadb privacera/mariadb

helm search repo privacera/solr

helm -n $NS install solr privacera/solr -f $helm_config_path/solr.yml

kubectl exec -it -n $NS solr-1 -- bash -c "/opt/solr/bin/solr create -c ranger_audits -n ranger_audits -s 1 -rf 1"

helm search repo privacera/portal

helm -n $NS install portal privacera/portal -f ${helm_config_path}/portal.yml

helm search repo privacera/ranger

helm -n $NS install ranger privacera/ranger -f ${helm_config_path}/ranger.yml

kubectl -n $NS get svc

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store