Skip to content

Commit

Permalink
fix k8s pvc -> host
Browse files Browse the repository at this point in the history
  • Loading branch information
lazhenyi committed Dec 30, 2024
1 parent 4384617 commit cd18da1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
10 changes: 6 additions & 4 deletions charts/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,11 @@ spec:

volumes:
- name: shared-storage
persistentVolumeClaim:
claimName: shared-pvc
hostPath:
path: /exports
type: Directory

- name: static-storage
persistentVolumeClaim:
claimName: jzlab-avatar-pvc
hostPath:
path: /static
type: Directory
5 changes: 1 addition & 4 deletions src/avatar/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ pub mod upload;
pub fn avatar(cfg: &mut web::ServiceConfig) {
cfg
.route("/{uid}", web::put().to(avatar_upload))
.service(
web::resource("/{uid}")
.get(avatar_download)
)
.route("/{uid}", web::get().to(avatar_download))
;
}

0 comments on commit cd18da1

Please sign in to comment.