Skip to content

Instantly share code, notes, and snippets.

View davidlukac's full-sized avatar

David Lukac davidlukac

View GitHub Profile
@davidlukac
davidlukac / secret.json
Created April 11, 2020 21:41
terraform-poc
{
"USERNAME": "foo-user",
"PASSWORD": "somepassword123"
}
@davidlukac
davidlukac / k8s-get-version.sh
Last active March 30, 2021 11:32
Get Kubernetes cluster version from the cluster using kubectl CLI or kubernetes Terraform provider
#!/usr/bin/env bash
# Prerequsites:
# - have kubectl installed
# - be logged in via kubectl
# - have enough permissions to access kubeadm-config Config Map
# - have jq installed (https://stedolan.github.io/jq/)
# - have yq installed (https://mikefarah.gitbook.io/yq/)
kubectl get configmap kubeadm-config -n kube-system -o json | \