Skip to content

Commit

Permalink
eessi on aks
Browse files Browse the repository at this point in the history
  • Loading branch information
hmeiland committed Jul 8, 2024
1 parent a4e28f8 commit 8468f4c
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
16 changes: 16 additions & 0 deletions deploy/aks-eessi/aml-cvmfs-pvc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: cvmfs
namespace: default
labels:
ml.azure.com/pvc: "true"
annotations:
ml.azure.com/mountpath: "/cvmfs"
spec:
storageClassName: "cvmfs"
accessModes:
- ReadOnlyMany
resources:
requests:
storage: 1
32 changes: 32 additions & 0 deletions deploy/aks-eessi/mirror_containers_and_install_csi.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/bin/bash

echo "usage: mirror_containers.sh <ACR_name>"

az acr login -n $1

docker pull registry.cern.ch/kubernetes/cvmfs-csi:v2.3.2
docker tag registry.cern.ch/kubernetes/cvmfs-csi:v2.3.2 ${1}.azurecr.io/kubernetes/cvmfs-csi:v2.3.2
docker push ${1}.azurecr.io/kubernetes/cvmfs-csi:v2.3.2

docker pull registry.k8s.io/sig-storage/csi-node-driver-registrar:v2.8.0
docker tag registry.k8s.io/sig-storage/csi-node-driver-registrar:v2.8.0 ${1}.azurecr.io/sig-storage/csi-node-driver-registrar:v2.8.0
docker push ${1}.azurecr.io/sig-storage/csi-node-driver-registrar:v2.8.0

docker pull registry.k8s.io/sig-storage/csi-provisioner:v3.5.0
docker tag registry.k8s.io/sig-storage/csi-provisioner:v3.5.0 ${1}.azurecr.io/sig-storage/csi-provisioner:v3.5.0
docker push ${1}.azurecr.io/sig-storage/csi-provisioner:v3.5.0


git clone -b release-2.4 https://github.com/cvmfs-contrib/cvmfs-csi.git
pushd cvmfs-csi/deployments/helm/cvmfs-csi
sed -i "s#registry.cern.ch#${1}.azurecr.io#g" values.yaml
sed -i "s#registry.k8s.io#${1}.azurecr.io#g" values.yaml
sed -i 's#CVMFS_HTTP_PROXY=.*$#CVMFS_HTTP_PROXY=DIRECT#g' values.yaml
helm package .
helm push cvmfs-csi-2.1.1.tgz oci://${1}.azurecr.io/helm
popd

helm install cvmfs oci://${1}.azurecr.io/helm/cvmfs-csi
kubectl create -f aml-cvmfs-pvc.yaml

rm -rf cvmfs-csi

0 comments on commit 8468f4c

Please sign in to comment.