Skip to content

a simple golang app that makes an Http Request to the TradeMade public api and creates a k8s cronjob to execute the request every 2 minute

Notifications You must be signed in to change notification settings

thejams/golang_k8s_cronjob

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

golang_k8s_cronjob

a simple golang app that makes an Http Request to the TradeMade public api and creates a k8s cronjob to execute the request every 2 minute

instalation with minikube and kubernetes

  • make sure you have minikube and kubernetes already installed

  • execute the following steps

  • create the docker image for the cronjob with: docker build -t trade-made-cron -f Dockerfile .

  • generate all the kubernetes resources running: kubectl apply -f k8s/

  • the resources created by the previous command generate the following k8s resources:

  • 1 cronjob with 1 POD.

  • 1 secret for passing enviornment variables like the Api Key for the TradeMade public API.

About

a simple golang app that makes an Http Request to the TradeMade public api and creates a k8s cronjob to execute the request every 2 minute

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published