forked from linkerd/linkerd2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlink.yaml
166 lines (166 loc) · 7.11 KB
/
link.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
apiVersion: v1
data:
kubeconfig: YXBpVmVyc2lvbjogdjEKY2x1c3RlcnM6Ci0gY2x1c3RlcjoKICAgIGNlcnRpZmljYXRlLWF1dGhvcml0eS1kYXRhOiBMUzB0TFMxQ1JVZEpUaUJEUlZKVVNVWkpRMEZVUlMwdExTMHRDazFKU1VKa2FrTkRRVkl5WjBGM1NVSkJaMGxDUVVSQlMwSm5aM0ZvYTJwUFVGRlJSRUZxUVdwTlUwVjNTSGRaUkZaUlVVUkVRbWh5VFROTmRHTXlWbmtLWkcxV2VVeFhUbWhSUkVVeVRrUmpkMDFxUVhsUFJFRjNTR2hqVGsxcVNYZE5la1Y0VFZSamVrOUVRWGRYYUdOT1RYcEpkMDE2UVRSTlZHTjZUMFJCZHdwWGFrRnFUVk5GZDBoM1dVUldVVkZFUkVKb2NrMHpUWFJqTWxaNVpHMVdlVXhYVG1oUlJFVXlUa1JqZDAxcVFYbFBSRUYzVjFSQlZFSm5ZM0ZvYTJwUENsQlJTVUpDWjJkeGFHdHFUMUJSVFVKQ2QwNURRVUZSYTB0NWRHcHpXaTlhUVVrd1EyWlhNbE01TXpOd2R5OUhTek5PV1hSWE1HNU9NbHBhVjJ4WV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c0FkN0tiRjlkRWZ4VVVtY0hJaWliNndLOVZpbWZDMHZCRWxXN2VrQk9faDZFTi1aY2MwVnlZamRSOXRreG9uSEc0Vmw1bDlET1gwQU53Rlp6TDdYUFFac0YtYnRQQXFVakttd1BHaVNzSlZwZVAzRFlDbVFGYWRQOFNIaXoyalpRdC1KWUkzRUx2TXpOVmR5VG1Va1RoTmdZenZlaXB6UGpOTWZHZwo=
kind: Secret
metadata:
creationTimestamp: null
name: cluster-credentials-k3d-x
namespace: linkerd-multicluster
type: mirror.linkerd.io/remote-kubeconfig
---
apiVersion: multicluster.linkerd.io/v1alpha1
kind: Link
metadata:
name: k3d-x
namespace: linkerd-multicluster
spec:
clusterCredentialsSecret: cluster-credentials-k3d-x
gatewayAddress: 172.29.0.3
gatewayIdentity: linkerd-gateway.linkerd-multicluster.serviceaccount.identity.linkerd.cluster.local
gatewayPort: "4143"
probeSpec:
path: /ready
period: 3s
port: "4191"
selector:
matchExpressions:
- key: mirror.linkerd.io/exported
operator: Exists
targetClusterDomain: cluster.local
targetClusterLinkerdNamespace: linkerd
targetClusterName: k3d-x
---
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: linkerd-service-mirror-access-local-resources-k3d-x
labels:
linkerd.io/extension: multicluster
component: service-mirror
mirror.linkerd.io/cluster-name: k3d-x
rules:
- apiGroups: [""]
resources: ["endpoints", "services"]
verbs: ["list", "get", "watch", "create", "delete", "update"]
- apiGroups: [""]
resources: ["namespaces"]
verbs: ["list", "get", "watch"]
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: linkerd-service-mirror-access-local-resources-k3d-x
labels:
linkerd.io/extension: multicluster
component: service-mirror
mirror.linkerd.io/cluster-name: k3d-x
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: linkerd-service-mirror-access-local-resources-k3d-x
subjects:
- kind: ServiceAccount
name: linkerd-service-mirror-k3d-x
namespace: linkerd-multicluster
---
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: linkerd-service-mirror-read-remote-creds-k3d-x
namespace: linkerd-multicluster
labels:
linkerd.io/extension: multicluster
component: service-mirror
mirror.linkerd.io/cluster-name: k3d-x
rules:
- apiGroups: [""]
resources: ["secrets"]
resourceNames: ["cluster-credentials-k3d-x"]
verbs: ["list", "get", "watch"]
- apiGroups: ["multicluster.linkerd.io"]
resources: ["links"]
verbs: ["list", "get", "watch"]
---
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: linkerd-service-mirror-read-remote-creds-k3d-x
namespace: linkerd-multicluster
labels:
linkerd.io/extension: multicluster
component: service-mirror
mirror.linkerd.io/cluster-name: k3d-x
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: linkerd-service-mirror-read-remote-creds-k3d-x
subjects:
- kind: ServiceAccount
name: linkerd-service-mirror-k3d-x
namespace: linkerd-multicluster
---
kind: ServiceAccount
apiVersion: v1
metadata:
name: linkerd-service-mirror-k3d-x
namespace: linkerd-multicluster
labels:
linkerd.io/extension: multicluster
component: service-mirror
mirror.linkerd.io/cluster-name: k3d-x
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
linkerd.io/extension: multicluster
component: service-mirror
mirror.linkerd.io/cluster-name: k3d-x
name: linkerd-service-mirror-k3d-x
namespace: linkerd-multicluster
spec:
replicas: 1
selector:
matchLabels:
component: linkerd-service-mirror
mirror.linkerd.io/cluster-name: k3d-x
template:
metadata:
annotations:
linkerd.io/inject: enabled
labels:
component: linkerd-service-mirror
mirror.linkerd.io/cluster-name: k3d-x
spec:
containers:
- args:
- service-mirror
- -log-level=debug
- -event-requeue-limit=3
- -namespace=linkerd-multicluster
- -enable-headless-services
- k3d-x
image: cr.l5d.io/linkerd/controller:dev-e0ce5f08-kevin
name: service-mirror
securityContext:
runAsUser: 2103
ports:
- containerPort: 9999
name: admin-http
serviceAccountName: linkerd-service-mirror-k3d-x
---
apiVersion: v1
kind: Service
metadata:
name: probe-gateway-k3d-x
namespace: linkerd-multicluster
labels:
mirror.linkerd.io/mirrored-gateway: "true"
mirror.linkerd.io/cluster-name: k3d-x
spec:
ports:
- name: mc-probe
port: 4191
protocol: TCP
---