-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcilium.yaml
168 lines (162 loc) · 3.58 KB
/
cilium.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
167
---
helm:
repo: https://helm.cilium.io/
chart: cilium
version: 1.16.3
dependsOn:
- name: cert-manager-cert-manager
- name: observability-grafana-agent-cluster
values:
prometheus:
enabled: true
serviceMonitor:
enabled: true
cluster:
name: vilya
id: 1
bpf:
masquerade: true
rollOutCiliumPods: true
localRedirectPolicy: true
kubeProxyReplacement: true
routingMode: native
kubeProxyReplacementHealthzBindAddr: 0.0.0.0:10256
ipv4NativeRoutingCIDR: 10.244.0.0/16
ipam:
mode: kubernetes
securityContext:
capabilities:
ciliumAgent:
- CHOWN
- KILL
- NET_ADMIN
- NET_RAW
- IPC_LOCK
- SYS_ADMIN
- SYS_RESOURCE
- DAC_OVERRIDE
- FOWNER
- SETGID
- SETUID
cleanCiliumState:
- NET_ADMIN
- SYS_ADMIN
- SYS_RESOURCE
cgroup:
autoMount:
enabled: false
hostRoot: /sys/fs/cgroup
k8sServiceHost: 192.168.100.100
k8sServicePort: 6443
loadBalancer:
algorithm: maglev
mode: dsr
endpointRoutes:
enabled: true
autoDirectNodeRoutes: true
ipv6:
enabled: false
operator:
rollOutPods: true
dashboards:
enabled: true
annotations:
grafana_folder: Cilium
prometheus:
enabled: true
serviceMonitor:
enabled: true
containerRuntime:
integration: containerd
hubble:
enabled: true
metrics:
enabled:
- dns:query
- drop
- flow
- http
- icmp
- port-distribution
- tcp
serviceMonitor:
enabled: true
relay:
enabled: true
rollOutPods: true
prometheus:
serviceMonitor:
enabled: true
ui:
enabled: true
rollOutPods: true
ingress:
enabled: true
annotations:
traefik.ingress.kubernetes.io/router.entrypoints: websecure
cert-manager.io/cluster-issuer: letsencrypt-production
hosts:
- hubble.${SECRET_DOMAIN}
tls:
- secretName: hubble-tls
hosts:
- hubble.${SECRET_DOMAIN}
bgpControlPlane:
enabled: true
resources:
- apiVersion: cilium.io/v2alpha1
kind: CiliumBGPClusterConfig
metadata:
name: bgp-cluster-config
spec:
nodeSelector:
matchLabels:
kubernetes.io/os: "linux"
bgpInstances:
- name: main-instance
localASN: 64513
peers:
- name: main-peer
peerASN: 64512
peerAddress: ${NETWORK_BGP_PEER}
peerConfigRef:
name: main-peer-config
- apiVersion: cilium.io/v2alpha1
kind: CiliumBGPPeerConfig
metadata:
name: main-peer-config
spec:
families:
- afi: ipv4
safi: unicast
advertisements:
matchLabels:
advertise: bgp
gracefulRestart:
enabled: true
restartTimeSeconds: 120
- apiVersion: cilium.io/v2alpha1
kind: CiliumBGPAdvertisement
metadata:
name: service-advertisements
labels:
advertise: bgp
spec:
advertisements:
- advertisementType: "Service"
service:
addresses:
- ExternalIP
- LoadBalancerIP
selector:
matchExpressions:
- key: somekey
operator: NotIn
values: ["announce-all-services"]
- apiVersion: cilium.io/v2alpha1
kind: CiliumLoadBalancerIPPool
metadata:
name: blue-pool
spec:
blocks:
- cidr: 192.168.2.0/24