Skip to content

How to mount volume to pod in kubernetes #1426

Answered by mueckinger
tannextan asked this question in Q&A
Discussion options

You must be logged in to vote

This works:

spec:
  replicas: 1
  template:
    spec:
      serviceAccount: karavan
      containers:
        - volumeMounts:
            - name: data
              mountPath: /data
      volumes:
        - name: data
          hostPath: 
            path: /data/karavan

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by tannextan
Comment options

You must be logged in to vote
1 reply
@mueckinger
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #1419 on September 23, 2024 11:54.