Skip to content

Commit

Permalink
Update Cilium v1.16 (#277)
Browse files Browse the repository at this point in the history
The new Cilium already enables our patch
cilium/cilium#32730. It should be better to
update instead of keeping it in-tree

Signed-off-by: Andrei Kvapil <[email protected]>
  • Loading branch information
kvaps authored Aug 12, 2024
1 parent 40fd96d commit bbdec9b
Show file tree
Hide file tree
Showing 93 changed files with 8,218 additions and 2,885 deletions.
2 changes: 1 addition & 1 deletion packages/system/cilium/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ update:
rm -rf charts
helm repo add cilium https://helm.cilium.io/
helm repo update cilium
helm pull cilium/cilium --untar --untardir charts --version 1.15
helm pull cilium/cilium --untar --untardir charts --version 1.16
sed -i -e '/Used in iptables/d' -e '/SYS_MODULE/d' charts/cilium/values.yaml
version=$$(awk '$$1 == "version:" {print $$2}' charts/cilium/Chart.yaml) && \
sed -i "s/ARG VERSION=.*/ARG VERSION=v$${version}/" images/cilium/Dockerfile
Expand Down
6 changes: 3 additions & 3 deletions packages/system/cilium/charts/cilium/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ annotations:
Pod IP Pool\n description: |\n CiliumPodIPPool defines an IP pool that can
be used for pooled IPAM (i.e. the multi-pool IPAM mode).\n"
apiVersion: v2
appVersion: 1.15.7
appVersion: 1.16.0
description: eBPF-based Networking, Security, and Observability
home: https://cilium.io/
icon: https://cdn.jsdelivr.net/gh/cilium/cilium@main/Documentation/images/logo-solo.svg
Expand All @@ -91,8 +91,8 @@ keywords:
- Security
- Observability
- Troubleshooting
kubeVersion: '>= 1.16.0-0'
kubeVersion: '>= 1.21.0-0'
name: cilium
sources:
- https://github.com/cilium/cilium
version: 1.15.7
version: 1.16.0
182 changes: 104 additions & 78 deletions packages/system/cilium/charts/cilium/README.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -4691,21 +4691,21 @@
"steppedLine": false,
"targets": [
{
"expr": "sum(rate(cilium_policy_l7_denied_total{k8s_app=\"cilium\", pod=~\"$pod\"}[1m]))",
"expr": "sum(rate(cilium_policy_l7_total{k8s_app=\"cilium\", pod=~\"$pod\", rule=\"denied\"}[1m]))",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "denied",
"refId": "A"
},
{
"expr": "sum(rate(cilium_policy_l7_forwarded_total{k8s_app=\"cilium\", pod=~\"$pod\"}[1m]))",
"expr": "sum(rate(cilium_policy_l7_total{k8s_app=\"cilium\", pod=~\"$pod\", rule=\"forwarded\"}[1m]))",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "forwarded",
"refId": "B"
},
{
"expr": "sum(rate(cilium_policy_l7_received_total{k8s_app=\"cilium\", pod=~\"$pod\"}[1m]))",
"expr": "sum(rate(cilium_policy_l7_total{k8s_app=\"cilium\", pod=~\"$pod\", rule=\"received\"}[1m]))",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "received",
Expand Down Expand Up @@ -4857,7 +4857,7 @@
"aliasColors": {
"Max per node processingTime": "#e24d42",
"Max per node upstreamTime": "#58140c",
"avg(cilium_policy_l7_parse_errors_total{pod=~\"cilium.*\"})": "#bf1b00",
"avg(cilium_policy_l7_total{pod=~\"cilium.*\", rule=\"parse_errors\"})": "#bf1b00",
"parse errors": "#bf1b00"
},
"bars": true,
Expand Down Expand Up @@ -4916,7 +4916,7 @@
"yaxis": 2
},
{
"alias": "avg(cilium_policy_l7_parse_errors_total{pod=~\"cilium.*\"})",
"alias": "avg(cilium_policy_l7_total{pod=~\"cilium.*\", rule=\"parse_errors\"})",
"yaxis": 2
},
{
Expand All @@ -4937,7 +4937,7 @@
"refId": "A"
},
{
"expr": "avg(cilium_policy_l7_parse_errors_total{k8s_app=\"cilium\", pod=~\"$pod\"}) by (pod)",
"expr": "avg(cilium_policy_l7_total{k8s_app=\"cilium\", pod=~\"$pod\", rule=\"parse_errors\"}) by (pod)",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "parse errors",
Expand Down Expand Up @@ -5295,7 +5295,7 @@
"refId": "B"
},
{
"expr": "max(rate(cilium_policy_l7_parse_errors_total{k8s_app=\"cilium\", pod=~\"$pod\"}[1m])) by (pod)",
"expr": "max(rate(cilium_policy_l7_total{k8s_app=\"cilium\", pod=~\"$pod\", rule=\"parse_errors\"}[1m])) by (pod)",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "parse errors",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
},
"staticResources": {
"listeners": [
{{- if and .Values.proxy.prometheus.enabled .Values.envoy.prometheus.enabled }}
{{- if .Values.envoy.prometheus.enabled }}
{
"name": "envoy-prometheus-metrics-listener",
"address": {
"socket_address": {
"address": "0.0.0.0",
"port_value": {{ .Values.proxy.prometheus.port | default .Values.envoy.prometheus.port }}
"port_value": {{ .Values.envoy.prometheus.port }}
}
},
"filter_chains": [
Expand Down Expand Up @@ -60,6 +60,73 @@
]
},
{{- end }}
{{- if and .Values.envoy.debug.admin.enabled }}
{
"name": "envoy-admin-listener",
"address": {
"socket_address": {
"address": {{ .Values.ipv4.enabled | ternary "127.0.0.1" "::1" | quote }},
"port_value": {{ .Values.envoy.debug.admin.port }}
}
},
{{- if and .Values.ipv4.enabled .Values.ipv6.enabled }}
"additional_addresses": [
{
"address": {
"socket_address": {
"address": "::1",
"port_value": {{ .Values.envoy.debug.admin.port }}
}
}
}
],
{{- end }}
"filter_chains": [
{
"filters": [
{
"name": "envoy.filters.network.http_connection_manager",
"typed_config": {
"@type": "type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager",
"stat_prefix": "envoy-admin-listener",
"route_config": {
"virtual_hosts": [
{
"name": "admin_route",
"domains": [
"*"
],
"routes": [
{
"name": "admin_route",
"match": {
"prefix": "/"
},
"route": {
"cluster": "/envoy-admin",
"prefix_rewrite": "/"
}
}
]
}
]
},
"http_filters": [
{
"name": "envoy.filters.http.router",
"typed_config": {
"@type": "type.googleapis.com/envoy.extensions.filters.http.router.v3.Router"
}
}
],
"stream_idle_timeout": "0s"
}
}
]
}
]
},
{{- end }}
{
"name": "envoy-health-listener",
"address": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,22 @@
{
"__inputs": [
{
"name": "DS_PROMETHEUS",
"label": "prometheus",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
],
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"datasource": {
"type": "datasource",
"uid": "grafana"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
Expand All @@ -25,7 +38,10 @@
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "prometheus",
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"fieldConfig": {
"defaults": {
"custom": {}
Expand Down Expand Up @@ -151,7 +167,10 @@
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "prometheus",
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"fieldConfig": {
"defaults": {
"custom": {}
Expand Down Expand Up @@ -281,7 +300,10 @@
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "prometheus",
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"fieldConfig": {
"defaults": {
"custom": {}
Expand Down Expand Up @@ -378,7 +400,10 @@
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "prometheus",
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"fieldConfig": {
"defaults": {
"custom": {}
Expand Down Expand Up @@ -475,7 +500,10 @@
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "prometheus",
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"fieldConfig": {
"defaults": {
"custom": {}
Expand Down Expand Up @@ -572,7 +600,10 @@
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "prometheus",
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"fieldConfig": {
"defaults": {
"custom": {}
Expand Down Expand Up @@ -669,7 +700,10 @@
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "prometheus",
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"fieldConfig": {
"defaults": {
"custom": {}
Expand Down Expand Up @@ -766,7 +800,10 @@
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "prometheus",
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"fieldConfig": {
"defaults": {
"custom": {}
Expand Down Expand Up @@ -863,7 +900,10 @@
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "prometheus",
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"fieldConfig": {
"defaults": {
"custom": {}
Expand Down
Loading

0 comments on commit bbdec9b

Please sign in to comment.