Services connect Kubernetes applications. Label selectors are used to associating Pods with Services. This validator detects a condition when no application is associated with a Service. It usually indicates a naming error in workload or Service labels.
Affected Resources: Service
apiVersion: v1
kind: Service
metadata:
name: my-app-service
spec:
type: ClusterIP
selector:
foo: bar # label-value not found
apiVersion: apps/v1
kind: Deployment
metadata:
name: my-app
labels:
foo: not-bar # different in the Service
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.