postgres-service.yaml 334 B

12345678910111213
  1. apiVersion: v1
  2. kind: Service # Create service
  3. metadata:
  4. name: postgres # Sets the service name
  5. namespace: postgres
  6. labels:
  7. app: postgres # Defines app to create service for
  8. spec:
  9. type: NodePort # Sets the service type
  10. ports:
  11. - port: 5432 # Sets the port to run the postgres application
  12. selector:
  13. app: postgres