diff --git a/README.md b/README.md index b601ce2..856b7b1 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,9 @@ Installed Plugins - Github Auth - Github Actions +#How to add new user? +- Create a user entity to match with the github user + To start the app, run: ```sh diff --git a/k8s/postgres.yaml b/k8s/postgres.yaml index 2aea6d5..a9f2730 100644 --- a/k8s/postgres.yaml +++ b/k8s/postgres.yaml @@ -26,7 +26,7 @@ spec: apiVersion: apps/v1 kind: Deployment metadata: - name: postgres + name: postgresdb namespace: backstage spec: replicas: 1 @@ -38,6 +38,13 @@ spec: labels: app: postgres spec: + initContainers: + - name: init-postgres + image: busybox + command: ["sh", "-c", "rm -rf /var/lib/postgres/data/*"] + volumeMounts: + - name: postgresdb + mountPath: /var/lib/postgres/data containers: - name: postgres image: postgres:13.2-alpine @@ -50,7 +57,6 @@ spec: volumeMounts: - mountPath: /var/lib/postgresql/data name: postgresdb - subPath: data volumes: - name: postgresdb persistentVolumeClaim: