-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into travis-flaky-tests
- Loading branch information
Showing
24 changed files
with
286 additions
and
241 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# This is a Dockerfile for etcd that is built on the same base image | ||
# as the Vitess Dockerfile, so the base image can be shared. | ||
# | ||
# This image also contains bash, which is needed for startup scripts, | ||
# such as those found in the Vitess Kubernetes example. The official | ||
# etcd Docker image on quay.io doesn't have any shell in it. | ||
FROM golang:1.3-wheezy | ||
|
||
RUN mkdir -p src/github.com/coreos && \ | ||
cd src/github.com/coreos && \ | ||
curl -sL https://github.com/coreos/etcd/archive/v0.4.6.tar.gz | tar -xz && \ | ||
mv etcd-0.4.6 etcd && \ | ||
go install github.com/coreos/etcd | ||
CMD ["etcd"] |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
apiVersion: v1beta1 | ||
kind: ReplicationController | ||
id: etcd-{{cell}} | ||
desiredState: | ||
replicas: 3 | ||
replicaSelector: | ||
name: etcd | ||
cell: {{cell}} | ||
podTemplate: | ||
desiredState: | ||
manifest: | ||
version: v1beta1 | ||
id: etcd-{{cell}} | ||
containers: | ||
- name: etcd | ||
image: vitess/etcd:v0.4.6 | ||
command: | ||
- bash | ||
- "-c" | ||
- >- | ||
ipaddr=$(hostname -i) | ||
etcd -name $HOSTNAME -peer-addr $ipaddr:7001 -addr $ipaddr:4001 -discovery {{discovery}} | ||
labels: | ||
name: etcd | ||
cell: {{cell}} | ||
labels: | ||
name: etcd | ||
cell: {{cell}} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
# This is an example script that tears down the etcd servers started by | ||
# etcd-up.sh. It assumes that kubernetes/cluster/kubecfg.sh is in the path. | ||
|
||
# Delete replication controllers | ||
for cell in 'global' 'test'; do | ||
echo "Deleting pods created by etcd replicationController for $cell cell..." | ||
kubecfg.sh stop etcd-$cell | ||
|
||
echo "Deleting etcd replicationController for $cell cell..." | ||
kubecfg.sh delete replicationControllers/etcd-$cell | ||
|
||
echo "Deleting etcd service for $cell cell..." | ||
kubecfg.sh delete services/etcd-$cell | ||
done | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
apiVersion: v1beta1 | ||
kind: Service | ||
id: etcd-{{cell}} | ||
port: 4001 | ||
containerPort: 4001 | ||
selector: | ||
name: etcd | ||
cell: {{cell}} | ||
labels: | ||
name: etcd | ||
cell: {{cell}} |
Oops, something went wrong.