<p>I want to have a setup where my dns points to my EKS cluster, and my EKS cluster points api.server.com/static</p>

<p>to files on S3 and api.server.com/api to my tomcat deployment.</p>

<p>I'm curious if and how this is possible.</p>

Calicoder
<p>Yes, you can add a service of "externalName" type pointing to an external domain name. This has to be a FQDN, not a URL though, you need to add routing logic to your ingress.</p>

<pre><code>---
apiVersion: v1
kind: Service
metadata:
  name: external
  namespace: default
  labels:
    app: external
spec:
  type: ExternalName # &lt;-- this is the service type for external resources
  externalName: s3.amazon.fqdn # &lt;-- put your external domain here
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: external
  namespace: default
  nginx.ingress.kubernetes.io/rewrite-target: / # &lt;-- your routing logic?
spec:
  rules:
  - http:
      paths:
      - path: /static # &lt;-- your routing logic
        backend:
          serviceName: external # &lt;-- your service name
          servicePort: 80
</code></pre>
