-
Hello. I have a service as a .kube file and nginx as a .container file, both in the same network:
But I cannot access containers by name from the nginx pod, as only the infra container is added to the network.
How can I access pods' containers within the same network without adding nginx to the pod? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
While experimenting, I found that addressing pods by name works fine. I'm encountering issues with automatic network creation; despite the network file being created and specified in the Network option, I get an error stating the network doesn't exist. However, |
Beta Was this translation helpful? Give feedback.
-
Not sure I understand your last comment. Does the network not get created at all (i.e. |
Beta Was this translation helpful? Give feedback.
-
@ygalblum The network is not created from the .network file by any means:
Run .kube
To manually start the network service:
Similarly on startup of the .container |
Beta Was this translation helpful? Give feedback.
-
As can be seen by the status of
So, your call Instead you need to restart it: |
Beta Was this translation helpful? Give feedback.
As can be seen by the status of
bewcloud-network.service
, it is been running for 10 days alreadySo, your call
systemctl --u start bewcloud-network
didn't do anything.Instead you need to restart it:
systemctl --u restart bewcloud-network