25 lines
474 B
YAML
25 lines
474 B
YAML
|
---
|
||
|
apiVersion: v1
|
||
|
kind: Service
|
||
|
metadata:
|
||
|
name: external-svc
|
||
|
namespace: infra
|
||
|
spec:
|
||
|
ports:
|
||
|
- protocol: TCP
|
||
|
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:
|
||
|
- port: 8080
|
||
|
endpoints:
|
||
|
- addresses:
|
||
|
- "10.10.10.11"
|