apiVersion: v1
kind: Service
metadata:
  name: resnet50v1-5-fp32-inference # {"$openapi":"MODEL_SERVING_NAME"}
  labels:
    app: resnet50v1-5-fp32-server # {"$openapi":"MODEL_SERVING_LABEL"}
spec:
  # comment or delete the following line if you want to use a LoadBalancer
  type: NodePort # https://kubernetes.io/docs/concepts/services-networking/service/#nodeport
  # if your cluster supports it, uncomment the following to automatically create
  # an external load-balanced IP for the frontend service.
  # type: LoadBalancer
  ports:
  - protocol: TCP
    port: 8501 # {"$openapi":"MODEL_SERVICE_PORT"}
    targetPort: 8500 # {"$openapi":"MODEL_PORT"}
  selector:
    app: resnet50v1-5-fp32-server # {"$openapi":"MODEL_SERVING_LABEL"}
