CSCI-GA-2820-FA23-003 / promotions

NYU DevOps Promotions Service Fall 2023-003
Apache License 2.0
1 stars 0 forks source link

Kubernetes Deploy #63

Open KAIwangke opened 11 months ago

KAIwangke commented 11 months ago

Access Remote Kubernetes Cluster: The passage begins by mentioning future instructions for accessing a remote Kubernetes cluster, but currently focuses on setting up a local cluster.

Local Kubernetes Cluster Setup: It instructs to set up a local Kubernetes cluster in a desktop development environment, similar to a method used in a Kubernetes lab. This is done using the make cluster command to create a K3S cluster.

Project Repository Preparation:

A ./k8s folder needs to be created in the project repository. This folder should contain Kubernetes manifest files like deployment.yaml, service.yaml, secrets.yaml, ingress.yaml, etc. These files are crucial for Kubernetes to understand how to deploy the application. Database Deployment:

A postgres.yaml manifest must be created to deploy a database as a StatefulSet. This is essential for managing stateful applications in Kubernetes. Health Endpoint Creation:

A /health endpoint is to be added. This endpoint should return a JSON object {"status": "OK"} and a 200 OK return code. This setup is necessary for Kubernetes to check the health of the microservice. Deployment Using Kubernetes CLI:

The Kubernetes CLI command kubectl is to be used for deploying the service to the local Kubernetes cluster. Ingress Configuration:

It’s important to ensure that the ingress (an API object that manages external access to the services in a cluster) can access the application properly. Planning and Integration:

The final step involves writing Stories (as GitHub Issues) to plan the necessary work for creating integrations. These stories should then be added to the project backlog for tracking and implementation.