Problem:
- PV contents keep re-appearing, even when PV/PVC is removed even when
persistentVolumeReclaimPolicy
is set toDelete
- Underlying docker-desktop VM apparently still has contents
goroutine 2858169 [running]: | |
runtime/pprof.writeGoroutineStacks({0x7fc23ed13bb0, 0xc0314b8820}) | |
/usr/local/go/src/runtime/pprof/pprof.go:693 +0x70 | |
runtime/pprof.writeGoroutine({0x7fc23ed13bb0, 0xc0314b8820}, 0xc00085e800) | |
/usr/local/go/src/runtime/pprof/pprof.go:682 +0x2b | |
runtime/pprof.(*Profile).WriteTo(0x2974720, {0x7fc23ed13bb0, 0xc0314b8820}, 0xc) | |
/usr/local/go/src/runtime/pprof/pprof.go:331 +0x14b | |
net/http/pprof.handler.ServeHTTP({0xc0279c60fd, 0x8281e7}, {0x7fc3884310e0, 0xc0314b8820}, 0x8) | |
/usr/local/go/src/net/http/pprof/pprof.go:253 +0x49a | |
net/http/pprof.Index({0x7fc3884310e0, 0xc0314b8820}, 0xc0374e9b00) |
# List EKS addons AWS considers default for given cluster cersion | |
aws eks describe-addon-versions |jq '.addons[] | del(.addonVersions[].compatibilities[] | select(.clusterVersion != "1.22" or .defaultVersion != true) ) | del(.addonVersions[] | select(.compatibilities | length == 0) )' |
# Taken and adapted from https://gist.github.com/phrawzty/62540f146ee5e74ea1ab | |
#!/usr/bin/env python2 | |
import SimpleHTTPServer | |
import SocketServer | |
import logging | |
import sys | |
logging.basicConfig(stream=sys.stdout, level=logging.DEBUG) |
$: kubectl describe node ip-10-150-36-156.eu-west-1.compute.internal | |
<truncated> | |
Events: | |
Type Reason Age From Message | |
---- ------ ---- ---- ------- | |
Normal Starting 36m kubelet, ip-10-150-36-156.eu-west-1.compute.internal Starting kubelet. | |
Normal NodeHasSufficientDisk 36m (x2 over 36m) kubelet, ip-10-150-36-156.eu-west-1.compute.internal Node ip-10-150-36-156.eu-west-1.compute.internal status is now: NodeHasSufficientDisk | |
Normal NodeHasSufficientMemory 36m (x2 over 36m) kubelet, ip-10-150-36-156.eu-west-1.compute.internal Node ip-10-150-36-156.eu-west-1.compute.internal status is now: NodeHasSufficientMemory |
$: kubectl get nodes | |
NAME STATUS ROLES AGE VERSION | |
ip-10-150-34-78.eu-west-1.compute.internal Ready master 43d v1.10.6 | |
ip-10-150-35-189.eu-west-1.compute.internal Ready node 2h v1.10.6 | |
ip-10-150-36-156.eu-west-1.compute.internal Ready node 2h v1.10.6 | |
ip-10-150-37-179.eu-west-1.compute.internal NotReady node 2h v1.10.6 | |
ip-10-150-37-37.eu-west-1.compute.internal Ready master 43d v1.10.6 | |
ip-10-150-38-190.eu-west-1.compute.internal Ready node 4h v1.10.6 | |
ip-10-150-39-21.eu-west-1.compute.internal NotReady node 2h v1.10.6 | |
ip-10-150-39-64.eu-west-1.compute.internal Ready master 43d v1.10.6 |
import logging | |
from django import http | |
from django.views.generic import RedirectView | |
logger = logging.getLogger('django.request') | |
class Redirect307View(RedirectView): | |
""" |
https://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle
Mentioned: https://labs.spotify.com/2014/02/28/how-to-shuffle-songs/
Compute greatest common divisor: https://en.wikipedia.org/wiki/Euclidean_algorithm
Distance 2 ponits over surface earth: http://www.movable-type.co.uk/scripts/latlong.html