Skip to content

Commit

Permalink
Merge branch 'feature/no-etcd-proxy' of github.com:zalando/spilo
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Kukushkin committed Jul 7, 2015
2 parents 2dd4bef + 1b61c60 commit 326a02d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
2 changes: 1 addition & 1 deletion etcd-cluster-appliance/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM zalando/ubuntu:14.04.1-1

ENV USER etcd
ENV HOME /home/${USER}
ENV ETCDVERSION 2.0.12
ENV ETCDVERSION 2.0.13

## Install python
RUN apt-get update && apt-get -y install python python-boto
Expand Down
23 changes: 19 additions & 4 deletions etcd-cluster-appliance/etcd-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ SenzaComponents:
- Ref: EtcdRole
InstanceType: t2.micro
SecurityGroups:
- app-etcd-cluster
- Fn::GetAtt:
- EtcdSecurityGroup
- GroupId
TaupageConfig:
ports:
2379: 2379
Expand All @@ -25,9 +27,9 @@ SenzaComponents:
scalyr_account_key: '{{Arguments.ScalyrAccountKey}}'
Type: Senza::TaupageAutoScalingGroup
AutoScaling:
Minimum: 3
Maximum: 3
MetricType: CPU
Minimum: 3
Maximum: 3
MetricType: CPU
SenzaInfo:
Parameters:
- HostedZone:
Expand All @@ -40,6 +42,19 @@ SenzaInfo:
Description: scalyr account key
StackName: etcd-cluster
Resources:
EtcdSecurityGroup:
Type: AWS::EC2::SecurityGroup
Properties:
GroupDescription: Etcd Appliance Security Group
SecurityGroupIngress:
- IpProtocol: tcp
FromPort: 22
ToPort: 22
CidrIp: 0.0.0.0/0
- IpProtocol: tcp
FromPort: 2379
ToPort: 2380
CidrIp: 0.0.0.0/0
EtcdRole:
Type: AWS::IAM::Role
Properties:
Expand Down

0 comments on commit 326a02d

Please sign in to comment.