21 lines
365 B
YAML

kind: Service
apiVersion: v1
metadata:
labels:
name: LABEL
name: RESOURCE_NAME
namespace: production
spec:
selector:
app: RESOURCE_NAME
ports:
- name: predictions
port: 9090
protocol: TCP
targetPort: 9090
- name: probes
port: 9091
protocol: TCP
targetPort: 9091
sessionAffinity: None
type: ClusterIP