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

ExternalName service health check port does not take effect #6229

Closed
yangyy93 opened this issue Feb 29, 2024 · 0 comments · Fixed by #6230
Closed

ExternalName service health check port does not take effect #6229

yangyy93 opened this issue Feb 29, 2024 · 0 comments · Fixed by #6230
Labels
kind/bug Categorizes issue or PR as related to a bug. lifecycle/needs-triage Indicates that an issue needs to be triaged by a project contributor.

Comments

@yangyy93
Copy link
Member

In the service where httpproxy sets routing, if the service type is externalName, the healthPort is not delivered to envoy.

apiVersion: projectcontour.io/v1
kind: HTTPProxy
metadata:
  name: test1
spec:
  routes:
    - conditions:
        - header:
            name: ':method'
            regex: GET
          prefix: /extservice
      healthCheckPolicy:
        path: /
      services:
        - name: demo-externalname-service
          port: 8080
          healthPort: 8998
apiVersion: v1
kind: Service
metadata:
  name: aksk-demo-externalname
spec:
  ports:
    - name: '8080'
      protocol: TCP
      port: 8080
      targetPort: 8080
    - name: '8998'
      protocol: TCP
      port: 8998
      targetPort: 8998
  type: ExternalName
  externalName: foo.test.svc.cluster.local

The health check port should be 8998, but it does not take effect.

@yangyy93 yangyy93 added kind/bug Categorizes issue or PR as related to a bug. lifecycle/needs-triage Indicates that an issue needs to be triaged by a project contributor. labels Feb 29, 2024
yangyy93 added a commit to projectsesame/contour that referenced this issue Feb 29, 2024
Signed-off-by: yangyang <yang.yang@daocloud.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. lifecycle/needs-triage Indicates that an issue needs to be triaged by a project contributor.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant