Skip to content

yh11445/nestjs-mariadb-minikube-example

Repository files navigation

NestJS Mariadb Minikube Example

This repository provides an example of deploying a NestJS application in a Kubernetes environment using Minikube.

Features

  • Kubernetes Deployment: Example deployment configuration for a NestJS application.
  • Minikube: Local Kubernetes setup for testing and development.
  • Docker Integration: Dockerfile included for building the NestJS application image.

Getting Started

Prerequisites

  • Minikube
  • kubectl
  • Docker

Deployment

  1. Build Docker image:

    docker build -t nestjs-mariadb-minikube-example:latest .
  2. Setting Environment

    eval $(minikube -p minikube docker-env)
  3. Start Minikube:

    minikube start
  4. Deploy

    kubectl apply -f k8s/
  5. Application status check

    kubectl get pods
    kubectl get services
  6. Minikube tunneling

    minikube tunnel
  7. Access to service

    curl http://127.0.0.1:80

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published