How to point an external service through a Kubernetes Ingress?

Viewed 18

I would like to point an external service port (eg. 8065) through Kubernetes to an Ingress so I can have a single Ingress controller that manages everything.

1 Answers

The service needs to be ExternalName and point to an IP address like so;

kind: Service
apiVersion: v1
metadata:
  name: mattermost
spec:
  clusterIP: None
  ports:
  - port: 8065
apiVersion: v1
kind: Service
metadata:
  name: mattermost
spec:
  type: ExternalName
  externalName: mattermost.example.com

If your service is working outside kubernetes, you must create A record on DNS provider

Powered by Answer - the open-source software that powers Q&A communities.
Made with love © 2025 Kreato's Answers.