|
| 1 | +--- |
| 2 | +apiVersion: argoproj.io/v1alpha1 |
| 3 | +kind: Application |
| 4 | +metadata: |
| 5 | + name: kubevirt-swfs-csi-driver |
| 6 | + namespace: kubevirt |
| 7 | + annotations: |
| 8 | + argocd.argoproj.io/sync-wave: "3" |
| 9 | +spec: |
| 10 | + destination: |
| 11 | + name: '' |
| 12 | + namespace: kubevirt |
| 13 | + server: 'https://kubernetes.default.svc' |
| 14 | + source: |
| 15 | + path: '' |
| 16 | + repoURL: 'https://cloudymax.github.io/kubevirt-community-stack/' |
| 17 | + targetRevision: 0.1.5 |
| 18 | + chart: kubevirt-cdi |
| 19 | + helm: |
| 20 | + valuesObject: | |
| 21 | + seaweedfsFiler: "http://seaweedfs-volume:8888" |
| 22 | + storageClassName: seaweedfs-storage |
| 23 | + isDefaultStorageClass: false |
| 24 | + tlsSecret: "" |
| 25 | + logVerbosity: 4 |
| 26 | + cacheCapacityMB: 0 |
| 27 | +
|
| 28 | + #concurrentWriters: 32 |
| 29 | +
|
| 30 | + imagePullPolicy: "IfNotPresent" |
| 31 | +
|
| 32 | + #imagePullSecrets: |
| 33 | + #- name: mycredentials |
| 34 | +
|
| 35 | + csiProvisioner: |
| 36 | + image: registry.k8s.io/sig-storage/csi-provisioner:v3.5.0 |
| 37 | + resources: {} |
| 38 | + livenessProbe: |
| 39 | + failureThreshold: |
| 40 | + initialDelaySeconds: 10 |
| 41 | + timeoutSeconds: 3 |
| 42 | + periodSeconds: 60 |
| 43 | +
|
| 44 | + csiResizer: |
| 45 | + image: registry.k8s.io/sig-storage/csi-resizer:v1.8.0 |
| 46 | + resources: {} |
| 47 | + livenessProbe: |
| 48 | + failureThreshold: |
| 49 | + initialDelaySeconds: 10 |
| 50 | + timeoutSeconds: 3 |
| 51 | + periodSeconds: 60 |
| 52 | +
|
| 53 | + csiAttacher: |
| 54 | + # generally we don't need attacher, cause we do nothing to attach volume to node |
| 55 | + # we will keep this for a historical reason |
| 56 | + # you need to delete seaweedfs CSIDriver crd manually before upgrading with attacher disabled |
| 57 | + # also you need to delete all seaweedfs VolumeAttachment crd manually after upgrade |
| 58 | + enabled: true |
| 59 | + image: registry.k8s.io/sig-storage/csi-attacher:v4.3.0 |
| 60 | + resources: {} |
| 61 | + livenessProbe: |
| 62 | + failureThreshold: |
| 63 | + initialDelaySeconds: 10 |
| 64 | + timeoutSeconds: 3 |
| 65 | + periodSeconds: 60 |
| 66 | +
|
| 67 | + csiSnapshotter: |
| 68 | + # we do not support snapshots yet |
| 69 | + enabled: false |
| 70 | +
|
| 71 | + csiNodeDriverRegistrar: |
| 72 | + image: registry.k8s.io/sig-storage/csi-node-driver-registrar:v2.8.0 |
| 73 | + resources: {} |
| 74 | + livenessProbe: |
| 75 | + failureThreshold: |
| 76 | + initialDelaySeconds: 10 |
| 77 | + timeoutSeconds: 3 |
| 78 | + periodSeconds: 60 |
| 79 | +
|
| 80 | + csiLivenessProbe: |
| 81 | + image: registry.k8s.io/sig-storage/livenessprobe:v2.10.0 |
| 82 | + resources: {} |
| 83 | +
|
| 84 | + seaweedfsCsiPlugin: |
| 85 | + image: chrislusf/seaweedfs-csi-driver:v1.2.5 |
| 86 | + securityContext: |
| 87 | + privileged: true |
| 88 | + capabilities: |
| 89 | + add: ["SYS_ADMIN"] |
| 90 | + allowPrivilegeEscalation: true |
| 91 | +
|
| 92 | + driverName: seaweedfs-csi-driver |
| 93 | +
|
| 94 | + controller: |
| 95 | + replicas: 1 |
| 96 | + affinity: {} |
| 97 | + tolerations: |
| 98 | + resources: {} |
| 99 | + livenessProbe: |
| 100 | + failureThreshold: |
| 101 | + initialDelaySeconds: 10 |
| 102 | + timeoutSeconds: 3 |
| 103 | + periodSeconds: 60 |
| 104 | +
|
| 105 | + # DataLocality (inspired by Longhorn) allows instructing the storage-driver which volume-locations will be used or preferred in Pods to read & write. |
| 106 | + # e.g. Allows Pods to write preferrably to its local dataCenter volume-servers |
| 107 | + # Requires Volume-Servers to be correctly labelled and matching Topology-Info to be passed into seaweedfs-csi-driver node |
| 108 | + # Example-Value: "write_preferlocaldc" |
| 109 | + dataLocality: "none" |
| 110 | +
|
| 111 | + node: |
| 112 | + # Deploy node daemonset |
| 113 | + enabled: true |
| 114 | + # When seaweedfs-csi-driver-node pod on node is recreated, all pods on same node using seaweed-csi PV will stop working. |
| 115 | + # For safe update set updateStrategy.type: OnDelete and manually move pods who use seaweed-csi PV, then delete seaweedfs-csi-driver-node damonset pod |
| 116 | + updateStrategy: |
| 117 | + type: RollingUpdate |
| 118 | + rollingUpdate: |
| 119 | + maxUnavailable: 25% |
| 120 | + affinity: {} |
| 121 | + tolerations: |
| 122 | + livenessProbe: |
| 123 | + failureThreshold: |
| 124 | + initialDelaySeconds: 10 |
| 125 | + timeoutSeconds: 3 |
| 126 | + periodSeconds: 60 |
| 127 | +
|
| 128 | + # Auto-Inject Topology-Info from Kubernetes node-labels using KubeMod (https://github.com/kubemod/kubemod) |
| 129 | + # Necessary because DownwardAPI doesnt support passing node-labels (see: https://github.com/kubernetes/kubernetes/issues/40610) |
| 130 | + # Requires KubeMod to be installed |
| 131 | + injectTopologyInfoFromNodeLabel: |
| 132 | + enabled: false |
| 133 | + labels: |
| 134 | + dataCenter: "topology.kubernetes.io/zone" |
| 135 | +
|
| 136 | + ## Change if not using standard kubernetes deployments, like k0s |
| 137 | + volumes: |
| 138 | + registration_dir: /var/lib/kubelet/plugins_registry |
| 139 | + plugins_dir: /var/lib/kubelet/plugins |
| 140 | + pods_mount_dir: /var/lib/kubelet/pods |
0 commit comments