mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +00:00
Merge pull request #102004 from chendave/ceph_rbd
Fix the ceph deploy for e2e testing for ARM64
This commit is contained in:
commit
7ccd90e7d7
@ -1,3 +1,3 @@
|
||||
linux/amd64=fedora:26
|
||||
linux/arm64=arm64v8/fedora:26
|
||||
linux/ppc64le=ppc64le/fedora:26
|
||||
linux/amd64=fedora:33
|
||||
linux/arm64=arm64v8/fedora:33
|
||||
linux/ppc64le=ppc64le/fedora:33
|
||||
|
@ -21,7 +21,7 @@ FROM $BASEIMAGE
|
||||
CROSS_BUILD_COPY qemu-QEMUARCH-static /usr/bin/
|
||||
|
||||
# Base Packages
|
||||
RUN yum install -y wget strace psmisc procps-ng ceph ceph-fuse && yum clean all
|
||||
RUN yum install -y wget strace psmisc procps-ng ceph ceph-fuse hostname && yum clean all
|
||||
|
||||
# Get ports exposed
|
||||
EXPOSE 6789
|
||||
|
@ -41,6 +41,15 @@ sh ./mds.sh
|
||||
# Prepare a RBD volume "foo" (only with layering feature, the others may
|
||||
# require newer clients).
|
||||
# NOTE: we need Ceph kernel modules on the host that runs the client!
|
||||
# As the default pool `rbd` might not be created on arm64 platform for ceph deployment,
|
||||
# should create it if it does not exist.
|
||||
arch=$(uname -m)
|
||||
if [[ ${arch} = 'aarch64' || ${arch} = 'arm64' ]]; then
|
||||
if [[ $(ceph osd lspools) = "" ]]; then
|
||||
ceph osd pool create rbd 8
|
||||
rbd pool init rbd
|
||||
fi
|
||||
fi
|
||||
rbd import --image-feature layering block foo
|
||||
|
||||
# Prepare a cephfs volume
|
||||
|
Loading…
Reference in New Issue
Block a user