Unresolved Application reference in Service

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

Examples

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

Resolution

  • Identify which application should the Service refer to.
  • Make correction to the labels on the workload or the Service.
  • Need other validation rules?

    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.

    Share this article on:
    message