k8sConfigs/whoami/whoami_service.yaml

13 lines
182 B
YAML
Raw Normal View History

2025-01-23 01:35:27 +08:00
apiVersion: v1
kind: Service
metadata:
name: whoami-service
spec:
selector:
app: whoami
ports:
- protocol: TCP
port: 80
targetPort: 80
type: LoadBalancer