Kubernetes Deployment
Kubernetes provides high availability, auto-scaling, and robust container orchestration.
Requirements
- Kubernetes cluster (cloud-managed or self-hosted)
- Access to Docker Hub or Internal Container Registry that contains the RegScale Image
- A Microsoft SQL Server instance
- Persistent storage class with ReadWriteMany support
Deployment Preparation
- Refer to the following documentation for resource and database requirements:
- Download the RegScale manifest files:
- If deploying to AWS EKS:
- aws-efs-csi-sc.yaml (Skip if you already have the aws-efs storage class deployed)
- regscale-aws-pv-pvc.yaml
- regscale-aws-ingress.yaml
- If deploying to Azure AKS:
- azure-file-csi-sc.yaml (Skip if you already have the azurefile-csi storage class deployed)
- regscale-azure-pvc.yaml
- if deploying using NFS
- RegScale deployment manifests:
- regscale-secrets.yaml (Creates the secrets-regscale resource. This is where you set the RegScale DB connection string, DB username and Password, JWT secret key, and Encryption Key)
- regscale-deploy.yaml (Creates the following resources: config-regscale, deployment-regscale, and service-regscale)
- If deploying to AWS EKS:
- Review all manifest files and update as appropriate for your cluster, you will need to update the regscale-secrets.yaml file with the required values
Deployment Steps
-
Create the RegScale Namespace
kubectl create namespace regscale
-
Create the Storage Class and create the Persistent Volume and Persistent Volume Claim
- AWS CSI EFS
kubectl apply -f aws-efs-csi-sc.yaml kubectl apply -f regscale-pv-pvc.yaml
- Azure Files
kubectl apply -f azure-files-sc.yaml kubectl apply -f regscale-azure-pvc.yaml
- NFS
kubectl apply -f regscale-nfs-pv-pvc.yaml
- AWS CSI EFS
-
Apply the manifests in the following order
kubectl apply -f regscale-secrets.yaml kubectl apply -f regscale=deploy.yaml
-
Configure DNS/SSL as per your IT organization guidelines (example: AWS Route 53 with Certificate Manager)
-
Setup Ingress (The example in the following manifest is for AWS EKS using an Application Load-Balancer and could be different depending on how your cluster is configured)
kubectl apply -f regscale-aws-ingress.yaml
Updated about 16 hours ago