Try to fix endpoints issue

This commit is contained in:
douzeb 2022-12-23 10:17:42 +01:00
parent b038898c8a
commit 7219e55b5c
2 changed files with 6 additions and 3 deletions

View file

@ -8,6 +8,7 @@ spec:
type: ClusterIP type: ClusterIP
ports: ports:
- protocol: TCP - protocol: TCP
name: http
port: 80 port: 80
targetPort: 80 targetPort: 80
--- ---
@ -24,7 +25,7 @@ metadata:
endpointslice.kubernetes.io/managed-by: gitops endpointslice.kubernetes.io/managed-by: gitops
addressType: IPv4 addressType: IPv4
ports: ports:
- name: '' - name: 'http'
appProtocol: http appProtocol: http
protocol: TCP protocol: TCP
port: 80 port: 80

View file

@ -6,7 +6,8 @@ metadata:
namespace: infra namespace: infra
spec: spec:
ports: ports:
- protocol: TCP - name: http
protocol: TCP
port: 80 port: 80
targetPort: 8080 targetPort: 8080
--- ---
@ -18,7 +19,8 @@ metadata:
labels: labels:
kubernetes.io/service-name: tdc-aren-external-svc # Is there a way to have the `tdc-aren-` prefix automatically applied here? kubernetes.io/service-name: tdc-aren-external-svc # Is there a way to have the `tdc-aren-` prefix automatically applied here?
ports: ports:
- port: 8080 - name: http
port: 8080
endpoints: endpoints:
- addresses: - addresses:
- "10.10.10.11" - "10.10.10.11"