Skip to content

Commit

Permalink
Clean up repository ✨
Browse files Browse the repository at this point in the history
Signed-off-by: mi2428 <[email protected]>
  • Loading branch information
mi2428 committed Feb 27, 2019
1 parent 3abe793 commit 1fadcda
Show file tree
Hide file tree
Showing 8 changed files with 67 additions and 6 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@
- とりあえずDockerizeしただけのシンプルイメージ
- MariaDB連携すると不安定になるのでオンメモリで運用することにした

## ESXi側
- `/etc/netplan/50-cloud-init.yaml` を編集してアドレスを固定
- mgmtのメトリックを一番小さくすること(デフォルトルート)

## デプロイ
```
% make init
% make run
```
10 changes: 5 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ services:
container_name: kea-dhcp-mgmt
restart: unless-stopped
volumes:
- ./4000_mgmt.conf:/etc/kea/kea-dhcp4.conf:ro
- ./kea/4000_mgmt.conf:/etc/kea/kea-dhcp4.conf:ro
ports:
- 10.0.100.0:67:67
network_mode: host
Expand All @@ -18,7 +18,7 @@ services:
container_name: kea-dhcp-noc-private
restart: unless-stopped
volumes:
- ./4010_noc-private.conf:/etc/kea/kea-dhcp4.conf:ro
- ./kea/4010_noc-private.conf:/etc/kea/kea-dhcp4.conf:ro
ports:
- 203.178.156.66:67:67
network_mode: host
Expand All @@ -29,7 +29,7 @@ services:
container_name: kea-dhcp-camp-guest
restart: unless-stopped
volumes:
- ./4030_camp-guest.conf:/etc/kea/kea-dhcp4.conf:ro
- ./kea/4030_camp-guest.conf:/etc/kea/kea-dhcp4.conf:ro
ports:
- 203.178.158.2:67:67
network_mode: host
Expand All @@ -40,7 +40,7 @@ services:
container_name: kea-dhcp-camp-guest-nofw
restart: unless-stopped
volumes:
- ./4031_camp-guest-nofw.conf:/etc/kea/kea-dhcp4.conf:ro
- ./kea/4031_camp-guest-nofw.conf:/etc/kea/kea-dhcp4.conf:ro
ports:
- 203.178.157.2:67:67
network_mode: host
Expand All @@ -51,7 +51,7 @@ services:
container_name: kea-dhcp-camp-guest-isp
restart: unless-stopped
volumes:
- ./4032_camp-guest-isp.conf:/etc/kea/kea-dhcp4.conf:ro
- ./kea/4032_camp-guest-isp.conf:/etc/kea/kea-dhcp4.conf:ro
ports:
- 10.0.32.2:67:67
network_mode: host
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
58 changes: 58 additions & 0 deletions netplan/50-cloud-init.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
network:
ethernets:
ens160:
addresses:
- 10.0.100.0/16
#gateway4: 10.0.0.1
routes:
- to: 0.0.0.0/0
via: 10.0.0.1
metric: 1
nameservers:
addresses:
- 1.1.1.1
ens161:
addresses:
- 203.178.156.66/26
#gateway4: 203.178.156.65
routes:
- to: 0.0.0.0/0
via: 203.178.156.65
metric: 10
nameservers:
addresses:
- 1.1.1.1
ens192:
addresses:
- 203.178.157.2/27
#gateway4: 203.178.157.1
routes:
- to: 0.0.0.0/0
via: 203.178.157.1
metric: 10
nameservers:
addresses:
- 1.1.1.1
ens224:
addresses:
- 10.0.32.2/24
#gateway4: 10.0.32.1
routes:
- to: 0.0.0.0/0
via: 10.0.32.1
metric: 10
nameservers:
addresses:
- 1.1.1.1
ens256:
addresses:
- 203.178.158.2/23
#gateway4: 203.178.158.1
routes:
- to: 0.0.0.0/0
via: 203.178.158.1
metric: 10
nameservers:
addresses:
- 1.1.1.1
version: 2

0 comments on commit 1fadcda

Please sign in to comment.