-
Notifications
You must be signed in to change notification settings - Fork 0
/
test2.yaml
49 lines (49 loc) · 1.07 KB
/
test2.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
48
49
apiVersion: kube-vip.io/v1alpha1
kind: MultiCluster
metadata:
labels:
app.kubernetes.io/name: multicluster
app.kubernetes.io/instance: multicluster-test2
app.kubernetes.io/part-of: kube-vip-multi-cluster
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/created-by: kube-vip-multi-cluster
name: multicluster-test-2
spec:
port: 9990
callsign: "federation"
ready: true
serviceAddress: 172.18.100.10
payload: |
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deployment
spec:
replicas: 3
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx:latest
ports:
- containerPort: 80
---
apiVersion: v1
kind: Service
metadata:
name: nginx-loadbalancer-service
spec:
selector:
app: nginx
ports:
- name: http
port: 80
targetPort: 80
type: LoadBalancer
rank: 5