This is a kmods-via-containers implementation for the openafs-kmod. More information on kmod-via-container refer here
- OpenAFS specific step:
-
Copy ThisCell, CellServDB, krb5.conf and cacheinfo for cell inside kvc-openafs-kmod directory. On RHCOS nodes root filesystem is readonly, So afs will be mounted on /var/afs. Also cache dir is in /var/afscache. While starting AFS we mount /var on host in /openafs inside container, e.g. cacheinfo will have below entry
cacheinfo:
/openafs/afs:/openafs/afscache:800000
-
Create a subscription tar as below, inside kvc-openafs-kmod directory.
tar -czf subs.tar.gz /etc/pki/entitlement/ /etc/rhsm/ /etc/yum.repos.d/redhat.repo
-
Once above steps are done run ./createmc.sh script. It will create machine config manifest i.e mc.yaml file
-
Then apply machine config which makes machine config operator in OpenShift to install OpenAFS on all worker nodes.
oc create -f mc.yaml
-
In case subscription changes repeat from step 2.
-