apiVersion: apps/v1
kind: Deployment
metadata: # kpt-merge: /postgres
  name: postgres
  labels:
    app: postgres
  annotations:
    internal.kpt.dev/upstream-identifier: 'apps|Deployment|default|postgres'
spec:
  selector:
    matchLabels:
      app: postgres
  template:
    metadata:
      name: postgres
      labels:
        app: postgres
    spec:
      containers:
        - name: main
          image: postgres:12-alpine
          env:
            - name: POSTGRES_PASSWORD
              value: password
          ports:
            - containerPort: 5432
          readinessProbe:
            exec:
              command: ["psql", "-U", "postgres", "-c", "SELECT 1"]
            initialDelaySeconds: 15
            timeoutSeconds: 2
      nodeSelector:
        kubernetes.io/os: linux
