-
Notifications
You must be signed in to change notification settings - Fork 867
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Add volume for plugin and tmp folder #3546
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,7 +52,20 @@ spec: | |
readOnlyRootFilesystem: true | ||
seccompProfile: | ||
type: RuntimeDefault | ||
resources: | ||
limits: | ||
ephemeral-storage: 1Gi | ||
volumeMounts: | ||
- name: plugin-bin | ||
mountPath: /home/argo-rollouts/plugin-bin | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Edit: Dockerfile.dev is indeed different and I updated it to the same workdir on my branch, but you could do it in this PR too. Here is the patch I currently have to be able to run plugins.
apiVersion: apps/v1
kind: Deployment
metadata:
name: argo-rollouts
spec:
template:
spec:
containers:
- name: argo-rollouts
volumeMounts:
- mountPath: /home/argo-rollouts/plugin-bin
name: plugin-bin
readOnly: false
- mountPath: /tmp
name: tmp
readOnly: false
volumes:
- name: plugin-bin
emptyDir: {}
- name: tmp
emptyDir: {}
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Updated in da2dea5 |
||
- name: tmp | ||
mountPath: /tmp | ||
securityContext: | ||
runAsNonRoot: true | ||
volumes: | ||
- name: plugin-bin | ||
emptyDir: {} | ||
- name: tmp | ||
emptyDir: {} | ||
strategy: | ||
type: RollingUpdate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tmp
volume added but not mounted.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 64a30cc