Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

External name service is not treated properly - #47

Closed
derrickburns opened this issue Oct 26, 2020 · 5 comments
Closed

External name service is not treated properly - #47

derrickburns opened this issue Oct 26, 2020 · 5 comments
Labels
component/backend Related to backend component kind/bug Something isn't working

Comments

@derrickburns
Copy link

Kubevious reports "Could not find apps matching selector" for ExternalName Service. This is incorrect.

@rubenhak
Copy link
Collaborator

@derrickburns, could you provide and example config for such service?

@derrickburns
Copy link
Author

derrickburns commented Oct 27, 2020

apiVersion: v1
kind: Service
metadata:
  annotations:
    fluxcd.io/sync-checksum: 8c03fabae09f1fe23679ffe4418acb2bb0f6d8ff
    kubectl.kubernetes.io/last-applied-configuration: |
      {"apiVersion":"v1","kind":"Service","metadata":{"annotations":{"fluxcd.io/sync-checksum":"8c03fabae09f1fe23679ffe4418acb2bb0f6d8ff"},"labels":{"app":"zk-1","fluxcd.io/sync-gc-mark":"sha256.T0kFKDum-PVrsTZKHowsyEuDQxrWP3Fxwke3CH9vMTQ"},"name":"zk-1","namespace":"amazon"},"spec":{"externalName":"z-1.ops-default.ccpe21.c4.kafka.us-west-2.amazonaws.com","ports":[{"port":2181,"protocol":"TCP","targetPort":2181}],"selector":{"app":"zk-1"},"type":"ExternalName"}}
  creationTimestamp: "2020-07-05T04:37:23Z"
  labels:
    app: zk-1
    fluxcd.io/sync-gc-mark: sha256.T0kFKDum-PVrsTZKHowsyEuDQxrWP3Fxwke3CH9vMTQ
  name: zk-1
  namespace: amazon
  resourceVersion: "196439802"
  selfLink: /api/v1/namespaces/amazon/services/zk-1
  uid: e23f9ad0-78b8-4910-973e-fc39f9e9bd42
spec:
  externalName: z-1.ops-default.ccpe21.c4.kafka.us-west-2.amazonaws.com
  ports:
  - port: 2181
    protocol: TCP
    targetPort: 2181
  selector:
    app: zk-1
  sessionAffinity: None
  type: ExternalName
status:
  loadBalancer: {}

@rubenhak
Copy link
Collaborator

@derrickburns, I though for ExternalName services the "selector" should not be specified. Nevertheless, we can ignore selector for ExternalName services

@rubenhak rubenhak added component/backend Related to backend component kind/bug Something isn't working labels Oct 27, 2020
@derrickburns
Copy link
Author

derrickburns commented Oct 30, 2020

Thanks! I fixed my code!

@kubevious
Copy link
Owner

Resolved in v0.7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/backend Related to backend component kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants