Apps/RatingsApp/2-ratings-api-service.yaml (12 lines of code) (raw):

apiVersion: v1 kind: Service metadata: name: ratings-api spec: selector: app: ratings-api ports: - protocol: TCP port: 80 targetPort: 3000 type: ClusterIP