Skip to content

Instantly share code, notes, and snippets.

@BenSlabbert
Created October 14, 2020 12:12
Show Gist options
  • Save BenSlabbert/6587b2dc6d35079d8fb6e72eb77f7895 to your computer and use it in GitHub Desktop.
Save BenSlabbert/6587b2dc6d35079d8fb6e72eb77f7895 to your computer and use it in GitHub Desktop.
use kubectl to set the value of an env variable in a deployment
#!/bin/bash
kubectl set env deploy DEPLOYMENT_NAME ENV_KEY=ENV_VALUE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment