Skip to content

Instantly share code, notes, and snippets.

View voxmaster's full-sized avatar
🇺🇦

Oleksii Marchenko voxmaster

🇺🇦
View GitHub Profile
@voxmaster
voxmaster / kubedf
Last active October 23, 2019 07:44 — forked from redmcg/kubedf
Bash script to show k8s PVC usage
#!/usr/bin/env bash
KUBEAPI=127.0.0.1:8001/api/v1/nodes
function getNodes() {
curl -s $KUBEAPI | jq -r '.items[].metadata.name'
}
function getPVCs() {
jq -s '[flatten | .[].pods[].volume[]? | select(has("pvcRef")) | '\
@voxmaster
voxmaster / create-docker-tls.sh
Last active August 4, 2018 13:34 — forked from Stono/create-docker-tls.sh
Creating and setting up Docker for TLS (can be applied to ubuntu )
#!/bin/bash
# This script will help you setup Docker for TLS authentication.
# Run it passing in the arguement for the FQDN of your docker server
#
# For example:
# ./create-docker-tls.sh myhost.docker.com
#
# The script will also create a profile.d (if it exists) entry
# which configures your docker client to use TLS
#