davem-git

Results 30 comments of davem-git

Oops I removed the bottom part of the selection. I just didn't copy and paste it properly. I corrected the above sample

I'm causing the nodes to scale out and in. I've even deleted the user node pool and added a brand new one back. I haven't tried rebooting. Ideally this will...

Thank you! If there's anyway i can help debug this, any flags i can enable for more verbose logging please let me know.

Great! sounds like a good plan. Thanks again!

I'll give it a try. Thanks!

still nothing. I uploaded my yaml as a .MD since its not supported as yaml format. incase I have something just wrong, but I don't think i do as there...

no luck. That was the order of operations I was using. I didn't have any luck with the nginx rule test either. I noticed the modrule doesn't include a namespace....

after doing that, the modrule kicked off for the nginx test! I'll go back any try the node rules again. ```sh {"level":"info","ts":"2022-10-17 15:04:04.010Z","logger":"modrule-webhook","msg":"Applying ModRule patch","request uid":"9e7e0c3b-90bd-468b-b474-0683620f05d7","namespace":"default","resource":"deployments/nginx","operation":"CREATE","patch":[{"op":"replace","path":"/metadata/annotations/kubectl.kubernetes.io~1last-applied-configuration","value":"{\"apiVersion\":\"apps/v1\",\"kind\":\"Deployment\",\"metadata\":{\"annotations\":{},\"labels\":{\"app\":\"nginx\",\"color\":\"whatever\"},\"name\":\"nginx\",\"namespace\":\"default\"},\"spec\":{\"replicas\":1,\"selector\":{\"matchLabels\":{\"app\":\"nginx\"}},\"template\":{\"metadata\":{\"labels\":{\"app\":\"nginx\"}},\"spec\":{\"containers\":[{\"image\":\"bitnami/nginx:1.14.2\",\"name\":\"nginx\",\"ports\":[{\"containerPort\":8080,\"protocol\":\"TCP\"}],\"resources\":{\"limits\":{\"cpu\":\"500m\",\"memory\":\"1Gi\"}}},{\"command\":[\"sh\",\"-c\",\"while true; do sleep 5;...

no luck. It doesn't seem to be seeing any node rules. At least the add label hasn't triggered it to run

I'm not sure what I did, but it seems to be working? ```sh color","value":"whatever"},{"op":"add","path":"/spec/template/spec/containers/1","value":{"command":["sh","-c","while true; do sleep 5; done;"],"image":"alpine:3","name":"injected"}},{"op":"replace","path":"/spec/template/spec/containers/0/image","value":"bitnami/nginx:1.14.2"},{"op":"replace","path":"/spec/template/spec/containers/0/ports/0/containerPort","value":8080}]} {"level":"info","ts":"2022-10-17 15:31:13.070Z","logger":"modrule-webhook","msg":"Applying ModRule patch","request uid":"8deefcc6-6235-40dc-9720-e7313e0fe876","namespace":"","resource":"nodes/aks-pool0-38869568-vmss000000","operation":"UPDATE","patch":[{"op":"add","path":"/spec/taints","value":[{"effect":"NoSchedule","key":"node.cilium.io/agent-not-ready","value":"true"}]}]} {"level":"info","ts":"2022-10-17 15:31:13.108Z","logger":"modrule-webhook","msg":"Applying ModRule patch","request uid":"3c0bbb55-be4e-4152-993d-efb72d865d56","namespace":"","resource":"nodes/aks-pool1az0-57119049-vmss000003","operation":"UPDATE","patch":[{"op":"add","path":"/spec/taints","value":[{"effect":"NoSchedule","key":"node.cilium.io/agent-not-ready","value":"true"}]}]} {"level":"info","ts":"2022-10-17...