-
Notifications
You must be signed in to change notification settings - Fork 2
/
complete-syncconfig.yaml
56 lines (56 loc) · 1.11 KB
/
complete-syncconfig.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
apiVersion: sync.appuio.ch/v1alpha1
kind: SyncConfig
metadata:
name: complete-example
spec:
forceRecreate: true
namespaceSelector:
labelSelector:
matchExpressions:
- key: customer
operator: Exists
matchLabels:
some-label: value
matchNames:
- myproject
ignoreNames:
- espejo-system
syncItems:
- apiVersion: v1
kind: Service
metadata:
name: glusterfs-cluster
spec:
type: ClusterIP
clusterIP: None
ports:
- port: 49152
targetPort: 49152
protocol: TCP
- apiVersion: v1
kind: Endpoints
metadata:
name: glusterfs-cluster
subsets:
- addresses:
- ip: 172.28.54.121
- ip: 172.28.54.122
- ip: 172.28.54.123
ports:
- port: 49152
protocol: TCP
- apiVersion: networking.k8s.io
kind: NetworkPolicy
metadata:
name: allow-from-same-namespace
spec:
ingress:
- from:
- podSelector: {}
podSelector: {}
policyTypes:
- Ingress
deleteItems:
- apiVersion: v1
kind: ConfigMap
name: some-name-in-${PROJECT_NAME}