Skip to content

Commit

Permalink
Enables cilium debug-mode in dctest/pre envs
Browse files Browse the repository at this point in the history
Signed-off-by: Tomoki Sugiura <[email protected]>
  • Loading branch information
chez-shanpu committed Jan 17, 2025
1 parent 478d2cf commit b801c20
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 12 deletions.
9 changes: 6 additions & 3 deletions cilium/dctest/upstream.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ data:
labels: " k8s:app k8s:io\\.cilium\\.k8s\\.namespace\\.labels\\.team k8s:io\\.kubernetes\\.pod\\.namespace k8s:k8s-app io\\.cilium\\.k8s\\.policy cybozu\\.io/family app\\.cybozu\\.io neco\\.cybozu\\.io\\/registry identity\\.neco\\.cybozu\\.io "

# If you want to run cilium in debug mode change this value to true
debug: "false"
debug: "true"
debug-verbose: ""
# The agent can be put into the following three policy enforcement modes
# default, always and never.
Expand Down Expand Up @@ -828,7 +828,7 @@ spec:
prometheus.io/port: "9962"
prometheus.io/scrape: "true"
# ensure pods roll when configmap updates
cilium.io/cilium-configmap-checksum: "015d0c430aff9b337ca0f42115b1f7fd0b9c1e871001aef285870a8f7482f6fa"
cilium.io/cilium-configmap-checksum: "33be80dd0e19503940a9cb85c0179b11c6e51ec201d6f03e786315ec8fd53532"
# Set app AppArmor's profile to "unconfined". The value of this annotation
# can be modified as long users know which profiles they have available
# in AppArmor.
Expand Down Expand Up @@ -1300,7 +1300,7 @@ spec:
metadata:
annotations:
# ensure pods roll when configmap updates
cilium.io/cilium-configmap-checksum: "015d0c430aff9b337ca0f42115b1f7fd0b9c1e871001aef285870a8f7482f6fa"
cilium.io/cilium-configmap-checksum: "33be80dd0e19503940a9cb85c0179b11c6e51ec201d6f03e786315ec8fd53532"
prometheus.io/port: "9963"
prometheus.io/scrape: "true"
labels:
Expand Down Expand Up @@ -1452,6 +1452,7 @@ spec:
- hubble-relay
args:
- serve
- --debug
ports:
- name: grpc
containerPort: 4245
Expand Down Expand Up @@ -1552,6 +1553,7 @@ spec:
# the values used in past runs by inspecting the completed pod.
args:
- "--cilium-namespace=kube-system"
- "--debug"
- "--ca-generate"
- "--ca-reuse-secret"
- "--hubble-server-cert-generate"
Expand Down Expand Up @@ -1602,6 +1604,7 @@ spec:
# the values used in past runs by inspecting the completed pod.
args:
- "--cilium-namespace=kube-system"
- "--debug"
- "--ca-generate"
- "--ca-reuse-secret"
- "--hubble-server-cert-generate"
Expand Down
2 changes: 2 additions & 0 deletions cilium/dctest/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ cni:
customConf: true
conntrackGCMaxInterval: 30m
datapathMode: "veth"
debug:
enabled: true
devices: "eth+ eno1+ eno2+"
enableIPv4Masquerade: false
enableIdentityMark: false
Expand Down
9 changes: 6 additions & 3 deletions cilium/pre/upstream.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ data:
labels: " k8s:app k8s:io\\.cilium\\.k8s\\.namespace\\.labels\\.team k8s:io\\.kubernetes\\.pod\\.namespace k8s:k8s-app io\\.cilium\\.k8s\\.policy cybozu\\.io/family app\\.cybozu\\.io neco\\.cybozu\\.io\\/registry identity\\.neco\\.cybozu\\.io "

# If you want to run cilium in debug mode change this value to true
debug: "false"
debug: "true"
debug-verbose: ""
# The agent can be put into the following three policy enforcement modes
# default, always and never.
Expand Down Expand Up @@ -828,7 +828,7 @@ spec:
prometheus.io/port: "9962"
prometheus.io/scrape: "true"
# ensure pods roll when configmap updates
cilium.io/cilium-configmap-checksum: "015d0c430aff9b337ca0f42115b1f7fd0b9c1e871001aef285870a8f7482f6fa"
cilium.io/cilium-configmap-checksum: "33be80dd0e19503940a9cb85c0179b11c6e51ec201d6f03e786315ec8fd53532"
# Set app AppArmor's profile to "unconfined". The value of this annotation
# can be modified as long users know which profiles they have available
# in AppArmor.
Expand Down Expand Up @@ -1302,7 +1302,7 @@ spec:
metadata:
annotations:
# ensure pods roll when configmap updates
cilium.io/cilium-configmap-checksum: "015d0c430aff9b337ca0f42115b1f7fd0b9c1e871001aef285870a8f7482f6fa"
cilium.io/cilium-configmap-checksum: "33be80dd0e19503940a9cb85c0179b11c6e51ec201d6f03e786315ec8fd53532"
prometheus.io/port: "9963"
prometheus.io/scrape: "true"
labels:
Expand Down Expand Up @@ -1454,6 +1454,7 @@ spec:
- hubble-relay
args:
- serve
- --debug
ports:
- name: grpc
containerPort: 4245
Expand Down Expand Up @@ -1554,6 +1555,7 @@ spec:
# the values used in past runs by inspecting the completed pod.
args:
- "--cilium-namespace=kube-system"
- "--debug"
- "--ca-generate"
- "--ca-reuse-secret"
- "--hubble-server-cert-generate"
Expand Down Expand Up @@ -1604,6 +1606,7 @@ spec:
# the values used in past runs by inspecting the completed pod.
args:
- "--cilium-namespace=kube-system"
- "--debug"
- "--ca-generate"
- "--ca-reuse-secret"
- "--hubble-server-cert-generate"
Expand Down
2 changes: 2 additions & 0 deletions cilium/pre/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ cni:
customConf: true
conntrackGCMaxInterval: 30m
datapathMode: "veth"
debug:
enabled: true
devices: "eth+ eno1+ eno2+"
enableIPv4Masquerade: false
enableIdentityMark: false
Expand Down
9 changes: 6 additions & 3 deletions etc/cilium-dctest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ data:
cnp-node-status-gc-interval: 0s
conntrack-gc-max-interval: 30m
custom-cni-conf: "true"
debug: "false"
debug: "true"
debug-verbose: ""
devices: eth+ eno1+ eno2+
direct-routing-device: e+
Expand Down Expand Up @@ -764,7 +764,7 @@ spec:
template:
metadata:
annotations:
cilium.io/cilium-configmap-checksum: 015d0c430aff9b337ca0f42115b1f7fd0b9c1e871001aef285870a8f7482f6fa
cilium.io/cilium-configmap-checksum: 33be80dd0e19503940a9cb85c0179b11c6e51ec201d6f03e786315ec8fd53532
prometheus.io/port: "9963"
prometheus.io/scrape: "true"
labels:
Expand Down Expand Up @@ -905,6 +905,7 @@ spec:
containers:
- args:
- serve
- --debug
command:
- hubble-relay
image: ghcr.io/cybozu/hubble-relay:1.14.14.1
Expand Down Expand Up @@ -1000,6 +1001,7 @@ spec:
containers:
- args:
- --cilium-namespace=kube-system
- --debug
- --ca-generate
- --ca-reuse-secret
- --hubble-server-cert-generate
Expand Down Expand Up @@ -1054,7 +1056,7 @@ spec:
template:
metadata:
annotations:
cilium.io/cilium-configmap-checksum: 015d0c430aff9b337ca0f42115b1f7fd0b9c1e871001aef285870a8f7482f6fa
cilium.io/cilium-configmap-checksum: 33be80dd0e19503940a9cb85c0179b11c6e51ec201d6f03e786315ec8fd53532
container.apparmor.security.beta.kubernetes.io/cilium-agent: unconfined
container.apparmor.security.beta.kubernetes.io/clean-cilium-state: unconfined
prometheus.io/port: "9962"
Expand Down Expand Up @@ -1479,6 +1481,7 @@ spec:
containers:
- args:
- --cilium-namespace=kube-system
- --debug
- --ca-generate
- --ca-reuse-secret
- --hubble-server-cert-generate
Expand Down
9 changes: 6 additions & 3 deletions etc/cilium-pre.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ data:
cnp-node-status-gc-interval: 0s
conntrack-gc-max-interval: 30m
custom-cni-conf: "true"
debug: "false"
debug: "true"
debug-verbose: ""
devices: eth+ eno1+ eno2+
direct-routing-device: e+
Expand Down Expand Up @@ -764,7 +764,7 @@ spec:
template:
metadata:
annotations:
cilium.io/cilium-configmap-checksum: 015d0c430aff9b337ca0f42115b1f7fd0b9c1e871001aef285870a8f7482f6fa
cilium.io/cilium-configmap-checksum: 33be80dd0e19503940a9cb85c0179b11c6e51ec201d6f03e786315ec8fd53532
prometheus.io/port: "9963"
prometheus.io/scrape: "true"
labels:
Expand Down Expand Up @@ -905,6 +905,7 @@ spec:
containers:
- args:
- serve
- --debug
command:
- hubble-relay
image: ghcr.io/cybozu/hubble-relay:1.14.14.1
Expand Down Expand Up @@ -1000,6 +1001,7 @@ spec:
containers:
- args:
- --cilium-namespace=kube-system
- --debug
- --ca-generate
- --ca-reuse-secret
- --hubble-server-cert-generate
Expand Down Expand Up @@ -1054,7 +1056,7 @@ spec:
template:
metadata:
annotations:
cilium.io/cilium-configmap-checksum: 015d0c430aff9b337ca0f42115b1f7fd0b9c1e871001aef285870a8f7482f6fa
cilium.io/cilium-configmap-checksum: 33be80dd0e19503940a9cb85c0179b11c6e51ec201d6f03e786315ec8fd53532
container.apparmor.security.beta.kubernetes.io/cilium-agent: unconfined
container.apparmor.security.beta.kubernetes.io/clean-cilium-state: unconfined
prometheus.io/port: "9962"
Expand Down Expand Up @@ -1481,6 +1483,7 @@ spec:
containers:
- args:
- --cilium-namespace=kube-system
- --debug
- --ca-generate
- --ca-reuse-secret
- --hubble-server-cert-generate
Expand Down

0 comments on commit b801c20

Please sign in to comment.