Giter Site home page Giter Site logo

mrcodecloud / goapp-eks-cicd-sample Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sv222/goapp-eks-cicd-sample

0.0 0.0 0.0 47 KB

This is a sample project that demonstrates how to set up a CI/CD pipeline for a Go application that runs on Kubernetes EKS. The pipeline includes steps for linting, building a Docker image, and deploying the application to EKS.

Go 67.89% YAML 32.11%

goapp-eks-cicd-sample's Introduction

Sample Go Application CI/CD to AWS EKS

This is a sample project that demonstrates how to build and deploy a Go application to AWS EKS using GitHub Actions and Docker. This project provides a starting point for building your own Go application and deploying it to EKS using a CI/CD pipeline.

Prerequisites

Before you can use this project to build and deploy a Go application to AWS EKS, you will need to:

  • Have a GitHub account
  • Have an AWS account
  • Have the AWS CLI installed and configured on your local machine
  • Have kubectl installed on your local machine
  • Have Docker installed on your local machine

Getting Started

To use this sample project for building and deploying a Go application to AWS EKS, follow these steps:

  1. Fork this repository on GitHub.
  2. Clone your forked repository to your local machine.
  3. Modify the code in main.go to suit your needs.
  4. Modify the values in the ci-cd.yaml and deployment.yaml files to match your environment.
  5. Commit your changes and push them to your forked repository.

GitHub Actions will automatically build a Docker image of your Go application and push it to Amazon ECR, and then deploy it to Amazon EKS.

Project Structure

This project has the following structure:

├── .github
│ └── workflows
│ └── ci-cd.yaml
├── deployment.yaml
├── Dockerfile
├── go.mod
├── go.sum
├── main_test.go
└── main.go
  • .github/workflows/ci-cd.yaml: The GitHub Actions workflow that triggers the build and deployment process.
  • deployment.yaml: The Kubernetes manifest that describes how to deploy the Docker image to EKS.
  • Dockerfile: The Dockerfile that specifies how to build a Docker image of the Go application.
  • go.mod and go.sum: The dependencies for the Go application.
  • main.go: The actual application code.

Note that this is just a sample project, and you may want to modify the project structure to suit your specific needs.

License

This sample project is licensed under the MIT License.

goapp-eks-cicd-sample's People

Contributors

mrcodecloud avatar sv222 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.