Deploying Zercurity to Kubernetes with Kubectl

Why Kubernetes?

Installing Zercurity on Kubernetes


Downloading Zercurity

git clone
cd zercurity/installers/kubectl

Creating a namespace

kubectl create ns zercurity

Applying ConfigMaps and Secrets

kubectl apply -n zercurity -f cm-config.yaml
kubectl apply -n zercurity -f secret-config.yaml

Applying PersistentVolumeClaims

kubectl apply -n zercurity -f pv-nfs.yaml
kubectl -n zercurity get pv
kubectl apply -n zercurity -f pvc-*.yaml
kubectl -n zercurity get pvc

Applying the Deployments

kubectl apply -n zercurity -f deploy-*.yaml
kubectl -n zercurity get deploy
kubectl -n zercurity get pods

Applying the services and LoadBalancer

kubectl apply -n zercurity -f svc-*.yaml
kubectl -n zercurity get svc

Initialising the database and running the migration scripts

kubectl apply -n zercurity -f job-*.yaml

Accessing the web application

curl -k -vvv https://<Load balancer IP>/v1/healthcheck | json_pp{
“status”: “HEALTHY”
The Zercurity web application

Creating your initial user

kubectl -n zercurity exec backend-77c9cbf84d-lhg2g — ./zercurity — register — name “Tom” — email “tom@jerry.comhttps://app.zercurity.local/register/3bUJQ7z..aJLGC7W9S

Its all over!



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