티스토리 뷰
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
- #ApacheSpark
- ILoop Engine
- Mask R-CNN
- OST
- Memorize
- ate
- English
- 2D Game
- aws #cloudfront
- project
- docker
- 도커
- Worry
- #ApacheZeppelin
- #ELK Stack
- #REST API
- sentence test
- Library
- some time ago
- Game Engine
- #TensorFlow
- Badge
- Jekyll and Hyde
- belief
- Physical Simulation
- SSM
- Meow
- Ragdoll
- Sea Bottom
- GOD
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |