Skip to content

Commit

Permalink
deployment updates
Browse files Browse the repository at this point in the history
  • Loading branch information
popenc committed Mar 18, 2024
1 parent 0d724ce commit efc8901
Show file tree
Hide file tree
Showing 9 changed files with 133 additions and 107 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ services:
- "8080"
volumes:
- collected_static:/opt/collected_static
# - ./vb_django:/opt/app
- ./vb_django:/opt/app

vb-dask-scheduler:
restart: unless-stopped
Expand Down
33 changes: 0 additions & 33 deletions k8s/vb-nginx-pv.yml

This file was deleted.

37 changes: 0 additions & 37 deletions k8s/vb-nginx-pvc.yml

This file was deleted.

16 changes: 0 additions & 16 deletions k8s/vb-postgres-pv.yml

This file was deleted.

18 changes: 0 additions & 18 deletions k8s/vb-postgres-pvc.yml

This file was deleted.

2 changes: 1 addition & 1 deletion k8s/vb-postgres-service.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
kind: Service
metadata:
name: postgres
name: vb-postgres
namespace: qed-kube-dev
spec:
type: ClusterIP
Expand Down
66 changes: 66 additions & 0 deletions k8s/vb-pvcs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# apiVersion: v1
# kind: PersistentVolumeClaim
# metadata:
# name: vb-nginx-certs-pvc
# namespace: qed-kube-dev
# labels:
# app: vb-nginx-certs
# spec:
# accessModes:
# - ReadWriteMany
# # storageClassName: vb-nginx-certs
# # storageClassName: hostpath
# resources:
# requests:
# storage: 1Gi
# # volumeName: vb-nginx-certs-pv
# selector:
# matchLabels:
# release: "stable"
# name: vb-nginx-certs-pv

# ---

# apiVersion: v1
# kind: PersistentVolumeClaim
# metadata:
# name: vb-collected-static-pvc
# namespace: qed-kube-dev
# labels:
# app: vb-collected-static
# spec:
# accessModes:
# - ReadWriteMany
# # storageClassName: vb-collected-static
# # storageClassName: hostpath
# resources:
# requests:
# storage: 1Gi
# # volumeName: vb-collected-static-pv
# selector:
# matchLabels:
# release: "stable"
# name: vb-collected-static-pv

# ---

# apiVersion: v1
# kind: PersistentVolumeClaim
# metadata:
# name: vb-postgres-pv-claim
# namespace: qed-kube-dev
# labels:
# app: vb-postgres
# spec:
# accessModes:
# - ReadWriteMany
# # storageClassName: vb-postgres
# # storageClassName: hostpath
# # volumeName: vb-postgres-pv
# resources:
# requests:
# storage: 5Gi
# selector:
# matchLabels:
# release: "stable"
# name: "vb-postgres-pv"
60 changes: 60 additions & 0 deletions k8s/vb-pvs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# apiVersion: v1
# kind: PersistentVolume
# metadata:
# name: vb-nginx-certs-pv
# labels:
# type: local
# app: vb-nginx-certs
# spec:
# accessModes:
# - ReadWriteMany
# capacity:
# storage: 1Gi
# # storageClassName: hostpath
# # claimRef:
# # name: vb-nginx-certs-pvc
# hostPath:
# # path: \D\\git\vb\nginx
# path: /run/desktop/mnt/host/c/Users/inick/GitHub/vb_kube/nginx_certs

# ---

# apiVersion: v1
# kind: PersistentVolume
# metadata:
# name: vb-collected-static-pv
# labels:
# type: local
# app: vb-collected-static
# spec:
# accessModes:
# - ReadWriteMany
# capacity:
# storage: 1Gi
# # claimRef:
# # name: vb-collected-static-pvc
# # storageClassName: hostpath
# hostPath:
# # path: \D\\git\vb\collected_static
# path: /run/desktop/mnt/host/c/Users/inick/GitHub/vb_kube/collected_static

# ---

# apiVersion: v1
# kind: PersistentVolume
# metadata:
# name: vb-postgres-pv
# labels:
# type: local
# app: vb-postgres
# spec:
# # storageClassName: hostpath
# capacity:
# storage: 5Gi
# accessModes:
# - ReadWriteMany
# # claimRef:
# # name: vb-postgres-pvc
# hostPath:
# # path: /host/app_data
# path: /run/desktop/mnt/host/c/Users/inick/GitHub/vb_kube/app_data
6 changes: 5 additions & 1 deletion vb_nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ server {
alias /src/collected_static/vb/;
}
location /vb/assets/ {
alias /src/collected_static/vb/;
alias /src/collected_static/vb/assets/;
}

location /assets/ {
alias /src/collected_static/vb/assets/;
}

location / {
Expand Down

0 comments on commit efc8901

Please sign in to comment.