chore(clustertool): delete topolvm
This commit is contained in:
@@ -1,55 +0,0 @@
|
|||||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
|
||||||
kind: HelmRelease
|
|
||||||
metadata:
|
|
||||||
name: topolvm
|
|
||||||
namespace: topolvm-system
|
|
||||||
spec:
|
|
||||||
interval: 5m
|
|
||||||
releaseName: topolvm
|
|
||||||
chart:
|
|
||||||
spec:
|
|
||||||
|
|
||||||
chart: topolvm
|
|
||||||
version: 15.4.0
|
|
||||||
sourceRef:
|
|
||||||
kind: HelmRepository
|
|
||||||
name: topolvm
|
|
||||||
namespace: flux-system
|
|
||||||
install:
|
|
||||||
createNamespace: true
|
|
||||||
crds: CreateReplace
|
|
||||||
remediation:
|
|
||||||
retries: 3
|
|
||||||
upgrade:
|
|
||||||
crds: CreateReplace
|
|
||||||
remediation:
|
|
||||||
retries: 3
|
|
||||||
values:
|
|
||||||
lvmd:
|
|
||||||
managed: false
|
|
||||||
env:
|
|
||||||
- name: LVM_SYSTEM_DIR
|
|
||||||
value: /tmp
|
|
||||||
deviceClasses:
|
|
||||||
- name: thin
|
|
||||||
volume-group: topolvm_vg # Volume Group name used in LVM_Disk_Watcher
|
|
||||||
default: true
|
|
||||||
spare-gb: 10
|
|
||||||
type: thin
|
|
||||||
thin-pool:
|
|
||||||
name: topolvm_thin # Logical Volume name used in LVM_Disk_Watcher
|
|
||||||
overprovision-ratio: 10.0 # Adjust to your convenience
|
|
||||||
storageClasses:
|
|
||||||
- name: topolvm-thin-provisioner
|
|
||||||
storageClass:
|
|
||||||
fsType: xfs
|
|
||||||
isDefaultClass: false
|
|
||||||
volumeBindingMode: WaitForFirstConsumer
|
|
||||||
allowVolumeExpansion: true
|
|
||||||
additionalParameters:
|
|
||||||
"topolvm.io/device-class": "thin"
|
|
||||||
node:
|
|
||||||
lvmdEmbedded: true
|
|
||||||
|
|
||||||
controller:
|
|
||||||
replicaCount: 1
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Namespace
|
|
||||||
metadata:
|
|
||||||
name: topolvm-system
|
|
||||||
labels:
|
|
||||||
pod-security.kubernetes.io/enforce: privileged
|
|
||||||
topolvm.io/webhook: ignore
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
---
|
|
||||||
apiVersion: snapshot.storage.k8s.io/v1
|
|
||||||
kind: VolumeSnapshotClass
|
|
||||||
metadata:
|
|
||||||
name: topolvm-provisioner-thin
|
|
||||||
# annotations:
|
|
||||||
# snapshot.storage.kubernetes.io/is-default-class: "false"
|
|
||||||
driver: topolvm.io
|
|
||||||
deletionPolicy: Delete
|
|
||||||
@@ -1,63 +1,80 @@
|
|||||||
cluster:
|
- op: replace
|
||||||
proxy:
|
path: /machine/time
|
||||||
disabled: true
|
value:
|
||||||
|
"disabled": false
|
||||||
machine:
|
"servers":
|
||||||
time:
|
|
||||||
disabled: false
|
|
||||||
servers:
|
|
||||||
- "time.cloudflare.com"
|
- "time.cloudflare.com"
|
||||||
|
- op: add
|
||||||
kernel:
|
path: /machine/kernel
|
||||||
|
value:
|
||||||
modules:
|
modules:
|
||||||
- name: "dm_thin_pool"
|
- "name": "dm_thin_pool"
|
||||||
- name: "dm_mod"
|
- "name": "dm_mod"
|
||||||
- name: "nvme_tcp"
|
- "name": nvme_tcp
|
||||||
- name: "vfio_pci"
|
- "name": vfio_pci
|
||||||
- name: "uio_pci_generic"
|
- "name": uio_pci_generic
|
||||||
|
- op: replace
|
||||||
kubelet:
|
path: /cluster/proxy
|
||||||
extraArgs:
|
value:
|
||||||
rotate-server-certificates: true
|
"disabled": true
|
||||||
extraConfig:
|
- op: add
|
||||||
maxPods: 250
|
path: /machine/kubelet/extraArgs
|
||||||
shutdownGracePeriod: "15s"
|
value:
|
||||||
shutdownGracePeriodCriticalPods: "10s"
|
"rotate-server-certificates": true
|
||||||
extraMounts:
|
- op: add
|
||||||
- destination: "/var/openebs/local"
|
path: /machine/kubelet/extraConfig
|
||||||
type: "bind"
|
value:
|
||||||
source: "/var/openebs/local"
|
"maxPods": 250
|
||||||
options:
|
"shutdownGracePeriod": "15s"
|
||||||
|
"shutdownGracePeriodCriticalPods": "10s"
|
||||||
|
- op: add
|
||||||
|
path: /machine/kubelet/extraMounts
|
||||||
|
value:
|
||||||
|
- "destination": "/var/openebs/local"
|
||||||
|
"type": "bind"
|
||||||
|
"source": "/var/openebs/local"
|
||||||
|
"options":
|
||||||
- "bind"
|
- "bind"
|
||||||
- "rshared"
|
- "rshared"
|
||||||
- "rw"
|
- "rw"
|
||||||
- destination: "/var/lib/longhorn"
|
- destination: /var/lib/longhorn
|
||||||
type: "bind"
|
type: bind
|
||||||
source: "/var/lib/longhorn"
|
source: /var/lib/longhorn
|
||||||
options:
|
options:
|
||||||
- "bind"
|
- bind
|
||||||
- "rshared"
|
- rshared
|
||||||
- "rw"
|
- rw
|
||||||
|
- op: replace
|
||||||
features:
|
path: /machine/features/hostDNS
|
||||||
hostDNS:
|
value:
|
||||||
enabled: true
|
enabled: true
|
||||||
resolveMemberNames: true
|
resolveMemberNames: true
|
||||||
forwardKubeDNSToHost: false
|
forwardKubeDNSToHost: false
|
||||||
|
- op: add
|
||||||
sysctls:
|
path: /machine/sysctls
|
||||||
|
value:
|
||||||
fs.inotify.max_queued_events: "65536"
|
fs.inotify.max_queued_events: "65536"
|
||||||
fs.inotify.max_user_instances: "8192"
|
fs.inotify.max_user_instances: "8192"
|
||||||
fs.inotify.max_user_watches: "524288"
|
fs.inotify.max_user_watches: "524288"
|
||||||
net.core.rmem_max: "2500000"
|
net.core.rmem_max: "2500000"
|
||||||
net.core.wmem_max: "2500000"
|
net.core.wmem_max: "2500000"
|
||||||
vm.nr_hugepages: "2048"
|
|
||||||
|
|
||||||
files:
|
## TODO: Check how we can have this pass checks
|
||||||
- path: "/etc/cri/conf.d/20-customization.part"
|
# - op: add
|
||||||
permissions: 0
|
# path: /machine/udev
|
||||||
op: "create"
|
# value:
|
||||||
content: |
|
# # Thunderbolt
|
||||||
|
# - ACTION=="add", SUBSYSTEM=="thunderbolt", ATTR{authorized}=="0", ATTR{authorized}="1"
|
||||||
|
# # Intel GPU
|
||||||
|
# - SUBSYSTEM=="drm", KERNEL=="renderD*", GROUP="44", MODE="0660"
|
||||||
|
# # Google Coral USB Accelerator
|
||||||
|
# - SUBSYSTEMS=="usb", ATTRS{idVendor}=="1a6e", ATTRS{idProduct}=="089a", GROUP="20", MODE="0660"
|
||||||
|
# - SUBSYSTEMS=="usb", ATTRS{idVendor}=="18d1", ATTRS{idProduct}=="9302", GROUP="20", MODE="0660"
|
||||||
|
|
||||||
|
- op: add
|
||||||
|
path: /machine/files
|
||||||
|
value:
|
||||||
|
- content: |-
|
||||||
[plugins."io.containerd.grpc.v1.cri"]
|
[plugins."io.containerd.grpc.v1.cri"]
|
||||||
enable_unprivileged_ports = true
|
enable_unprivileged_ports = true
|
||||||
enable_unprivileged_icmp = true
|
enable_unprivileged_icmp = true
|
||||||
@@ -65,11 +82,10 @@ machine:
|
|||||||
discard_unpacked_layers = false
|
discard_unpacked_layers = false
|
||||||
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc]
|
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc]
|
||||||
discard_unpacked_layers = false
|
discard_unpacked_layers = false
|
||||||
|
permissions: 0
|
||||||
- path: "/etc/nfsmount.conf"
|
path: /etc/cri/conf.d/20-customization.part
|
||||||
permissions: 420
|
op: create
|
||||||
op: "overwrite"
|
- content: |-
|
||||||
content: |
|
|
||||||
[ NFSMount_Global_Options ]
|
[ NFSMount_Global_Options ]
|
||||||
nfsvers=4.2
|
nfsvers=4.2
|
||||||
hard=True
|
hard=True
|
||||||
@@ -78,3 +94,6 @@ machine:
|
|||||||
rsize=131072
|
rsize=131072
|
||||||
wsize=131072
|
wsize=131072
|
||||||
nconnect=8
|
nconnect=8
|
||||||
|
permissions: 420
|
||||||
|
path: /etc/nfsmount.conf
|
||||||
|
op: overwrite
|
||||||
|
|||||||
Reference in New Issue
Block a user