티스토리 뷰
Windows 10 20H2 Docker Desktop WSL2 enable 환경에서 Kubernetes volume hostPath 연결 오류 해결
Arc Lab. 2021. 4. 29. 18:13[업데이트 2021.04.29 18:09]
C 드라이브 기준 /run/desktop/mnt/host/를 C 드라이브 폴더 패스 앞에 붙여줌.
ex) c:\Users\admin\Desktop\data
=> /run/desktop/mnt/host/c/Users/admin/Desktop/data
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: my-deployment
name: my-deployment
namespace: myspace
spec:
replicas: 1
selector:
matchLabels:
app: my-pod
strategy: {}
template:
metadata:
namespace: myspace
labels:
app: my-pod
spec:
containers:
- image: test/api:latest
name: test-api
volumeMounts:
- mountPath: /app/data
name: data-volume
ports:
- containerPort: 8089
volumes:
- name: data-volume
hostPath:
path: /run/desktop/mnt/host/c/Users/admin/Desktop/data
- Total
- Today
- Yesterday
- 2D Game
- GOD
- OST
- Worry
- Library
- #ApacheSpark
- Game Engine
- Jekyll and Hyde
- Physical Simulation
- Meow
- Mask R-CNN
- Ragdoll
- SSM
- Memorize
- Badge
- #REST API
- some time ago
- ate
- belief
- sentence test
- ILoop Engine
- #ApacheZeppelin
- English
- #ELK Stack
- project
- docker
- 도커
- Sea Bottom
- aws #cloudfront
- #TensorFlow
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 |