Comments (2)
@MichalGuzieniuk could you capture the network-resources-injector log when above issue happens?
from network-resources-injector.
Logs after cluster initialization
I0409 12:10:02.188300 1 main.go:69] starting mutating admission controller for network resources injection
I0409 12:10:02.189260 1 tlsutils.go:120] added client CA to cert pool from path '/var/run/secrets/kubernetes.io/serviceaccount/ca.crt'
I0409 12:10:02.189303 1 tlsutils.go:122] added '1' client CA(s) to cert pool
Additional log after ConfigMap consumption
I0409 12:12:32.252907 1 webhook.go:918] Initializing user-defined injections with key: customInjection, value: {"op": "add", "path": "/metadata/annotations", "value": {"top-secret": "password"}}
Logs after POD creation
I0409 12:14:04.363035 1 webhook.go:679] Received mutation request
I0409 12:14:04.367038 1 webhook.go:652] search v1.multus-cni.io/default-network in original pod annotations
I0409 12:14:04.367054 1 webhook.go:659] search v1.multus-cni.io/default-network in user-defined injections
I0409 12:14:04.367061 1 webhook.go:673] v1.multus-cni.io/default-network is not found in either pod annotations or user-defined injections
I0409 12:14:04.367072 1 webhook.go:652] search k8s.v1.cni.cncf.io/networks in original pod annotations
I0409 12:14:04.367079 1 webhook.go:655] k8s.v1.cni.cncf.io/networks is defined in original pod annotations
I0409 12:14:04.367098 1 webhook.go:256] 'foo-network' is not in JSON format: invalid character 'o' in literal false (expecting 'a')... trying to parse as comma separated network selections list
I0409 12:14:04.375919 1 webhook.go:354] network attachment definition 'default/foo-network' found
I0409 12:14:04.375948 1 webhook.go:361] resource 'example.com/foo' needs to be requested for network 'default/foo-network'
I0409 12:14:04.375962 1 webhook.go:765] honor-resources=false
I0409 12:14:04.375995 1 webhook.go:775] injectHugepageDownApi=true
I0409 12:14:04.376016 1 webhook.go:833] patch after all mutations: [{add /spec/containers/0/resources/requests map[]} {add /spec/containers/0/resources/limits map[]} {add /spec/containers/0/resources/requests/example.com~1foo {{1 0} {<nil>} DecimalSI}} {add /spec/containers/0/resources/limits/example.com~1foo {{1 0} {<nil>} DecimalSI}} {add /spec/containers/0/volumeMounts/- {podnetinfo false /etc/podnetinfo <nil> }} {add /spec/volumes/- {podnetinfo {nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil &DownwardAPIVolumeSource{Items:[]DownwardAPIVolumeFile{DownwardAPIVolumeFile{Path:labels,FieldRef:&ObjectFieldSelector{APIVersion:,FieldPath:metadata.labels,},ResourceFieldRef:nil,Mode:nil,},DownwardAPIVolumeFile{Path:annotations,FieldRef:&ObjectFieldSelector{APIVersion:,FieldPath:metadata.annotations,},ResourceFieldRef:nil,Mode:nil,},},DefaultMode:nil,} nil nil nil nil nil nil nil nil nil nil nil nil}}} {add /metadata/annotations map[top-secret:password]}]
I0409 12:14:04.376500 1 webhook.go:396] sending response to the Kubernetes API server
from network-resources-injector.
Related Issues (20)
- resource not injected in a large K8s cluster HOT 7
- Certificates v1beta1 will no longer be support on k8s release 1.22 HOT 4
- Add stable tag for network resource injector container
- Release network-resources-injector v1.3 HOT 5
- Create a Deployment yaml for network-resource-injector
- Add Helm Chart
- NRI pod restart not handled HOT 3
- Health check for webhook server
- Release of Network resources injector HOT 3
- Too wide permissions given to service accounts
- CI lane is not able to finish the kind deployment HOT 2
- Help understanding webhook client certificates
- 'User Defined Injections' feature is missing access rights to configmap HOT 2
- 'User defined injections' feature does not react on ConfigMap remove HOT 1
- create new release HOT 4
- User Defined Injections - does not take into account json path operation HOT 2
- User Defined Injections - injects only one property
- Can Network-Resources-Injector(NRI) to be deployed as a deployment HOT 2
- Resources limit and requests are added only to first container inside POD HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from network-resources-injector.