HostPath(3)
-
Minikube PV 바인딩
PV/mnt는 root로 생성됨/mnt/test는 pod 작동 계정으로 생성됨apiVersion: v1kind: PersistentVolumemetadata: name: test-pvspec: capacity: storage: 1Gi accessModes: - ReadWriteOnce persistentVolumeReclaimPolicy: Retain storageClassName: manual hostPath: path: /mnt/test # Path on the host machinePVChttps://barisein.tistory.com/755 Minikube PVC 바인딩PVCstorageClassName: standard이면 PV를 별도로 지정하지 않아도 됨apiVe..
2025.01.01 -
Error response from daemon: error while creating mount source path '/mnt/registry': mkdir /mnt/registry: permission denied
minikube sshdocker\@minikube:\~\$ whoamidockersudo chown -R root\:root /mnt/registrychown: cannot access '/mnt/registry': Permission deniedchown -R root\:root /mnt/registrychown: changing ownership of '/mnt/registry': Operation not permittedregistry는 root로 작동이되는데, /mnt가 docker:docker로 설정되어 있는 경우 권한 문제가 발생함hostPath는 OS의 권한에 영향을 받기 때문에, Kubernets에서 관리되는 PVC를 사용하는 것이 정신건강에 좋을듯ASIS volumes: ..
2025.01.01 -
Minikube host directory 마운트하기
apiVersion: v1kind: Podmetadata: name: host-mount-podspec: containers: - name: test-container image: busybox command: [ "sleep", "3600" ] volumeMounts: - mountPath: /data name: host-volume volumes: - name: host-volume hostPath: path: /mnt/data특정 그룹으로 마운트하기(작동안함)apiVersion: v1kind: Podmetadata: name: host-mount-podspec: securityContext: fsG..
2024.12.31