Skip to content

Latest commit

 

History

History
229 lines (150 loc) · 4.61 KB

File metadata and controls

229 lines (150 loc) · 4.61 KB

kopsrox.ini

proxmox

config related to proxmox setup

endpoint

127.0.0.1 the proxmox API hostnamei/dns or IP address

127.0.0.1 will work on any host running proxmox

port

8006 port to connect to proxmox API endpoint

8006 is the default

user

root@pam - user to connect as

See SETUP.md

token_name

kopsrox - see api key section above

See SETUP.md

api_key

icjecjeijciejceinceini

See SETUP.md

proxnode

proxmox the proxmox node that kopsrox will work on - the image and all nodes are created on this host

proxstor

local-lvm shared storage also works

proximgid

600 - the proxmox id used for the kopsrox image/template

Kopsrox uses a simple static id/ip assignments based on proximgid and network settings eg

[proxmox]
...
proximgid = 620
...
[kopsrox]
...
network = 192.168.0.170
...
- vmid ip type
0 620 - image
1 621 192.168.0.171 master 1
2 622 192.168.0.172 master 2
3 623 192.168.0.173 master 3
4 624 - spare
5 625 192.168.0.175 worker 1
6 626 192.168.0.176 worker 2
7 627 192.168.0.177 worker 3
8 628 192.168.0.178 worker 4
9 629 192.168.0.179 worker 5

up_image_url

https://cloud-images.ubuntu.com/minimal/daily/mantic/current/mantic-minimal-cloudimg-amd64.img - url to the cloud image you want to use as the base image

proxbridge

vmbr0 - the bridge to use - must have internet access via the networkgw defined below

kopsrox

vm_disk

20G - size of the disk for each node in Gigs

vm_cpu

1 - number of vcpus for each vm

vm_ram

2 - amount of ram in G

cloudinituser

admin - a user account for access to the vm

you can use this user name / password to login on the vm if required

cloudinitpass

password - a password for the cloudinituser - you can use this user name / password to login on the vm if required

cloudinitsshkey

sshkey.pub

network

"network" address of proxmox cluster

Kopsrox uses a simple static id/ip assignments based on proximgid and network settings eg

[proxmox]
...
proximgid = 620
...
[kopsrox]
...
network = 192.168.0.170
...
- vmid ip type
0 620 - image
1 621 192.168.0.171 master 1
2 622 192.168.0.172 master 2
3 623 192.168.0.173 master 3
4 624 - spare
5 625 192.168.0.175 worker 1
6 626 192.168.0.176 worker 2
7 627 192.168.0.177 worker 3
8 628 192.168.0.178 worker 4
9 629 192.168.0.179 worker 5

networkgw

192.168.0.1 the default gateway for the network ( must provide internet access )

netmask

24 cdir netmask for the network

This is equal to '255.255.255.0'

cluster

config relating to the cluster

name

kopsrox name of the cluster

the name is displayed in the cli output

nodes are named eg kopsrox-m1

k3s_version

v1.24.6+k3s1 - the version of k3s installed

masters

1 number of master nodes - only other supported value is 3

workers

0 number of worker nodes in the cluster - values upto 5 are supported

s3

config values for s3 etcd snapshot/restore operations.

If you're not using this you can leave these blank.

endpoint

eg s3.yourprovider.com

region

optional

access-key

393893894389

access-secret

ioewioeiowe - the access secret for your s3 provider

bucket

kopsrox - bucket name