- [+] chore(k8s-deployment): update images in deployment files - [+] fix(k8s-deployment): fix typo in Redis deployment file - [+] fix(k8s-deployment): fix typo in REST API deployment file
2.0 KiB
K8s Deployment for REST API Boilerplate - Redis Insight
This repository contains Kubernetes (K8s) deployment files for a REST API boilerplate application. The deployment includes a Redis Insight service and a Redis Insight deployment.
Prerequisites
Before deploying the application, ensure that you have the following:
- A running Kubernetes cluster
kubectl
command-line tool installed and configured to communicate with your cluster- Redis Insight Docker image (
redis/redisinsight:latest
) available in your container registry
Deployment
To deploy the REST API boilerplate application using the provided K8s deployment files, follow these steps:
-
Update the
redis-insight.yaml
file with your desired configuration, such as the number of replicas, resource limits, and environment variables. -
Create the necessary secrets for the deployment:
kubectl create secret generic redisinsight-tls-secrets --from-file=tls.key=path/to/your/tls.key --from-file=tls.crt=path/to/your/tls.crt kubectl create secret generic redisinsight-encryption-secret --from-literal=encryption-key=your-encryption-key
Replace
path/to/your/tls.key
,path/to/your/tls.crt
, andyour-encryption-key
with your actual TLS key, TLS certificate, and encryption key, respectively. -
Apply the deployment files to your Kubernetes cluster:
kubectl apply -f redisinsight-deployment.yaml
This command will create the Redis Insight service and deployment in your Kubernetes cluster.
-
Wait for the deployment to complete and the pods to be in the "Running" state:
kubectl get pods -l app=redisinsight
-
Access the Redis Insight service using the external IP or domain name assigned to the service:
kubectl get services redis-insight-service
The output will display the external IP or domain