Files
2025-12-11 11:11:33 +08:00

16 lines
286 B
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

apiVersion: v1
kind: Service
metadata:
name: elasticsearch
namespace: elastic-system
labels:
app: elasticsearch
spec:
clusterIP: None # Headless Service关键
selector:
app: elasticsearch
ports:
- port: 9200
name: http
- port: 9300
name: transport