-
Notifications
You must be signed in to change notification settings - Fork 0
/
LXD MAAS
64 lines (54 loc) · 1.75 KB
/
LXD MAAS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# kubernetes rancher deployment
These are my personal instructions for getting a Juju deployment of Charmed Kubernetes up and running, managed by Rancher 2.x.
## Get MAAS working.
Instructions here.
## Get Controller Prepared
1. Fresh instance of Ubuntu 18.04
2. Run ssh-keygen \ cat .ssh/id_rsa.pub
3. Import ssh key into MAAS
## Get nodes prepared
1. Check to make sure storage is setup properly (RAID in MAAS)
2. Create bridges on all nodes using static IP addresses (192.168.1.10, 192.168.1.11) and turn on STP / 0s Delay
3. Deploy machines
4. Run: sudo swapoff -a
5. Run: curl https://releases.rancher.com/install-docker/18.09.2.sh | sh
6.
### Modify Juju Constraints Manually:
* juju bootstrap --constraints "mem=3.5G cores=2 root-disk=16G" [controller_name_here]
* juju config kubernetes-worker allow-privileged=true
* juju config kubernetes-master allow-privileged=true
config:
boot.autostart: "true"
limits.cpu: "4"
limits.memory: 4000MB
linux.kernel_modules: bridge,br_netfilter,ip_tables,ip6_tables,ip_vs,netlink_diag,nf_nat,overlay,xt_conntrack
raw.lxc: |-
lxc.apparmor.profile = unconfined
lxc.cgroup.devices.allow = a
lxc.mount.auto=proc:rw sys:rw cgroup:rw
lxc.cap.drop =
security.nesting: "true"
security.privileged: "true"
description: Default LXD profile
devices:
aadisable:
path: /sys/module/nf_conntrack/parameters/hashsize
source: /sys/module/nf_conntrack/parameters/hashsize
type: disk
aadisable1:
path: /sys/module/apparmor/parameters/enabled
source: /dev/null
type: disk
eth0:
name: eth0
nictype: bridged
parent: lxdbr0
type: nic
root:
path: /
pool: local
size: 30GB
type: disk
name: default
used_by: []
(more modules: ip_vs_rr,ip_vs_wrr,ip_vs_sh,nf_conntrack_ipv4)