c12s-application-set/deploy/external-svc/tdc-aren/backend.yaml
2022-12-23 10:17:42 +01:00

27 lines
506 B
YAML

---
apiVersion: v1
kind: Service
metadata:
name: external-svc
namespace: infra
spec:
ports:
- name: http
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:
- name: http
port: 8080
endpoints:
- addresses:
- "10.10.10.11"