apiVersion: v1
kind: Service
metadata:
  name: kagent
  namespace: kagent
  labels:
    app: kagent
    managed-by: vapora
spec:
  type: ClusterIP
  clusterIP: None
  selector:
    app: kagent
  ports:
    - name: http
      port: 8080
      targetPort: http
      protocol: TCP
    - name: grpc
      port: 50051
      targetPort: grpc
      protocol: TCP
    - name: metrics
      port: 9090
      targetPort: metrics
      protocol: TCP

---
apiVersion: v1
kind: Service
metadata:
  name: kagent-api
  namespace: kagent
  labels:
    app: kagent
    managed-by: vapora
spec:
  type: ClusterIP
  selector:
    app: kagent
  ports:
    - name: http
      port: 8080
      targetPort: http
      protocol: TCP

---
apiVersion: v1
kind: Service
metadata:
  name: kagent-grpc
  namespace: kagent
  labels:
    app: kagent
    managed-by: vapora
spec:
  type: ClusterIP
  selector:
    app: kagent
  ports:
    - name: grpc
      port: 50051
      targetPort: grpc
      protocol: TCP
