This commit is contained in:
parent
8dd47900cf
commit
7f0a136cf7
13 changed files with 265 additions and 0 deletions
|
|
@ -45,6 +45,27 @@ done
|
|||
rm -fr files/digitalocean.old
|
||||
|
||||
|
||||
# https://github.com/kubernetes-incubator/external-storage/tree/master/nfs
|
||||
mv files/nfs{,.old}
|
||||
mkdir files/nfs
|
||||
for FICHIER in psp.yaml rbac.yaml deployment.yaml class.yaml; do
|
||||
wget https://github.com/kubernetes-incubator/external-storage/raw/master/nfs/deploy/kubernetes/$FICHIER
|
||||
kubernetes-split-yaml $FICHIER >> generated.log
|
||||
mv generated/* files/nfs/
|
||||
cat generated.log | while read LIGNE; do if [ $(echo "${LIGNE}" | grep -c ^File) -eq 1 ]; then echo -n "${LIGNE} "; else echo "${LIGNE}"; fi; done | grep ^File | sort -V | sed 's|.*\(generated/\)\(.*\.yaml\)| - "nfs/\2"|'
|
||||
rm -f $FICHIER generated.log
|
||||
done
|
||||
for i in nfs-provisioner-runner-ClusterRole.yaml run-nfs-provisioner-ClusterRoleBinding.yaml leader-locking-nfs-provisioner-Role.yaml leader-locking-nfs-provisioner-RoleBinding.yaml; do
|
||||
sed "s/namespace:.*/namespace: nfs-provisioner/g" -i files/nfs/$i
|
||||
done
|
||||
sed 's|\(.*-provisioner=\).*"|\1reslinger.net/nfs"|' -i files/nfs/nfs-provisioner-Deployment.yaml
|
||||
mv files/nfs/example-nfs-StorageClass.yaml files/nfs/StorageClass.yaml
|
||||
sed 's|example-nfs|nfs|' -i files/nfs/StorageClass.yaml
|
||||
sed 's|example.com/nfs|reslinger.net/nfs|' -i files/nfs/StorageClass.yaml
|
||||
rm -fr files/nfs.old
|
||||
|
||||
|
||||
|
||||
#https://github.com/scaleway/scaleway-csi
|
||||
#https://github.com/kubernetes-sigs/alibaba-cloud-csi-driver
|
||||
#https://github.com/hetznercloud/csi-driver
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue