Skip to content
This repository has been archived by the owner on Jan 18, 2023. It is now read-only.

Shopify/heroku-buildpack-kubernetes

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Kubectl in Heroku

Add the kuberentes binary to Heroku

Variable KUBERNETES_VERSION or empty for latest version.

# Add
heroku buildpacks:add https://github.com/okvic77/heroku-buildpack-kubernetes

# Remove
heroku buildpacks:remove https://github.com/okvic77/heroku-buildpack-kubernetes

The installation is done while deploy.

For credentials, write the config file to KUBECONFIG environment variable. The credentials have to be in a YAML format, so you can encode the file in base64 and save as the variable. Then decode while your app boot and write.

Example

heroku config:set KUBERNETES=$(cat configfile | base64)
if (process.env.KUBERNETES) {
  var data = new Buffer(process.env.KUBERNETES, 'base64');
  fs.writeFileSync(process.env.KUBECONFIG, data.toString('utf8'), 'utf8');
}

About

No description, website, or topics provided.

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%