Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117758125
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
4 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/examples/k3s-replicated/Makefile b/examples/k3s-replicated/Makefile
index f97dea3..7745519 100644
--- a/examples/k3s-replicated/Makefile
+++ b/examples/k3s-replicated/Makefile
@@ -1,57 +1,56 @@
SHELL=/bin/bash
PWD=$(shell pwd)
KOLABCTL=../../kolabctl
-IMAGE="${PWD}/../../build/packer/artifacts/qemu/kolab-minimal-0.1/kolab-minimal-0.1.qcow2"
SSHKEY=../../build/packer/kolab-default-key
DEPLOYMENT=../../deployments/k3s-replicated/
connect-infra1:
until ssh -i ${SSHKEY} -o StrictHostKeyChecking=no "root@$$(sudo virsh domifaddr infra1 --source agent | grep eth0 | grep ipv4 | head -1 | tr -s ' ' | cut -d ' ' -f5 | cut -d\/ -f1)"; \
do sleep 2; \
done
connect-infra2:
until ssh -i ${SSHKEY} -o StrictHostKeyChecking=no "root@$$(sudo virsh domifaddr infra2 --source agent | grep eth0 | grep ipv4 | head -1 | tr -s ' ' | cut -d ' ' -f5 | cut -d\/ -f1)"; \
do sleep 2; \
done
connect-worker1:
until ssh -i ${SSHKEY} -o StrictHostKeyChecking=no "root@$$(sudo virsh domifaddr worker1 --source agent | grep eth0 | grep ipv4 | head -1 | tr -s ' ' | cut -d ' ' -f5 | cut -d\/ -f1)"; \
do sleep 2; \
done
connect-worker2:
until ssh -i ${SSHKEY} -o StrictHostKeyChecking=no "root@$$(sudo virsh domifaddr worker2 --source agent | grep eth0 | grep ipv4 | head -1 | tr -s ' ' | cut -d ' ' -f5 | cut -d\/ -f1)"; \
do sleep 2; \
done
connect-test1:
until ssh -i ${SSHKEY} -o StrictHostKeyChecking=no "root@$$(sudo virsh domifaddr test1 --source agent | grep eth0 | grep ipv4 | head -1 | tr -s ' ' | cut -d ' ' -f5 | cut -d\/ -f1)"; \
do sleep 2; \
done
ansible:
env ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook -v -i inventory.yaml -D ${DEPLOYMENT}/ansible/playbook.yaml
ansible-testnode:
env ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook -v --private-key=${SSHKEY} -i inventory.yaml -D ${DEPLOYMENT}/ansible/setup-testnode.yaml
recreate:
rm -f values.yaml
env ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook -v -e "recreate_vm=true" --private-key=${SSHKEY} -i inventory.yaml -D ${DEPLOYMENT}/ansible/playbook.yaml
deploy:
env KUBECONFIG=./kubeconfig.yaml CHART_URL=../../helm ${KOLABCTL} deploy
apply:
env KUBECONFIG=./kubeconfig.yaml CHART_URL=../../helm ${KOLABCTL} apply
# Build local images
build-images:
pushd ../../ ; \
build/build.sh ;
# Push images to the local registry
push-images:
env ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook -v --private-key=${SSHKEY} -i inventory.yaml -D ${DEPLOYMENT}/ansible/push-local-images.yaml
diff --git a/examples/k3s-replicated/inventory.yaml b/examples/k3s-replicated/inventory.yaml
index f20c6fb..2fd33bb 100644
--- a/examples/k3s-replicated/inventory.yaml
+++ b/examples/k3s-replicated/inventory.yaml
@@ -1,68 +1,69 @@
# Secrets should just be generated and put into values.yaml (we need them to setup the database though)
# usernames/databse names can be defaults
# The chart should default to the packaged location.
# Don't mess around with default generated ssh key
# ** Have a default root password
# ** Set a new root password as part of provisioning
# ** Use the new password
all:
children:
ungrouped:
hosts:
localhost:
ansible_connection: local
vars:
virtual_ip: 192.168.122.201
vm_root_password: simple123
db_root_password: simple123
db_rc_password: simple123
db_kolab_password: simple123
db_monitoring_password: simple123
domain: kolab.local
admin_password: simple123
- chart_url: "{{ playbook_dir }}/../../../kolab"
+ chart_url: "{{ playbook_dir }}/../../../helm"
# This will create a local registry on infra1, which will have to be manually populated.
local_registry: true
- recreate_vm: false
provision_vm: true
data_pool: "default"
- mariadb_size: 100M
+ mariadb_size: 500M
k3s_size: 100M
amavis_size: 100M
imap_size: 100M
+ imapmetadata_size: 20M
minio_size: 100M
postfix_size: 100M
- prometheus_size: 100M
- ldap_size: 100M
+ prometheus_size: 300M
logs_size: 100M
- disk_image_path: /home/mollekopf/src/kolab-kubernetes/build/packer/artifacts/qemu/kolab-minimal-0.1/kolab-minimal-0.1.qcow2
k3s_db_password: simple123
# Prevent dangerous changes
production: false
+ # disk_image_path: /home/mollekopf/src/kolab-kubernetes/build/packer/artifacts/qemu/kolab-minimal-0.1/kolab-minimal-0.1.qcow2
+ use_kickstart_file: true
+ install_url: "https://vault.almalinux.org/9.5/BaseOS/x86_64/os/"
infrastructure_nodes:
hosts:
infra1:
mariadb:
bootstrap: true
infra2:
worker_nodes:
hosts:
worker1:
worker2:
hypervisor_primary_group:
vars:
qemu_uri: qemu:///system
hosts:
infra1:
worker1:
test1:
hypervisor_secondary_group:
vars:
qemu_uri: qemu:///system
hosts:
infra2:
worker2:
test_nodes:
hosts:
test1:
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Sat, Apr 4, 9:37 AM (3 w, 5 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
0a/d2/9f9c1e5c157148c46d3cc6b645d6
Default Alt Text
(4 KB)
Attached To
Mode
R114 kolab-infrastructure
Attached
Detach File
Event Timeline