diff --git a/postgres-deployment.yaml b/postgres-deployment.yaml deleted file mode 100644 index 46abfd2..0000000 --- a/postgres-deployment.yaml +++ /dev/null @@ -1,44 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: postgres - namespace: my-app -spec: - replicas: 1 - selector: - matchLabels: - app: postgres - template: - metadata: - labels: - app: postgres - spec: - containers: - - name: postgres - image: postgres:14 - imagePullPolicy: IfNotPresent - ports: - - containerPort: 5432 - env: - - name: POSTGRES_PASSWORD - value: postgres - - name: POSTGRES_USER - value: postgres - - name: POSTGRES_DB - value: postgres - - name: PGDATA - value: /var/lib/postgresql/data/pgdata - volumeMounts: - - name: postgres-storage - mountPath: /var/lib/postgresql/data - resources: - requests: - memory: "256Mi" - cpu: "200m" - limits: - memory: "512Mi" - cpu: "500m" - volumes: - - name: postgres-storage - persistentVolumeClaim: - claimName: data-pvc \ No newline at end of file