Services connect Kubernetes applications. Label selectors are used to associating Pods with Services. This validator detects a condition when there are more than one applications associated with a Service. It usually indicates that label selector is loosely defined resulting in multiple apps referred by a Service.
Affected Resources: Service
apiVersion: v1
kind: Service
metadata:
name: billing-service
spec:
type: ClusterIP
selector:
component: backend # Is the app: billing missing?
apiVersion: apps/v1
kind: Deployment
metadata:
name: billing-app
labels:
component: backend
app: billing
apiVersion: apps/v1
kind: Deployment
metadata:
name: checkout-app
labels:
component: backend
app: checkout
Please let us know if there are other built-in validation rules you would like to see in Kubevious to detect misconfigurations and violations to best practices. Optionally, you can provide your details so we can reach out to you with follow-up questions.