apiVersion: v1
kind: Service
metadata:
  name: ydl-service
  namespace: ydl
spec:
  selector:
    app: your-dl-server
  ports:
    - name: http
      targetPort: 8080  # port the container accepts traffic on
      port: 8080  # port other pods use to access the Service
      protocol: TCP