Valkey is the open source redis alternative. We have discussed getting AKS instance ready for Valkey in the post "Create AKS Cluster to Setup Valkey Cluster (Open Source Redis)". Let's look at the prerequisites for setting up Valkey.
First step is setting up a namespace for valkey in the AKS cluster.
We should create a kubernetes secret with valkey password. Ideally we should setup password with terraform and store it in a key vault. However, for poc let's just create a dummy password.
Next we need a storage account for Valkey disks.
Once applied above storage class we can see it is created in the AKS cluster.
The next prerequisite we need is a service account to allow list and read pod information. This is required for valkey clsuter intialization and to run reheal job for valkey clsuter. These two jobs we will disucss in future posts. For now lets create the service account.
The service account should be defined with role to list and read pods. Then the role should be bound to the service account with a RoleBinding.
The other requirement is setting up nginx-gateway in the AKS cluster. You can refer to below bog posts. Since deploying new nginx gateway, switch from ingress nginx controller parts can be skipped in folowwing posts.
- High Availability Deployment of Nginx Gateway Fabric Replacing Retired Ingress Nginx in AKS - Part 1 - Plan for Smooth Transition
- High Availability Deployment of Nginx Gateway Fabric Replacing Retired Ingress Nginx in AKS - Part 2 - Deploy Nginx-Gateway-Fabric
- High Availability Deployment of Nginx Gateway Fabric Replacing Retired Ingress Nginx in AKS - Part 3 - Setup Nginx-Gateway Routes and Create Gateway Policies to Map with Ingress Nginx Annotations
- High Availability Deployment of Nginx Gateway Fabric Replacing Retired Ingress Nginx in AKS - Part 4 - Switch Traffic from Ingress-Nginx to Nginx-Gateway
- High Availability Deployment of Nginx Gateway Fabric Replacing Retired Ingress Nginx in AKS - Part 5 - Cleanup Ingress-Nginx from the AKS Cluster
- Adding SnippetsFIlter to HTTPRoute in Nginx Gateway to Implement Proxy Annotations of Retired Ingress Nginx
- Handle Nginx Gateway Certificate Refresh While Inplace Upgrade in AKS
No comments:
Post a Comment