- modify your container so you can signal it somehow to disable writes
- update the containers with that change
- copy existing stateful set and give it a new name
- create a new stateful set from that
- for each replica
- exec into old container, stop writes
- exec into new container, stop writes
- copy over data
- enable writes in new container
- delete old stateful set
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
app: | |
image: latencyat/dashboard-static-metrics | |
ports: | |
- "3000:3000" | |
- "9090:9090" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
"""manifest-split extracts all documents in a kubernetes manifest to their own | |
files | |
Usage: | |
manifest-split [manifest.yaml] | |
If manifest is omitted, read from stdin and use 'default' as file prefix.""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
statically linked strace for amd64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"activated_slaves": 1, | |
"build_date": "2013-11-07 10:40:03", | |
"build_time": 1383849603, | |
"build_user": "bernardo", | |
"completed_frameworks": [ | |
{ | |
"active": 1, | |
"completed_tasks": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
readonly TMP=$(mktemp) | |
trap "rm $TMP" EXIT | |
aws ec2 describe-instances | \ | |
jq -r '.Reservations|map(.Instances)|map(.[])|map([.PrivateIpAddress,.InstanceId])[]|join(",")' | \ | |
while read l | |
do | |
ip=$(echo $l | cut -d, -f1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
### BEGIN INIT INFO | |
# Provides: prometheus | |
# Required-Start: $local_fs $remote_fs | |
# Required-Stop: $local_fs $remote_fs | |
# Should-Start: | |
# Should-Stop: | |
# Default-Start: S | |
# Default-Stop: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <netdb.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <errno.h> | |
#define CANARY "in_the_coal_mine" | |
struct { | |
char buffer[1024]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install docker | |
Reading package lists... Done | |
Building dependency tree | |
Reading state information... Done | |
The following packages were automatically installed and are no longer required: | |
aufs-tools cgroup-lite graphicsmagick libgraphicsmagick3 openjdk-7-jre-lib | |
Use 'apt-get autoremove' to remove them. | |
The following packages will be REMOVED: | |
lxc-docker lxc-docker-0.11.1 | |
The following NEW packages will be installed: |
I hereby claim:
- I am discordianfish on github.
- I am fish (https://keybase.io/fish) on keybase.
- I have a public key whose fingerprint is B76D 2104 35D6 1EA7 7FE2 300F B4D9 1A65 83F0 CA1C
To claim this, I am signing this object: