kubehelper : a golang project patches the replicas field of a kubernetes deployment

kubehelper

This golang project patches the replicas field of a kubernetes deployment for scaling purposes, this project is mainly just for fun and learning, but perhaps could have a usecase for automation for easy programmatic access.

Testing the project

  1. go mody tidy
  2. go build
  3. run executable
  4. send request:
curl --location --request PATCH 'http://localhost:8081/api/v1/deployment/scale' \
--header 'Content-Type: application/json' \
--data-raw '{
    "Deployment": "nginx-deployment",
    "Namespace": "default",
    "Replicas": 1
}'

Create local kind cluster

  1. kind create cluster --config kind-example-config.yaml
  2. switch context to kind
  3. kubectl apply -f test-deployment.yaml (for testing)
Owner
Noah Dlugoszewski
DevOps Engineer
Noah Dlugoszewski
Similar Resources

Fluent.go - A pure Go implementation of Project Fluent

fluent.go fluent.go is a pure Go implementation of Project Fluent Important noti

Oct 2, 2022

Go-todo-api - An example API project written Go and Fiber Framework

This is an example API project written Go and Fiber Framework. Test codes has been written for all controller functions. Environment variables are taken from config.yml.

Jan 24, 2022

E-commerce-project - RESTFUL API for TakTuku an E-Commerce App created for the purpose of study

About The Project RESTFUL API for TakTuku an E-Commerce App created for the purp

Jul 23, 2022

E-Commerce-Project - E-commerce adalah aplikasi untuk dapat melakukan jual-beli secara online

E-COMMERCE PROJECT E-commerce adalah aplikasi untuk dapat melakukan jual-beli se

May 23, 2022

Tts - A project takes advantage of a server to run compute some audio file from text you send it

Text to Speech Hey this project takes advantage of a server to run compute some

Jan 26, 2022

Backend to project Dating App. Written in GO, utilising Gin. MongoDB, AWS S3 and SNS.

Dating API Backend to project Dating App. Written in GO, utilising Gin. MongoDB, AWS S3 and SNS. In order to run simply type "go run ." The API requir

Apr 12, 2022

Hajimari is a beautiful & customizable browser startpage/dashboard with Kubernetes application discovery.

Hajimari is a beautiful & customizable browser startpage/dashboard with Kubernetes application discovery.

Hajimari ๐ŸŒ… ...The beginning of a pleasant experience Features Web search bar Dynamically list apps discovered from Kubernetes ingresses Support for n

Jan 4, 2023

Openconfig kubernetes operator

 Openconfig kubernetes operator

Openconfig kubernetes operator This repo covers the demo of generally using a kubernetes operator to reconcile network objects. The thought behind thi

Jul 12, 2022

A Golang REST API to handle users and posts for a simple instagram backend. Uses MongoDB as the database. Tested using golang-testing and Postman.

A Golang REST API to handle users and posts for a simple instagram backend. Uses MongoDB as the database. Tested using golang-testing and Postman.

A Golang REST API to handle users and posts for a simple instagram backend. Uses MongoDB as the database. Tested using golang-testing and Postman.

Oct 10, 2021
Kratos Project Template for golang

Kratos Project Template Install Kratos go get -u github.com/go-kratos/kratos/cmd/kratos/v2@latest Create a service # Create a template project kratos

Dec 11, 2021
Ares-admin - Kratos Project Template For Golang

Kratos Project Template Install Kratos go get -u github.com/go-kratos/kratos/cmd

Feb 15, 2022
This is a web project in golang, where we will try to use multiple concepts
This is a web project in golang, where we will try to use multiple concepts

This is a web project in golang, where we will try to use multiple concepts ##List of all the dependencies we have used in this project Name GoCommand

Feb 10, 2022
Generate a modern Web project with Go and Angular, React or Vue in seconds ๐Ÿš€
Generate a modern Web project with Go and Angular, React or Vue in seconds ๐Ÿš€

Goxygen Generate a Web project with Go and Angular, React or Vue. Goxygen aims at saving your time while setting up a new project. It creates a skelet

Jan 5, 2023
A restful api's with Gin Framework with a structured project that defaults to PostgreSQL database
A restful api's with Gin Framework with a structured project that defaults to PostgreSQL database

Welcome to Golang Gin boilerplate v2 The fastest way to deploy a restful api's with Gin Framework with a structured project that defaults to PostgreSQ

Oct 15, 2021
This is a template project to help beginners learn, or to help developers develop some interesting small projects
This is a template project to help beginners learn, or to help developers develop some interesting small projects

This is a template project to help beginners learn, or to help developers develop some interesting small projects

Dec 13, 2022
Project E-Commerce Alta Store Program Immersive Back End Batch 4
Project E-Commerce Alta Store Program Immersive Back End Batch 4

Project E-Commerce Project E-Commerce Alta Store Program Immersive Back End Batch 4 Explore the docs ยป Daftar Isi About The Project Built With ERD Con

Dec 30, 2021
Go gin server project

Go-gin-server-project simple server that is part of the project in "Topics in Pr

Dec 24, 2021
GIN Project starter with logger, jwt auth, and more

Yet Another Golang RESTfull API A quick story about this starter-kit So, when I tried to write my first golang project, especially for web api, I real

Nov 21, 2022
Broilerplate - A template project for new Go web backend applications
Broilerplate - A template project for new Go web backend applications

Broilerplate A template project for new Go web backend applications. Can be used

Mar 28, 2022