2024-01-23 01:17:29 +00:00
|
|
|
apiVersion: source.toolkit.fluxcd.io/v1
|
2023-04-03 04:47:24 +00:00
|
|
|
kind: GitRepository
|
|
|
|
metadata:
|
|
|
|
name: local-path-provisioner
|
|
|
|
namespace: flux-system
|
|
|
|
spec:
|
|
|
|
interval: 1m
|
|
|
|
url: https://github.com/rancher/local-path-provisioner.git
|
|
|
|
ref:
|
2024-06-13 23:50:08 +00:00
|
|
|
tag: v0.0.27
|
2023-04-03 04:47:24 +00:00
|
|
|
---
|
2024-06-15 19:37:56 +00:00
|
|
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
2023-04-03 04:47:24 +00:00
|
|
|
kind: HelmRelease
|
|
|
|
metadata:
|
|
|
|
name: local-path-provisioner
|
|
|
|
namespace: kube-system
|
|
|
|
spec:
|
|
|
|
interval: 15m
|
|
|
|
chart:
|
|
|
|
spec:
|
|
|
|
chart: ./deploy/chart/local-path-provisioner
|
|
|
|
sourceRef:
|
|
|
|
kind: GitRepository
|
|
|
|
name: local-path-provisioner
|
|
|
|
namespace: flux-system
|
|
|
|
maxHistory: 3
|
|
|
|
install:
|
|
|
|
createNamespace: true
|
|
|
|
remediation:
|
|
|
|
retries: 3
|
|
|
|
upgrade:
|
|
|
|
cleanupOnFail: true
|
|
|
|
remediation:
|
|
|
|
retries: 3
|
|
|
|
uninstall:
|
|
|
|
keepHistory: false
|
|
|
|
values:
|
|
|
|
helperImage:
|
|
|
|
repository: public.ecr.aws/docker/library/busybox
|
|
|
|
tag: latest
|
|
|
|
storageClass:
|
|
|
|
defaultClass: false
|
|
|
|
nodePathMap:
|
|
|
|
- node: DEFAULT_PATH_FOR_NON_LISTED_NODES
|
|
|
|
paths: ["/var/lib/rancher/k3s/storage"]
|
|
|
|
# Note: Do not enable Flux variable substitution on this HelmRelease
|
|
|
|
configmap:
|
|
|
|
setup: |-
|
|
|
|
#!/bin/sh
|
|
|
|
while getopts "m:s:p:" opt
|
|
|
|
do
|
|
|
|
case $opt in
|
|
|
|
p)
|
|
|
|
absolutePath=$OPTARG
|
|
|
|
;;
|
|
|
|
s)
|
|
|
|
sizeInBytes=$OPTARG
|
|
|
|
;;
|
|
|
|
m)
|
|
|
|
volMode=$OPTARG
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
mkdir -m 0777 -p ${absolutePath}
|
|
|
|
chmod 701 ${absolutePath}/..
|
|
|
|
teardown: |-
|
|
|
|
#!/bin/sh
|
|
|
|
while getopts "m:s:p:" opt
|
|
|
|
do
|
|
|
|
case $opt in
|
|
|
|
p)
|
|
|
|
absolutePath=$OPTARG
|
|
|
|
;;
|
|
|
|
s)
|
|
|
|
sizeInBytes=$OPTARG
|
|
|
|
;;
|
|
|
|
m)
|
|
|
|
volMode=$OPTARG
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
rm -rf ${absolutePath}
|