How to mount volume to pod in kubernetes #1426
-
Describe the bugTrying to change deployment.jkube.yaml to add nfs volume, but Karavan when deploy the pod doesnot have the volumeMount i am adding in the jkube.yaml. What is the work around for it? Steps to reproduce the behavior
VariantWeb Application Container Management (if applicable)Openshift Operating System (if applicable)Linux Version4.7.0 Relevant log outputNo response |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
I tried to reproduce your issue using Steps to reproduce the behavior you provided and I could not |
Beta Was this translation helpful? Give feedback.
-
Then please tell me how can i attach a volume in project pod created by
karavan ? please give an example
…On Tue, 17 Sept, 2024, 20:30 Marat Gubaidullin, ***@***.***> wrote:
I tried to reproduce your issue using *Steps to reproduce the behavior*
you provided and I could not
—
Reply to this email directly, view it on GitHub
<#1419 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMALMDMGOENSUC2ECLYI3Z3ZXA7ZBAVCNFSM6AAAAABOLEEYSSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNJWGE2DENJXGQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
This works: spec:
replicas: 1
template:
spec:
serviceAccount: karavan
containers:
- volumeMounts:
- name: data
mountPath: /data
volumes:
- name: data
hostPath:
path: /data/karavan |
Beta Was this translation helpful? Give feedback.
-
I have a question regarding the above mount, I am a novice in Kubernetes. Where this has to be executed |
Beta Was this translation helpful? Give feedback.
This works: