InitContainers(2)
-
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 -
initContainers 사용하기
spec: initContainers: - name: init image: busybox:latest command: - sh - "-c" - | addgroup -g {gid} {group} adduser -u {uid} {user} -G {group} -D # 없는 계정:그룹을 지정하면 root:root로 지정됨 # volumeMounts와 연계되서 minikube의 실제 디렉토리에 계정:그룹이 지정됨 chown -R {user}:{group} {directory} volumeMounts: ..
2024.04.28