pgadmin-service.yaml 351 B

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