Skip to content

Commit

Permalink
update version and pod
Browse files Browse the repository at this point in the history
  • Loading branch information
hmeiland committed Jul 11, 2024
1 parent c5ee1ce commit 58458ae
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 11 deletions.
6 changes: 6 additions & 0 deletions deploy/aks-eessi/aml-cvmfs-pvc.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: cvmfs
provisioner: cvmfs.csi.cern.ch
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
Expand Down
20 changes: 20 additions & 0 deletions deploy/aks-eessi/aml-pod-mount-all-repos.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# ../example/pod-all-repos.yaml
apiVersion: v1
kind: Pod
metadata:
name: cvmfs-mount
spec:
containers:
- name: demo
image: busybox
imagePullPolicy: IfNotPresent
command: [ "/bin/sh", "-c", "trap : TERM INT; (while true; do sleep 1000; done) & wait" ]
volumeMounts:
- name: cvmfs
mountPath: /cvmfs
# CVMFS automount volumes must be mounted with HostToContainer mount propagation.
mountPropagation: HostToContainer
volumes:
- name: cvmfs
persistentVolumeClaim:
claimName: cvmfs
24 changes: 13 additions & 11 deletions deploy/aks-eessi/mirror_containers_and_install_csi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,31 @@ 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.cern.ch/kubernetes/cvmfs-csi:v2.4.1
docker tag registry.cern.ch/kubernetes/cvmfs-csi:v2.4.1 ${1}.azurecr.io/kubernetes/cvmfs-csi:v2.4.1
docker push ${1}.azurecr.io/kubernetes/cvmfs-csi:v2.4.1

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-node-driver-registrar:v2.10.1
docker tag registry.k8s.io/sig-storage/csi-node-driver-registrar:v2.10.1 ${1}.azurecr.io/sig-storage/csi-node-driver-registrar:v2.10.1
docker push ${1}.azurecr.io/sig-storage/csi-node-driver-registrar:v2.10.1

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
docker pull registry.k8s.io/sig-storage/csi-provisioner:v4.0.1
docker tag registry.k8s.io/sig-storage/csi-provisioner:v4.0.1 ${1}.azurecr.io/sig-storage/csi-provisioner:v4.0.1
docker push ${1}.azurecr.io/sig-storage/csi-provisioner:v4.0.1


git clone -b release-2.3 https://github.com/cvmfs-contrib/cvmfs-csi.git
#git clone -b release-2.3 https://github.com/cvmfs-contrib/cvmfs-csi.git
git clone -b master 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.3.2.tgz oci://${1}.azurecr.io/helm
helm push cvmfs-csi-2.4.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
kubectl create -f aml-pod-mount-all-repos.yaml

rm -rf cvmfs-csi

0 comments on commit 58458ae

Please sign in to comment.