https://github.com/yeahdongcn/image-volume-test
https://github.com/yeahdongcn/image-volume-test
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/yeahdongcn/image-volume-test
- Owner: yeahdongcn
- Created: 2024-08-20T10:15:09.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-20T10:26:46.000Z (almost 2 years ago)
- Last Synced: 2025-10-10T10:37:02.928Z (10 months ago)
- Language: Dockerfile
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Kubernetes v1.31 Image Volume Test on Minikube
The Kubernetes documentation provides a simple example of how to use an image volume with a Pod but lacks details on setting up the container runtime. This repository adds the missing details to the Kubernetes documentation.
The following steps are tested on Minikube v1.33.1:
```bash
➜ minikube version
minikube version: v1.33.1
commit: 5883c09216182566a63dff4c326a6fc9ed2982ff
# Using buildx
➜ docker build -t kicbase:crio-v1.31 -o type=docker .
➜ ./start.sh
```
Deploy a pod with image volume:
```bash
➜ kubectl apply -f oci.yaml
➜ kubectl get pod pod
NAME READY STATUS RESTARTS AGE
pod 1/1 Running 0 10m
➜ kubectl exec -it pod -- bash
root@pod:/# ls /
bin boot dev etc home lib media mnt opt proc root run sbin srv sys tmp usr var volume
root@pod:/# ls /volume/
bin boot dev etc home lib media mnt opt proc root run sbin srv sys tmp usr var
```