2022-12-22 18:56:50 +00:00
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: external-svc
|
|
|
|
namespace: infra
|
|
|
|
spec:
|
|
|
|
ports:
|
2022-12-23 09:17:42 +00:00
|
|
|
- name: http
|
|
|
|
protocol: TCP
|
2022-12-22 18:56:50 +00:00
|
|
|
port: 80
|
|
|
|
targetPort: 8080
|
|
|
|
---
|
|
|
|
apiVersion: discovery.k8s.io/v1
|
|
|
|
kind: EndpointSlice
|
|
|
|
metadata:
|
|
|
|
name: external-svc-1
|
|
|
|
namespace: infra
|
|
|
|
labels:
|
|
|
|
kubernetes.io/service-name: tdc-aren-external-svc # Is there a way to have the `tdc-aren-` prefix automatically applied here?
|
|
|
|
ports:
|
2022-12-23 09:17:42 +00:00
|
|
|
- name: http
|
|
|
|
port: 8080
|
2022-12-22 18:56:50 +00:00
|
|
|
endpoints:
|
|
|
|
- addresses:
|
|
|
|
- "10.10.10.11"
|