You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When applying this yaml file using kubectl, I get the following error
The Pod "ubuntu-test" is invalid:
* spec.containers[0].volumeMounts[1].name: Not found: "k8tz"
* spec.containers[0].volumeMounts[2].name: Not found: "k8tz"
* spec.initContainers[0].volumeMounts[0].name: Not found: "k8tz"
Log of k8tz pod
INFO: 2024/04/23 09:59:04 admission.go:221: explicit timezone requested on pod's (namespace=test-namespace, name=ubuntu-test) annotation: Asia/Amman
INFO: 2024/04/23 09:59:04 admission.go:230: explicit injection strategy requested on pod's (namespace=test-namespace, name=ubuntu-test) annotation: initContainer
INFO: 2024/04/23 09:59:04 admission.go:313: 9 patches generated for pod (namespace=test-namespace, name=ubuntu-test), timezone=Asia/Amman, strategy=initContainer
Kindly any suggestions ?
I tested the cli on the same pod yaml file and tried to apply it on the cluster, it worked fine, but I am not sure if the admission controller is injecting the mutation correctly.
The text was updated successfully, but these errors were encountered:
Deployment Steps
Creating Pod
Kindly any suggestions ?
I tested the cli on the same pod yaml file and tried to apply it on the cluster, it worked fine, but I am not sure if the admission controller is injecting the mutation correctly.
The text was updated successfully, but these errors were encountered: