mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-21 12:13:55 +09:00
fix(linstor): update piraeus-operator to v2.12.1
The nfs-server DaemonSet runs piraeus-csi-nfs-server v1.10.3, which boots systemd as PID 1 in a privileged container with the host /dev mounted. Its getty units hang up the host's getty@tty1 about a second after the pod starts; systemd restarts the host getty until it hits the start limit and gives up, so login on the local or out-of-band console stops working on nodes that run the NFS server. Seen on bare-metal Ubuntu 24.04 nodes with Cozystack 1.6.5 and 1.7.0. Upstream fixed the image by disabling the services the NFS server does not need (piraeusdatastore/linstor-csi#417, reported as piraeusdatastore/piraeus-operator#961); v1.10.6 includes the fix. v2.12.1 is the current stable release. Its image set is LINSTOR 1.35.3 and LINSTOR CSI v1.13.2, which this repository builds itself; both builds follow in the next commits. The CSI release line is what carries IO QoS limits (qos.linbit.com/* StorageClass parameters, added in v1.11.3), which operators have asked for. Behaviour that changes with this range: - The CSIDriver moves to fsGroupPolicy: File, so fsGroup is applied to ReadWriteMany filesystem volumes too. - The operator manages Secrets only in its own namespace, and the CSI controller loses its cluster-wide read on Secrets; nothing in this repository references snapshotter Secrets. - The csi-health-monitor sidecar is removed. - Volume group snapshots are enabled only when the groupsnapshot.storage.k8s.io/v1 API is served; the snapshot controller here still ships v1alpha1, so they stay off. The csi-provisioner arguments are unchanged in this range, so the restated strictTopology list stays complete. The chart is vendored the way `make update` does it, which also drops the stale CRD copy from the vendored chart; piraeus-operator-crds installs the CRDs. Declare the local chart dependency so Helm can validate the umbrella chart without changing its rendered resources. This commit is not deployable on its own. The operator now hands the CSI pods their client certificate through LS_USER_CERTIFICATE_FILE and LS_USER_KEY_FILE, which the linstor-wait-until in the current linstor-csi image does not read, so the CSI init containers retry forever until the linstor-csi update in the next commit. Assisted-by: LLM Signed-off-by: Aleksei Sviridkin <f@lex.la>
This commit is contained in:
15 files changed
+372
-2215
No files matched your search
@@ -34,7 +34,7 @@ tests:
|
||||
# Until there is, the re-check on a bump is a human obligation, stated in
|
||||
# templates/cluster.yaml beside the list.
|
||||
#
|
||||
# The list was last verified complete against piraeus-operator v2.10.2:
|
||||
# The list was last verified complete against piraeus-operator v2.12.1:
|
||||
# eleven upstream flags plus --strict-topology.
|
||||
- it: the restated argument list is complete
|
||||
template: templates/cluster.yaml
|
||||
|
||||
@@ -151,13 +151,17 @@ spec:
|
||||
*SecretName using the issuer configured here.
|
||||
properties:
|
||||
group:
|
||||
description: Group of the resource being referred to.
|
||||
description: |-
|
||||
Group of the issuer being referred to.
|
||||
Defaults to 'cert-manager.io'.
|
||||
type: string
|
||||
kind:
|
||||
description: Kind of the resource being referred to.
|
||||
description: |-
|
||||
Kind of the issuer being referred to.
|
||||
Defaults to 'Issuer'.
|
||||
type: string
|
||||
name:
|
||||
description: Name of the resource being referred to.
|
||||
description: Name of the issuer being referred to.
|
||||
type: string
|
||||
required:
|
||||
- name
|
||||
@@ -201,6 +205,11 @@ spec:
|
||||
type: object
|
||||
x-kubernetes-map-type: atomic
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
replicas:
|
||||
description: Number of desired pods. Defaults to 1.
|
||||
format: int32
|
||||
minimum: 0
|
||||
type: integer
|
||||
type: object
|
||||
csiController:
|
||||
description: CSIController controls the deployment of the CSI Controller
|
||||
@@ -320,13 +329,17 @@ spec:
|
||||
issuer configured here.
|
||||
properties:
|
||||
group:
|
||||
description: Group of the resource being referred to.
|
||||
description: |-
|
||||
Group of the issuer being referred to.
|
||||
Defaults to 'cert-manager.io'.
|
||||
type: string
|
||||
kind:
|
||||
description: Kind of the resource being referred to.
|
||||
description: |-
|
||||
Kind of the issuer being referred to.
|
||||
Defaults to 'Issuer'.
|
||||
type: string
|
||||
name:
|
||||
description: Name of the resource being referred to.
|
||||
description: Name of the issuer being referred to.
|
||||
type: string
|
||||
required:
|
||||
- name
|
||||
@@ -345,6 +358,18 @@ spec:
|
||||
* Store credentials for accessing remotes for backups.
|
||||
See https://linbit.com/drbd-user-guide/linstor-guide-1_0-en/#s-encrypt_commands for more information.
|
||||
type: string
|
||||
maxConcurrentEvacuations:
|
||||
description: |-
|
||||
MaxConcurrentEvacuations limits how many Satellites are evacuated at the same time when using the
|
||||
"Evacuate" deletion policy.
|
||||
|
||||
This applies both to Satellites removed because their node no longer matches the cluster, and to nodes
|
||||
removed through ClusterAPI. While the limit is reached, additional Satellites wait for a free slot before
|
||||
their volumes are moved and, for ClusterAPI managed nodes, before the node is allowed to drain.
|
||||
A value of 0 (the default) places no limit on the number of concurrent evacuations.
|
||||
format: int32
|
||||
minimum: 0
|
||||
type: integer
|
||||
nfsServer:
|
||||
description: NFSServer controls the deployment of the LINSTOR CSI
|
||||
NFS Server DaemonSet.
|
||||
@@ -568,9 +593,10 @@ spec:
|
||||
operator:
|
||||
description: |-
|
||||
Operator represents a key's relationship to the value.
|
||||
Valid operators are Exists and Equal. Defaults to Equal.
|
||||
Valid operators are Exists, Equal, Lt, and Gt. Defaults to Equal.
|
||||
Exists is equivalent to wildcard for value, so that a pod can
|
||||
tolerate all taints of a particular category.
|
||||
Lt and Gt perform numeric comparisons (requires feature gate TaintTolerationComparisonOperators).
|
||||
type: string
|
||||
tolerationSeconds:
|
||||
description: |-
|
||||
@@ -1054,13 +1080,17 @@ spec:
|
||||
issuer configured here.
|
||||
properties:
|
||||
group:
|
||||
description: Group of the resource being referred to.
|
||||
description: |-
|
||||
Group of the issuer being referred to.
|
||||
Defaults to 'cert-manager.io'.
|
||||
type: string
|
||||
kind:
|
||||
description: Kind of the resource being referred to.
|
||||
description: |-
|
||||
Kind of the issuer being referred to.
|
||||
Defaults to 'Issuer'.
|
||||
type: string
|
||||
name:
|
||||
description: Name of the resource being referred to.
|
||||
description: Name of the issuer being referred to.
|
||||
type: string
|
||||
required:
|
||||
- name
|
||||
@@ -1321,6 +1351,15 @@ spec:
|
||||
x-kubernetes-list-map-keys:
|
||||
- name
|
||||
x-kubernetes-list-type: map
|
||||
resourceNameSuffixSeparator:
|
||||
description: |-
|
||||
ResourceNameSuffixSeparator is inserted between the base resource name and the Satellite name.
|
||||
|
||||
Defaults to ".".
|
||||
enum:
|
||||
- .
|
||||
- '-'
|
||||
type: string
|
||||
storagePools:
|
||||
description: StoragePools is a list of storage pools to configure
|
||||
on the node.
|
||||
@@ -1347,18 +1386,66 @@ spec:
|
||||
lvmPool:
|
||||
description: Configures a LVM Volume Group as storage pool.
|
||||
properties:
|
||||
volumeGroup:
|
||||
externalLocking:
|
||||
description: |-
|
||||
ExternalLocking skips LINSTOR's internal locking for the shared VG, relying on an external
|
||||
lock manager such as lvmlockd on the hosts instead.
|
||||
type: boolean
|
||||
physicalVolumeCreateArguments:
|
||||
description: |-
|
||||
PhysicalVolumeCreateArguments are arguments to pass to "pvcreate".
|
||||
This has no effect on an existing VG, it only applies when the VG initially gets created.
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
sharedSpace:
|
||||
description: |-
|
||||
SharedSpace marks the VG as shared between multiple nodes, identified by the given name.
|
||||
All storage pools backed by the same physical storage must use the same shared space name.
|
||||
A shared VG must be set up manually on the hosts, it cannot be created from source devices.
|
||||
type: string
|
||||
volumeGroup:
|
||||
description: VolumeGroup is the name of the Volume Group
|
||||
(VG) to use.
|
||||
type: string
|
||||
volumeGroupCreateArguments:
|
||||
description: |-
|
||||
VolumeGroupCreateArguments are arguments to pass to "vgcreate".
|
||||
This has no effect on an existing VG, it only applies when the VG initially gets created.
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
type: object
|
||||
lvmThinPool:
|
||||
description: Configures a LVM Thin Pool as storage pool.
|
||||
properties:
|
||||
logicalVolumeCreateArguments:
|
||||
description: |-
|
||||
LogicalVolumeCreateArguments are arguments to pass to "lvcreate".
|
||||
This has no effect on an existing thinpool, it only applies when the thinpool initially gets created.
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
physicalVolumeCreateArguments:
|
||||
description: |-
|
||||
PhysicalVolumeCreateArguments are arguments to pass to "pvcreate".
|
||||
This has no effect on an existing VG, it only applies when the VG initially gets created.
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
thinPool:
|
||||
description: ThinPool is the name of the thinpool LV (without
|
||||
VG prefix).
|
||||
type: string
|
||||
volumeGroup:
|
||||
type: string
|
||||
volumeGroupCreateArguments:
|
||||
description: |-
|
||||
VolumeGroupCreateArguments are arguments to pass to "vgcreate".
|
||||
This has no effect on an existing VG, it only applies when the VG initially gets created.
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
type: object
|
||||
name:
|
||||
description: Name of the storage pool in linstor.
|
||||
@@ -1447,6 +1534,16 @@ spec:
|
||||
zPool:
|
||||
description: ZPool is the name of the ZFS zpool.
|
||||
type: string
|
||||
zpoolCreateArguments:
|
||||
description: |-
|
||||
ZpoolCreateArguments are arguments to pass to "zpool create".
|
||||
This has no effect on an existing zpool, it only applies when the zpool initially gets created.
|
||||
|
||||
If not set, "-o failmode=continue" is automatically added to ensure a failed zpool does not stop replication
|
||||
to and from other nodes in the cluster.
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
type: object
|
||||
zfsThinPool:
|
||||
description: Configures a ZFS system based storage pool, allocating
|
||||
@@ -1455,6 +1552,16 @@ spec:
|
||||
zPool:
|
||||
description: ZPool is the name of the ZFS zpool.
|
||||
type: string
|
||||
zpoolCreateArguments:
|
||||
description: |-
|
||||
ZpoolCreateArguments are arguments to pass to "zpool create".
|
||||
This has no effect on an existing zpool, it only applies when the zpool initially gets created.
|
||||
|
||||
If not set, "-o failmode=continue" is automatically added to ensure a failed zpool does not stop replication
|
||||
to and from other nodes in the cluster.
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
type: object
|
||||
required:
|
||||
- name
|
||||
@@ -1762,13 +1869,17 @@ spec:
|
||||
issuer configured here.
|
||||
properties:
|
||||
group:
|
||||
description: Group of the resource being referred to.
|
||||
description: |-
|
||||
Group of the issuer being referred to.
|
||||
Defaults to 'cert-manager.io'.
|
||||
type: string
|
||||
kind:
|
||||
description: Kind of the resource being referred to.
|
||||
description: |-
|
||||
Kind of the issuer being referred to.
|
||||
Defaults to 'Issuer'.
|
||||
type: string
|
||||
name:
|
||||
description: Name of the resource being referred to.
|
||||
description: Name of the issuer being referred to.
|
||||
type: string
|
||||
required:
|
||||
- name
|
||||
@@ -1925,6 +2036,15 @@ spec:
|
||||
repository:
|
||||
description: Repository used to pull workload images.
|
||||
type: string
|
||||
resourceNameSuffixSeparator:
|
||||
description: |-
|
||||
ResourceNameSuffixSeparator is inserted between the base resource name and the Satellite name.
|
||||
|
||||
Defaults to ".".
|
||||
enum:
|
||||
- .
|
||||
- '-'
|
||||
type: string
|
||||
storagePools:
|
||||
description: StoragePools is a list of storage pools to configure
|
||||
on the node.
|
||||
@@ -1951,18 +2071,66 @@ spec:
|
||||
lvmPool:
|
||||
description: Configures a LVM Volume Group as storage pool.
|
||||
properties:
|
||||
volumeGroup:
|
||||
externalLocking:
|
||||
description: |-
|
||||
ExternalLocking skips LINSTOR's internal locking for the shared VG, relying on an external
|
||||
lock manager such as lvmlockd on the hosts instead.
|
||||
type: boolean
|
||||
physicalVolumeCreateArguments:
|
||||
description: |-
|
||||
PhysicalVolumeCreateArguments are arguments to pass to "pvcreate".
|
||||
This has no effect on an existing VG, it only applies when the VG initially gets created.
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
sharedSpace:
|
||||
description: |-
|
||||
SharedSpace marks the VG as shared between multiple nodes, identified by the given name.
|
||||
All storage pools backed by the same physical storage must use the same shared space name.
|
||||
A shared VG must be set up manually on the hosts, it cannot be created from source devices.
|
||||
type: string
|
||||
volumeGroup:
|
||||
description: VolumeGroup is the name of the Volume Group
|
||||
(VG) to use.
|
||||
type: string
|
||||
volumeGroupCreateArguments:
|
||||
description: |-
|
||||
VolumeGroupCreateArguments are arguments to pass to "vgcreate".
|
||||
This has no effect on an existing VG, it only applies when the VG initially gets created.
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
type: object
|
||||
lvmThinPool:
|
||||
description: Configures a LVM Thin Pool as storage pool.
|
||||
properties:
|
||||
logicalVolumeCreateArguments:
|
||||
description: |-
|
||||
LogicalVolumeCreateArguments are arguments to pass to "lvcreate".
|
||||
This has no effect on an existing thinpool, it only applies when the thinpool initially gets created.
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
physicalVolumeCreateArguments:
|
||||
description: |-
|
||||
PhysicalVolumeCreateArguments are arguments to pass to "pvcreate".
|
||||
This has no effect on an existing VG, it only applies when the VG initially gets created.
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
thinPool:
|
||||
description: ThinPool is the name of the thinpool LV (without
|
||||
VG prefix).
|
||||
type: string
|
||||
volumeGroup:
|
||||
type: string
|
||||
volumeGroupCreateArguments:
|
||||
description: |-
|
||||
VolumeGroupCreateArguments are arguments to pass to "vgcreate".
|
||||
This has no effect on an existing VG, it only applies when the VG initially gets created.
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
type: object
|
||||
name:
|
||||
description: Name of the storage pool in linstor.
|
||||
@@ -2051,6 +2219,16 @@ spec:
|
||||
zPool:
|
||||
description: ZPool is the name of the ZFS zpool.
|
||||
type: string
|
||||
zpoolCreateArguments:
|
||||
description: |-
|
||||
ZpoolCreateArguments are arguments to pass to "zpool create".
|
||||
This has no effect on an existing zpool, it only applies when the zpool initially gets created.
|
||||
|
||||
If not set, "-o failmode=continue" is automatically added to ensure a failed zpool does not stop replication
|
||||
to and from other nodes in the cluster.
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
type: object
|
||||
zfsThinPool:
|
||||
description: Configures a ZFS system based storage pool, allocating
|
||||
@@ -2059,6 +2237,16 @@ spec:
|
||||
zPool:
|
||||
description: ZPool is the name of the ZFS zpool.
|
||||
type: string
|
||||
zpoolCreateArguments:
|
||||
description: |-
|
||||
ZpoolCreateArguments are arguments to pass to "zpool create".
|
||||
This has no effect on an existing zpool, it only applies when the zpool initially gets created.
|
||||
|
||||
If not set, "-o failmode=continue" is automatically added to ensure a failed zpool does not stop replication
|
||||
to and from other nodes in the cluster.
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
type: object
|
||||
required:
|
||||
- name
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
apiVersion: v2
|
||||
name: cozy-piraeus-operator
|
||||
version: 0.0.0 # Placeholder, the actual version will be automatically set during the build process
|
||||
dependencies:
|
||||
- name: piraeus
|
||||
version: "*"
|
||||
repository: file://charts/piraeus
|
||||
@@ -3,8 +3,8 @@ name: piraeus
|
||||
description: |
|
||||
The Piraeus Operator manages software defined storage clusters using LINSTOR in Kubernetes.
|
||||
type: application
|
||||
version: 2.10.2
|
||||
appVersion: "v2.10.2"
|
||||
version: 2.12.1
|
||||
appVersion: "v2.12.1"
|
||||
maintainers:
|
||||
- name: Piraeus Datastore
|
||||
url: https://piraeus.io
|
||||
|
||||
@@ -3,6 +3,7 @@ apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: {{ include "piraeus-operator.fullname" . }}-image-config
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
{{- include "piraeus-operator.labels" . | nindent 4 }}
|
||||
data:
|
||||
@@ -17,38 +18,38 @@ data:
|
||||
# quay.io/piraeusdatastore/piraeus-server:v1.24.2
|
||||
components:
|
||||
linstor-controller:
|
||||
tag: v1.32.3
|
||||
tag: v1.35.3
|
||||
image: piraeus-server
|
||||
linstor-satellite:
|
||||
tag: v1.32.3
|
||||
tag: v1.35.3
|
||||
image: piraeus-server
|
||||
linstor-csi:
|
||||
tag: v1.10.3
|
||||
tag: v1.13.2
|
||||
image: piraeus-csi
|
||||
nfs-server:
|
||||
tag: v1.10.3
|
||||
tag: v1.13.2
|
||||
image: piraeus-csi-nfs-server
|
||||
drbd-reactor:
|
||||
tag: v1.10.0
|
||||
tag: v1.12.0
|
||||
image: drbd-reactor
|
||||
ha-controller:
|
||||
tag: v1.3.1
|
||||
tag: v1.3.4
|
||||
image: piraeus-ha-controller
|
||||
drbd-shutdown-guard:
|
||||
tag: v1.1.1
|
||||
tag: v1.1.2
|
||||
image: drbd-shutdown-guard
|
||||
ktls-utils:
|
||||
tag: v1.2.1
|
||||
tag: v1.5.0
|
||||
image: ktls-utils
|
||||
linstor-affinity-controller:
|
||||
tag: v1.3.0
|
||||
tag: v1.5.0
|
||||
image: linstor-affinity-controller
|
||||
drbd-module-loader:
|
||||
tag: v9.2.16
|
||||
tag: v9.3.4
|
||||
# The special "match" attribute is used to select an image based on the node's reported OS.
|
||||
# The operator will first check the k8s node's ".status.nodeInfo.osImage" field, and compare it against the list
|
||||
# here. If one matches, that specific image name will be used instead of the fallback image.
|
||||
image: drbd9-noble # Fallback image: chose a recent kernel, which can hopefully compile whatever config is actually in use
|
||||
image: drbd9-resolute # Fallback image: chose a recent kernel, which can hopefully compile whatever config is actually in use
|
||||
match:
|
||||
- osImage: Red Hat Enterprise Linux 8\.
|
||||
image: drbd9-almalinux8
|
||||
@@ -84,6 +85,10 @@ data:
|
||||
image: drbd9-jammy
|
||||
- osImage: Ubuntu 24\.04
|
||||
image: drbd9-noble
|
||||
- osImage: Ubuntu 26\.04
|
||||
image: drbd9-resolute
|
||||
- osImage: Debian GNU/Linux 13
|
||||
image: drbd9-trixie
|
||||
- osImage: Debian GNU/Linux 12
|
||||
image: drbd9-bookworm
|
||||
- osImage: Debian GNU/Linux 11
|
||||
@@ -93,25 +98,22 @@ data:
|
||||
base: registry.k8s.io/sig-storage
|
||||
components:
|
||||
csi-attacher:
|
||||
tag: v4.10.0
|
||||
tag: v4.13.0
|
||||
image: csi-attacher
|
||||
csi-livenessprobe:
|
||||
tag: v2.17.0
|
||||
tag: v2.20.0
|
||||
image: livenessprobe
|
||||
csi-provisioner:
|
||||
tag: v6.1.0
|
||||
tag: v6.4.0
|
||||
image: csi-provisioner
|
||||
csi-snapshotter:
|
||||
tag: v8.4.0
|
||||
tag: v8.7.0
|
||||
image: csi-snapshotter
|
||||
csi-resizer:
|
||||
tag: v2.0.0
|
||||
tag: v2.3.0
|
||||
image: csi-resizer
|
||||
csi-external-health-monitor-controller:
|
||||
tag: v0.16.0
|
||||
image: csi-external-health-monitor-controller
|
||||
csi-node-driver-registrar:
|
||||
tag: v2.15.0
|
||||
tag: v2.18.0
|
||||
image: csi-node-driver-registrar
|
||||
{{- range $idx, $value := .Values.imageConfigOverride }}
|
||||
{{ add $idx 1 }}_helm_override.yaml: |
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -3,6 +3,7 @@ apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ include "piraeus-operator.fullname" . }}-controller-manager
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
{{- include "piraeus-operator.labels" . | nindent 4 }}
|
||||
spec:
|
||||
@@ -70,6 +71,9 @@ spec:
|
||||
- mountPath: /tmp/k8s-webhook-server/serving-certs
|
||||
name: cert
|
||||
readOnly: true
|
||||
{{- with .Values.operator.extraVolumeMounts }}
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- if .Values.kubeRbacProxy.enabled }}
|
||||
- args:
|
||||
- --secure-listen-address=0.0.0.0:8443
|
||||
@@ -91,8 +95,11 @@ spec:
|
||||
securityContext:
|
||||
{{- toYaml .Values.kubeRbacProxy.securityContext | nindent 12}}
|
||||
volumeMounts:
|
||||
- mountPath: /etc/tls
|
||||
name: cert
|
||||
- mountPath: /etc/tls
|
||||
name: cert
|
||||
{{- with .Values.kubeRbacProxy.extraVolumeMounts }}
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
securityContext:
|
||||
runAsNonRoot: true
|
||||
@@ -100,6 +107,10 @@ spec:
|
||||
{{ toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
serviceAccountName: {{ include "piraeus-operator.serviceAccountName" . }}
|
||||
{{- with .Values.imagePullSecrets }}
|
||||
imagePullSecrets:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
terminationGracePeriodSeconds: 10
|
||||
priorityClassName: {{ .Values.priorityClassName | default "system-cluster-critical" }}
|
||||
nodeSelector:
|
||||
@@ -113,3 +124,6 @@ spec:
|
||||
secret:
|
||||
defaultMode: 420
|
||||
secretName: {{ include "piraeus-operator.certifcateName" . }}
|
||||
{{- with .Values.extraVolumes }}
|
||||
{{- toYaml . | nindent 6 }}
|
||||
{{- end }}
|
||||
@@ -0,0 +1,15 @@
|
||||
{{- /* Normalize extraObjects to a list, easier to loop over */ -}}
|
||||
{{- $extraObjects := .Values.extraManifests | default (list) -}}
|
||||
|
||||
{{- if kindIs "map" $extraObjects -}}
|
||||
{{- $extraObjects = values $extraObjects -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- range $extraObjects }}
|
||||
---
|
||||
{{- if kindIs "map" . }}
|
||||
{{- tpl (toYaml .) $ | nindent 0 }}
|
||||
{{- else if kindIs "string" . }}
|
||||
{{- tpl . $ | nindent 0 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
@@ -2,6 +2,7 @@ apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ include "piraeus-operator.fullname" . }}-controller-manager-metrics-service
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
{{- include "piraeus-operator.labels" . | nindent 4 }}
|
||||
spec:
|
||||
|
||||
@@ -15,7 +15,6 @@ rules:
|
||||
- events
|
||||
- persistentvolumes
|
||||
- pods
|
||||
- secrets
|
||||
- serviceaccounts
|
||||
- services
|
||||
verbs:
|
||||
@@ -59,6 +58,13 @@ rules:
|
||||
- pods/eviction
|
||||
verbs:
|
||||
- create
|
||||
- apiGroups:
|
||||
- ""
|
||||
resources:
|
||||
- pods/exec
|
||||
verbs:
|
||||
- create
|
||||
- get
|
||||
- apiGroups:
|
||||
- apiextensions.k8s.io
|
||||
resources:
|
||||
@@ -71,6 +77,12 @@ rules:
|
||||
- patch
|
||||
- update
|
||||
- watch
|
||||
- apiGroups:
|
||||
- apiextensions.k8s.io
|
||||
resources:
|
||||
- customresourcedefinitions/status
|
||||
verbs:
|
||||
- patch
|
||||
- apiGroups:
|
||||
- apps
|
||||
resources:
|
||||
@@ -235,7 +247,6 @@ rules:
|
||||
- snapshot.storage.k8s.io
|
||||
resources:
|
||||
- volumesnapshotclasses
|
||||
- volumesnapshots
|
||||
verbs:
|
||||
- get
|
||||
- list
|
||||
@@ -257,6 +268,15 @@ rules:
|
||||
verbs:
|
||||
- patch
|
||||
- update
|
||||
- apiGroups:
|
||||
- snapshot.storage.k8s.io
|
||||
resources:
|
||||
- volumesnapshots
|
||||
verbs:
|
||||
- get
|
||||
- list
|
||||
- update
|
||||
- watch
|
||||
- apiGroups:
|
||||
- storage.k8s.io
|
||||
resources:
|
||||
@@ -283,6 +303,7 @@ rules:
|
||||
- storage.k8s.io
|
||||
resources:
|
||||
- storageclasses
|
||||
- volumeattributesclasses
|
||||
verbs:
|
||||
- get
|
||||
- list
|
||||
@@ -306,8 +327,30 @@ rules:
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: Role
|
||||
metadata:
|
||||
name: {{ include "piraeus-operator.fullname" . }}-controller-manager
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
{{- include "piraeus-operator.labels" . | nindent 4 }}
|
||||
rules:
|
||||
- apiGroups:
|
||||
- ""
|
||||
resources:
|
||||
- secrets
|
||||
verbs:
|
||||
- create
|
||||
- delete
|
||||
- get
|
||||
- list
|
||||
- patch
|
||||
- update
|
||||
- watch
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: Role
|
||||
metadata:
|
||||
name: {{ include "piraeus-operator.fullname" . }}-leader-election
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
{{- include "piraeus-operator.labels" . | nindent 4 }}
|
||||
rules:
|
||||
|
||||
@@ -17,6 +17,22 @@ subjects:
|
||||
namespace: {{ .Release.Namespace }}
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: RoleBinding
|
||||
metadata:
|
||||
name: {{ include "piraeus-operator.fullname" . }}-controller-manager
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
{{- include "piraeus-operator.labels" . | nindent 4 }}
|
||||
roleRef:
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
kind: Role
|
||||
name: {{ include "piraeus-operator.fullname" . }}-controller-manager
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: {{ include "piraeus-operator.serviceAccountName" . }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRoleBinding
|
||||
metadata:
|
||||
name: {{ include "piraeus-operator.fullname" . }}-controller-manager
|
||||
|
||||
@@ -4,6 +4,7 @@ apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: {{ include "piraeus-operator.serviceAccountName" . }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
{{- include "piraeus-operator.labels" . | nindent 4 }}
|
||||
{{ end }}
|
||||
+2
@@ -9,6 +9,7 @@ apiVersion: cert-manager.io/v1
|
||||
kind: Certificate
|
||||
metadata:
|
||||
name: {{ include "piraeus-operator.fullname" . }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
{{- include "piraeus-operator.labels" . | nindent 4 }}
|
||||
spec:
|
||||
@@ -36,6 +37,7 @@ apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: {{ include "piraeus-operator.certifcateName" . }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
{{- include "piraeus-operator.labels" . | nindent 4 }}
|
||||
type: kubernetes.io/tls
|
||||
|
||||
@@ -2,6 +2,7 @@ apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ include "piraeus-operator.fullname" . }}-webhook-service
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
{{- include "piraeus-operator.labels" . | nindent 4 }}
|
||||
spec:
|
||||
|
||||
@@ -29,6 +29,12 @@ operator:
|
||||
# cpu: 100m
|
||||
# memory: 128Mi
|
||||
|
||||
## Additional volume mounts
|
||||
extraVolumeMounts: [ ]
|
||||
# - name: clusterapi-kubeconfig
|
||||
# mountPath: /etc/operator
|
||||
# readOnly: true
|
||||
|
||||
kubeRbacProxy:
|
||||
enabled: false
|
||||
image:
|
||||
@@ -54,6 +60,16 @@ kubeRbacProxy:
|
||||
# cpu: 100m
|
||||
# memory: 128Mi
|
||||
|
||||
## Additional volume mounts
|
||||
extraVolumeMounts: [ ]
|
||||
|
||||
|
||||
## Additional volumes
|
||||
extraVolumes: []
|
||||
# - name: clusterapi-kubeconfig
|
||||
# secret:
|
||||
# secretName: super-secret
|
||||
|
||||
webhook:
|
||||
timeoutSeconds: 2
|
||||
failurePolicy: Fail
|
||||
@@ -111,3 +127,30 @@ imageConfigOverride: []
|
||||
# tag: my-custom-tag
|
||||
# Results in the image example.com/piraeus/linstor-csi:my-custom-tag being used.
|
||||
# See templates/config.yaml for available components.
|
||||
|
||||
## Extra manifests to deploy. Can be of type dict or list.
|
||||
## If dict, keys are ignored and only values are used.
|
||||
## Items contained within extraObjects can be defined as dict or string and are passed through tpl.
|
||||
extraManifests: null
|
||||
# - apiVersion: v1
|
||||
# kind: ConfigMap
|
||||
# metadata:
|
||||
# labels:
|
||||
# name: piraeus-extra
|
||||
# data:
|
||||
# extra-data: "value"
|
||||
#
|
||||
# can also be defined as a string, useful for templating field names
|
||||
# - |
|
||||
# apiVersion: v1
|
||||
# kind: Secret
|
||||
# type: Opaque
|
||||
# metadata:
|
||||
# name: super-secret
|
||||
# labels:
|
||||
# {{- range $key, $value := .Values.commonLabels }}
|
||||
# {{ $key }}: {{ $value }}
|
||||
# {{- end }}
|
||||
# data:
|
||||
# plaintext: Zm9vYmFy
|
||||
# templated: '{{ print "foobar" | upper | b64enc }}'
|
||||
Reference in new issue
Block a user