sample-go-multiarch

module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 15, 2024 License: MIT

README

Sample Mult-Arch Go Application

A very simple HTTP server that reports back the GOOS and GOARCH of the application, as well as other data related to the deployment environment.

Prerequisites

Before beginning, clone this repository using git. Your system should also have make installed if it does not come with your OS distribution.

Building
  • Install the go SDK v1.21 or higher.
  • Install ko or a container engine like Docker or Podman.
  • Push permissions to a container registry.
Deploying

Try It Out!

  • Run the server locally - execute the following in your terminal:
    make run
    
  • Build and push the container image - either:
    • Use ko by running
      make ko-build IMAGE_TAG_BASE=<Insert your image repo>
      
    • OR use your favorite container engine and run:
      make docker-build CONTAINER_TOOL=<docker | podman> IMAGE_TAG_BASE-<Insert your image repo>
      
  • Deploy the image on Kubernetes by running:
    make install IMAGE_TAG_BASE=<Insert your image repo>
    

Make It Your Own!

  • Build: Review the variables in the "Build" section of the Makefile.
  • Deploy: Review the defaults in values.yaml. Provide your own overrides by pointing the HELM_VALUES make variable to your Helm values file.

License

Licensed under the MIT License, Copyright 2024 Adam B Kaplan. Full license here: LICENSE

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL