sudo docker run -d --net=host --privileged --name=kubestack \
-v /sys:/sys:ro \
-v /:/rootfs:ro \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /var/run:/var/run:rw \
-v /var/lib/kubelet/:/var/lib/kubelet:rw \
-v /var/lib/docker/:/var/lib/docker:ro \
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 | |
DEISCTL_VERSION="1.7.0" | |
deisctl --version | grep $DEISCTL_VERSION || echo "Expected deisctl version (${DEISCTL_VERSION}) not found." && exit 1 | |
echo "Copying Deis units..." |
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
{ | |
"percent" : 6.297823041677475, | |
"bytesDone" : NumberLong("22117130240"), | |
"files" : { | |
"done" : 8, | |
"total" : 166 | |
}, | |
"current" : { | |
"source" : "/var/lib/mongodb_historical11/local_oplog_rs_p15_id__ddfdbfc0_1_19.tokumx", | |
"dest" : "/backup11/local_oplog_rs_p15_id__ddfdbfc0_1_19.tokumx", |
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
var balance_check = function(n) { | |
if ( n ) { | |
var output = db.chunks.aggregate([ | |
{ $group : { _id : { "_id":"$ns", "shard":"$shard" }, chunks : { $sum : 1 } }}, | |
{ $match : { "_id._id" : n } }, | |
{ $sort : { "chunks" : 1 } } | |
]); |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using Awesomium.Core; | |
namespace AwesomiumNewTest | |
{ |
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
docker: | |
registry: myregistry.com | |
servers: | |
- http://mynode01.com:4243 | |
- http://mynode02.com:4243 | |
collection: docker | |
repository-namespace: tsuru | |
router: hipache | |
deploy-cmd: /var/lib/tsuru/deploy | |
run-cmd: |
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
[Unit] | |
Description=Docker Application Container Engine | |
Documentation=http://docs.docker.com | |
After=docker.socket early-docker.target network.target | |
Requires=docker.socket early-docker.target | |
[Service] | |
EnvironmentFile=-/run/flannel_docker_opts.env | |
MountFlags=slave | |
LimitNOFILE=1048576 |
Create a backend service that simply serves the pod name, and a frontend haproxy instance that balances based on client cookies.
# This is the backend service
apiVersion: v1
kind: Service
metadata:
name: hostname
annotations:
# Enable sticky-ness on "SERVERID"
serviceloadbalancer/lb.cookie-sticky-session: "true"
OlderNewer