Skip to content

This repository guides you in creating a Go web server, Dockerizing it, and deploying it locally in Kubernetes with Minikube. Ideal for learning web server development and container orchestration.

Notifications You must be signed in to change notification settings

Paul-Weaver/go-server-k8s-deploy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PlutoPilot Go Web Server Kubernetes Deployment

This repository demonstrates how to create a simple Go web server, containerize it using Docker, and deploy it in Kubernetes locally using Minikube. It includes the following files:

  • main.go: Contains the Go code for the web server.
  • Dockerfile: Specifies the Docker image for the web server.
  • deployment.yaml: Defines the Kubernetes deployment.
  • go.mod: Lists project dependencies.

Prerequisites

Before getting started, ensure you have the following tools installed:

How to Run

  1. Clone this repository.
  2. Build the Docker image: docker build -t plutopilot-webserver .
  3. Start Minikube: minikube start
  4. Deploy the application: kubectl apply -f deployment.yaml
  5. Access the web server using port forwarding: kubectl port-forward deployments/plutopilot-deployment 8080:8080
  6. Open a web browser and go to http://localhost:8080 to see the "Welcome" message.

For more details and commands, please refer to the repository files and comments.

About

This repository guides you in creating a Go web server, Dockerizing it, and deploying it locally in Kubernetes with Minikube. Ideal for learning web server development and container orchestration.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published