-
Notifications
You must be signed in to change notification settings - Fork 140
/
endpoint.yaml
47 lines (41 loc) · 1.2 KB
/
endpoint.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#
# Author: Hari Sekhon
# Date: [% DATE # 2019-11-25 13:47:16 +0000 (Mon, 25 Nov 2019) %]
#
# vim:ts=2:sts=2:sw=2:et
# lint: k8s
#
# https://github.com/HariSekhon/Kubernetes-configs
#
# License: see accompanying Hari Sekhon LICENSE file
#
# If you're using my code you're welcome to connect with me on LinkedIn
# and optionally send me feedback to help improve or steer this or other code I publish
#
# https://www.linkedin.com/in/HariSekhon
#
# ============================================================================ #
# E n d p o i n t
# ============================================================================ #
# https://kubernetes.io/docs/concepts/services-networking/service/
# https://kubernetes.io/docs/reference/kubernetes-api/service-resources/endpoints-v1/
# You'll rarely do this yourself, usually let the service manage the endpoint for you
# combine with service-manual-endpoints.yaml
---
apiVersion: v1
kind: Endpoints
metadata:
name: NAME
namespace: NAMESPACE
labels:
app: APP
subsets:
# round robins to each of the addresses
- addresses:
- ip: IP
ports:
- port: 80
- addresses:
- ip: IP2
ports:
- port: 80