Skip to content

Instantly share code, notes, and snippets.

@onefoursix
Last active September 23, 2020 00:22
Show Gist options
  • Save onefoursix/4c123de5dd833052ca136568f896777a to your computer and use it in GitHub Desktop.
Save onefoursix/4c123de5dd833052ca136568f896777a to your computer and use it in GitHub Desktop.
This script generates a lowercase UUID and stores the value in a Secret named sdc-id within the specified namespace
#!/usr/bin/env bash
## This script generates a lowercase UUID and stores the value
## in a Secret named sdc-id
# Create a lower-cased UUID
SDC_ID=`uuidgen | tr "[:upper:]" "[:lower:]"`
# Store the UUID in a Secret
kubectl create secret generic sdc-id --from-literal=sdc.id=${SDC_ID} -n <your namespace>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment