-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add db migration with flyway * Add Exposed library to manage log persistence Improve frontend error displaying * Add postgresql, persistent volume, pvc as k8s deployment * Add postgres to kustomization.yaml, bump image versions * Update README.md * Update README.md * Adjust docker-compose.yml * Review fixes * Add postgres k8s network policy * Add runner resource requests and limits * Revert "Add runner resource requests and limits" This reverts commit 4dc7ed2. * Revert "Add postgres k8s network policy" This reverts commit 4c31b1b.
- Loading branch information
Showing
37 changed files
with
412 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
common/src/main/kotlin/pl/edu/prz/kod/common/adapters/http/dto/CodeResponse.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
package pl.edu.prz.kod.common.adapters.http.dto | ||
|
||
data class CodeResponse( | ||
val stdout: String, | ||
val stdOut: String, | ||
val stdErr: String, | ||
val exitCode: Int | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
apiVersion: v1 | ||
kind: PersistentVolume | ||
metadata: | ||
name: postgresdb-persistent-volume | ||
namespace: postgres | ||
labels: | ||
type: local | ||
app: postgresdb | ||
spec: | ||
storageClassName: manual | ||
capacity: | ||
storage: 2Gi | ||
accessModes: | ||
- ReadWriteMany | ||
hostPath: | ||
path: "/data/db" | ||
--- | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
name: db-persistent-volume-claim | ||
namespace: postgres | ||
spec: | ||
storageClassName: manual | ||
accessModes: | ||
- ReadWriteMany | ||
resources: | ||
requests: | ||
storage: 2Gi | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: postgresdb | ||
namespace: postgres | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: postgresdb | ||
template: | ||
metadata: | ||
labels: | ||
app: postgresdb | ||
spec: | ||
containers: | ||
- name: postgresdb | ||
image: postgres | ||
ports: | ||
- containerPort: 5432 | ||
envFrom: | ||
- secretRef: | ||
name: db-secret-credentials | ||
volumeMounts: | ||
- mountPath: /var/lib/postgres/data | ||
name: db-data | ||
volumes: | ||
- name: db-data | ||
persistentVolumeClaim: | ||
claimName: db-persistent-volume-claim | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: postgresdb | ||
namespace: postgres | ||
labels: | ||
app: postgresdb | ||
spec: | ||
type: ClusterIP | ||
ports: | ||
- port: 5432 | ||
selector: | ||
app: postgresdb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.