Skip to content

Commit

Permalink
👷 Add namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Draculente committed Jan 22, 2024
1 parent 0556298 commit 81f26c4
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ jobs:
UNIQUE_TAG: "${{ github.sha }}-${{ github.run_number }}-${{ github.run_attempt }}"
DATABASE_URL: ${{ secrets.DATABASE_URL }}
JWT_SECRET: ${{ secrets.JWT_SECRET }}
# You need to set is manually in backend deployment container port
BACKEND_PORT: ${{ env.BACKEND_PORT }}
APP_NAME: "rsswipe"
BACKEND_IMAGE: "importantus/rsswipe-backend:main"
Expand Down
1 change: 1 addition & 0 deletions deployment/backend/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: "{{ APP_NAME }}-database"
namespace: simple-tools
labels:
app: "{{ APP_NAME }}-database"
spec:
Expand Down
1 change: 1 addition & 0 deletions deployment/backend/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: "{{ APP_NAME }}-backend"
namespace: simple-tools
labels:
app: "{{ APP_NAME }}-backend"
commit: "{{ UNIQUE_TAG }}"
Expand Down
1 change: 1 addition & 0 deletions deployment/backend/service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: v1
kind: Service
metadata:
name: "{{ APP_NAME }}-backend-svc"
namespace: simple-tools
spec:
selector:
app: "{{ APP_NAME }}-backend"
Expand Down
1 change: 1 addition & 0 deletions deployment/backend/volume.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: "{{ APP_NAME }}-db-pvc"
namespace: simple-tools
spec:
accessModes:
- ReadWriteOnce
Expand Down

0 comments on commit 81f26c4

Please sign in to comment.