Cannot apply deployment with error "Failed to load resource definition: [Errno 13] Permission denied: '/root/ansible/Ansible/k8s_deployments/nginx.yaml'" #771
Labels
needs_info
Needs additional information from original reporter
Hello guys,
Hope you are doing great.
This is my first post here, so I hope I am doing things correctly. I checked previous issues and I did not find this one.
SUMMARY
The first task works normally. The second task gets stuck with this weird error:
It is weird because I am running as root so I shouldn't face any permission issues.
The ansible target user is kube and it has all the requirements installed:
I tried to work with community.kubernetes.k8s and same error
Also, I tried to play around with the names of the nginx deployment and it is the same issue.
This is my repo if you want to check and take a look at the history:
https://github.com/ibrahim-osama-amin/Ansible
ISSUE TYPE
COMPONENT NAME
community.kubernetes.k8s and kubernetes.core.k8s
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
Ansible host:
Ansible target:
STEPS TO REPRODUCE
Create two Redhat VMs, install requirements on the source and the destination.
Run kubectl on the destination with user kube
EXPECTED RESULTS
I should see a pod created and a service created on the target.
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: