Ruby:
# load the gem
require 'kubernetes'
# setup authorization
Kubernetes.configure do |config|
# Configure API key authorization: BearerToken
config.api_key['authorization'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['authorization'] = 'Bearer'