1
0
mirror of https://github.com/H0llyW00dzZ/My-RESTAPIs-Boilerplate.git synced 2025-02-06 11:00:20 +00:00
H0llyW00dzZ 5105873623
Docs [K8S Deployment] Update Documentation for Mascot (Logo) (#1378)
- [+] 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
2024-12-03 02:55:07 +07:00

2.0 KiB

K8s Deployment for REST API Boilerplate - Redis Insight

sailing-with-k8s The-Black-Pearl

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:

  1. Update the redis-insight.yaml file with your desired configuration, such as the number of replicas, resource limits, and environment variables.

  2. 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, and your-encryption-key with your actual TLS key, TLS certificate, and encryption key, respectively.

  3. 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.

  4. Wait for the deployment to complete and the pods to be in the "Running" state:

    kubectl get pods -l app=redisinsight
    
  5. 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