Skip to content

Instantly share code, notes, and snippets.

Hassan Youssef hasusuf

Block or report user

Report or block hasusuf

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
hasusuf / 01_extract_crt.rb
Created Jun 26, 2018 — forked from miry/01_extract_crt.rb
Extract certificate from the kubernetes config.
View 01_extract_crt.rb
require 'optparse'
require 'yaml'
require 'base64'
options = {
config_path: File.join(ENV['HOME'], '.kube', 'config'),
write_dir: File.join(ENV['HOME'], '.kube')
} do |opts|
hasusuf /
Created Jun 26, 2018 — forked from xueshanf/
Extract kubernetes cluster credentials from kubecfg
# Input: ./ my-cluster-name username
# Output: ./my-cluster-name-ca.crt ./username.crt ./username.key
# Exit on error
echo $1 && exit 1
# Prerequistes
You can’t perform that action at this time.