-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathhello-selector.yaml
59 lines (59 loc) · 1.57 KB
/
hello-selector.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
apiVersion: v1
kind: Service
metadata:
name: hello
labels:
name: hello
annotations:
federation.kubernetes.io/service-ingresses: '{"items": [{"cluster": "europe", "items": [{"ip": "192.168.99.102", "hostname": "192.168.99.102"}]}]}'
federation.alpha.kubernetes.io/cluster-selector: '[{"key": "environment", "operator": "In", "values": ["prod"]}, {"key": "pciCompliant", "operator": "In", "values": ["true"]}]'
spec:
type: LoadBalancer
ports:
- port: 80
targetPort: 8080
protocol: TCP
selector:
name: hello
---
apiVersion: extensions/v1beta1
kind: ReplicaSet
metadata:
labels:
name: hello
name: hello
annotations:
federation.alpha.kubernetes.io/cluster-selector: '[{"key": "environment", "operator": "In", "values": ["prod"]}, {"key": "pciCompliant", "operator": "In", "values": ["true"]}]'
spec:
replicas: 3
template:
metadata:
labels:
name: hello
spec:
containers:
- image: hjacobs/tiny-docker-http-test
name: helloworld
ports:
- containerPort: 8080
name: http-server
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: hello
namespace: default
annotations:
federation.alpha.kubernetes.io/cluster-selector: '[{"key": "environment", "operator": "In", "values": ["prod"]}, {"key": "pciCompliant", "operator": "In", "values": ["true"]}]'
spec:
rules:
- host: hello.default.myfed.svc.myzone
http:
paths:
- backend:
serviceName: hello
servicePort: 80
path: /
tls:
- hosts:
- hello.default.myfed.svc.myzone