diff --git a/kubefiles/postgres-deployment.yml b/kubefiles/postgres-deployment.yml index 76c8fea..1043bfc 100644 --- a/kubefiles/postgres-deployment.yml +++ b/kubefiles/postgres-deployment.yml @@ -3,6 +3,9 @@ kind: Deployment metadata: name: postgres spec: + selector: + matchLabels: + app: postgres replicas: 1 template: metadata: @@ -31,4 +34,4 @@ spec: # mapped to the PVC - name: postgres-pvc persistentVolumeClaim: - claimName: postgres-pvc \ No newline at end of file + claimName: postgres-pvc