18 lines
464 B
YAML
18 lines
464 B
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: cals
|
|
namespace: epcare
|
|
spec:
|
|
selector:
|
|
app: cals
|
|
ports:
|
|
- name: syslog-tcp
|
|
protocol: TCP
|
|
port: 601
|
|
targetPort: 601
|
|
# ClusterIP (default) — no fixed IP needed anymore.
|
|
# Each namespace (epcare-ep01, epcare-ep02...) gets its own cals Service.
|
|
# Other pods in the same namespace reach it via: cals:601
|
|
# Cross-namespace: cals.epcare-ep01.svc.cluster.local:601 (not needed here)
|