feat: Mise à jour

This commit is contained in:
xavier committed 2024-03-13 23:14:26 +01:00
1 parent 6ebedbeca3
commit 91045fa232
19 files changed
+337 -27

No files matched your search

@@ -0,0 +1,8 @@
name: docker-volume-data
description: "A profile that add a volume for docker data"
devices:
docker-data:
type: disk
pool: btrfs
source: docker-data
path: /var/lib/docker
@@ -0,0 +1,8 @@
name: docker-volume-manifests
description: "A profile that mount a manifests directory from the host"
devices:
manifests:
path: /home/ubuntu/manifests
shift: "true"
source: /home/ubuntu/infra/new/docker/manifests
type: disk
@@ -0,0 +1,25 @@
name: docker
description: "A profile that deploy docker in an LXD container"
config:
linux.kernel_modules: overlay
raw.lxc: |-
lxc.apparmor.profile = unconfined
lxc.cgroup.devices.allow = a
lxc.mount.auto=proc:rw sys:rw
lxc.cap.drop =
security.nesting: "true"
security.privileged: "true"
cloud-init.vendor-data: |
#cloud-config
package_update: true
package_upgrade: true
packages:
- curl
runcmd:
- curl https://get.docker.com | sh
# Provision two network bridges
- sleep 30
- docker network create --driver bridge --subnet=172.25.0.0/24 front
- docker network create --driver bridge --subnet=172.30.0.0/24 back
timezone: Europe/Paris
locale: fr_FR.UTF-8
@@ -0,0 +1,40 @@
name: microk8s
description: "A profile that deploy microk8s in an LXD container"
devices:
aadisable:
path: /sys/module/nf_conntrack/parameters/hashsize
source: /sys/module/nf_conntrack/parameters/hashsize
type: disk
aadisable2:
path: /dev/zfs
source: /dev/zfs
type: disk
aadisable3:
path: /dev/kmsg
source: /dev/kmsg
type: unix-char
aadisable4:
path: /sys/fs/bpf
source: /sys/fs/bpf
type: disk
aadisable5:
path: /proc/sys/net/netfilter/nf_conntrack_max
source: /proc/sys/net/netfilter/nf_conntrack_max
type: disk
config:
linux.kernel_modules: ip_vs,ip_vs_rr,ip_vs_wrr,ip_vs_sh,ip_tables,ip6_tables,netlink_diag,nf_nat,overlay,br_netfilter
raw.lxc: |
lxc.apparmor.profile=unconfined
lxc.mount.auto=proc:rw sys:rw cgroup:rw
lxc.cgroup.devices.allow=a
lxc.cap.drop=
security.nesting: "true"
security.privileged: "true"
cloud-init.vendor-data: |
#cloud-config
package_update: true
package_upgrade: true
runcmd:
- [ 'snap', 'install', 'microk8s', '--classic' ]
timezone: Europe/Paris
locale: fr_FR.UTF-8