https://github.com/kaungmyathan22/golang-k8s-deployment
Hello World Go Project with Kubernetes This is a simple Hello World application written in Go and deployed using Kubernetes. This guide will help you build, containerize, and deploy the application on a Kubernetes cluster.
https://github.com/kaungmyathan22/golang-k8s-deployment
golang kubernetes
Last synced: 3 months ago
JSON representation
Hello World Go Project with Kubernetes This is a simple Hello World application written in Go and deployed using Kubernetes. This guide will help you build, containerize, and deploy the application on a Kubernetes cluster.
- Host: GitHub
- URL: https://github.com/kaungmyathan22/golang-k8s-deployment
- Owner: kaungmyathan22
- Created: 2024-06-15T17:05:45.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-06-16T17:16:09.000Z (12 months ago)
- Last Synced: 2024-12-30T00:25:48.128Z (5 months ago)
- Topics: golang, kubernetes
- Language: Dockerfile
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Hello World Go Project with Kubernetes
This is a simple Hello World application written in Go and deployed using Kubernetes. This guide will help you build, containerize, and deploy the application on a Kubernetes cluster.
## Prerequisites
- [Go](https://golang.org/dl/) installed on your local machine.
- [Docker](https://www.docker.com/get-started) installed and running.
- Access to a Kubernetes cluster ([Minikube](https://minikube.sigs.k8s.io/docs/start/) for local development or a cloud provider's Kubernetes service).
- [kubectl](https://kubernetes.io/docs/tasks/tools/install-kubectl/) command-line tool installed and configured to access your Kubernetes cluster.## Project Structure
.
├── Dockerfile
├── go.mod
├── go.sum
├── main.go
├── k8s
│ ├── deploy.yaml
│ ├── service.yaml
│ ├── ingress.yaml
└── README.md## Deploy to Kubernetes
```
kubectl apply -f k8s/deploy.yaml
kubectl apply -f k8s/service.yaml
kubectl apply -f k8s/ingress.yaml
```## Cleanup
```
kubectl delete -f k8s/deploy.yaml
kubectl delete -f k8s/service.yaml
kubectl delete -f k8s/ingress.yaml
```## Conclusion
You have successfully built, containerized, and deployed a Hello World Go application on Kubernetes. This setup provides a scalable and manageable way to deploy applications using modern container orchestration.