democratic_csi/variables.yml

115 lines
2.6 KiB
YAML
Raw Normal View History

2023-08-21 20:16:35 +02:00
---
2023-12-21 22:16:14 +01:00
# Name of the instance (must be different if you plan to run several copies on the same namespace)
instance: democratic-csi
2023-08-21 20:16:35 +02:00
democratic_csi:
2024-02-26 19:49:29 +01:00
# Version to deplou
2024-05-07 13:27:00 +02:00
version: 1.9.1
2024-02-26 19:49:29 +01:00
2023-08-21 20:16:35 +02:00
# The Docker image to use
2024-02-26 19:49:29 +01:00
image: '[[ .docker.repo ]]democratic-csi:[[ .democratic_csi.version ]]-1'
2023-10-08 16:24:28 +02:00
# The ID of the storage plugin (the protocol will be appended
# Eg org.democratic-csi.iscsi and org.democratic-csi.nfs
2023-12-21 22:16:14 +01:00
plugin_id: org.[[ .instance ]]
2023-08-21 20:16:35 +02:00
2024-01-21 23:10:41 +01:00
nomad:
2024-02-26 19:49:29 +01:00
# Set a high priority as CSI controllers and nodes are required for a lot of jobs
2024-01-21 23:10:41 +01:00
priority: 90
2023-08-21 20:16:35 +02:00
# Settings for controllers
controller:
# Number of controler instances
count: 1
nomad:
constraints:
- operator: distinct_hosts
value: true
2023-08-21 20:16:35 +02:00
# Resource allocation for controllers
resources:
cpu: 100
2023-12-30 23:10:32 +01:00
memory: 128
memory_max: 192
2023-08-21 20:16:35 +02:00
2023-08-21 22:52:52 +02:00
# Custom env var to pass to controllers
env: {}
2023-08-21 20:16:35 +02:00
truenas:
api:
# The URL to reach truenas API
url: https://truenas.example.org:443
# Set to true to disable certificate verification
# Which is of course not recommanded
insecure: False
# Note: the API Key is stored in vault, in kv/service/democratic-csi in the truenas_api_key prop
2023-08-21 22:52:52 +02:00
iscsi:
zfs:
parent: zpool/csi/iscsi
snap_parent: zpool/csi/iscsisnap
reservation: false
blocksize: 16K
portals:
- 10.99.3.27:3260
target_group:
portal_group: 1
initiator_group: 1
auth_type: None
auth_group: ""
nfs:
zfs:
parent: zpool/csi/nfs
snap_parent: zpool/csi/nfssnap
quota: False
reservation: False
server: 10.99.3.27
allowed_networks:
- 10.99.9.0/24
2023-08-21 20:16:35 +02:00
# Settings for node plugins
node:
2024-03-27 11:13:18 +01:00
consul:
meta:
# Override the alloc meta to use the node name instead of the alloc index
alloc: '${node.unique.name}'
2023-08-21 20:16:35 +02:00
# Resource allocation
resources:
cpu: 100
2023-12-30 23:07:43 +01:00
memory: 128
memory_max: 192
2023-08-21 20:16:35 +02:00
2023-08-21 22:52:52 +02:00
# Custom env var to pass to controllers
env: {}
volumes:
# Democratic CSI nodes requiers an access to the host rootfs
# and the host /run/udev for everything to work.
# For this, you should create two volumes on your Nomad client, like this
#
# host_volume "host_root" {
# path = "/"
# }
# host_volume "host_run_udev" {
# path = "/run/udev"
# read_only = "true"
# }
host_root:
type: host
source: host_root
2023-12-15 15:08:02 +01:00
host_run_udev:
type: host
source: host_run_udev
2023-12-15 15:08:02 +01:00
read_only: true