diff --git a/README.md b/README.md index 5212bf6..6c26204 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ An example implementation of AWX on single node K3s using AWX Operator, with eas - [Use Ansible Runner](#use-ansible-runner) - [Additional Configuration for AWX](#additional-configuration-for-awx) - [Configure AWX to use Git Repository with Self-Signed Certificate](#configure-awx-to-use-git-repository-with-self-signed-certificate) - - [Expose your /etc/hosts to K3s](#expose-your-etchosts-to-k3s) + - [Expose your /etc/hosts to Pods on K3s](#expose-your-etchosts-to-pods-on-k3s) ## Environment @@ -365,7 +365,7 @@ See [📝`runner/README.md`](runner) for instructions. - Press `Edit` and scroll down to `Extra Environment Variables`, then add `"GIT_SSL_NO_VERIFY": "True"` in `{}` - Press `Save` -### Expose your /etc/hosts to K3s +### Expose your /etc/hosts to Pods on K3s If we don't have a DNS server and are using `/etc/hosts`, we will need to do some additional tasks to get the Pods on K3s to resolve names according to `/etc/hosts`. @@ -376,9 +376,11 @@ One easy way to do this is to use `dnsmasq`. 1. Add entries to `/etc/hosts` on your K3s host. Note that the IP addresses have to be replaced with your K3s host's one. ```bash - sudo echo "192.168.0.100 awx.example.com" >> /etc/hosts - sudo echo "192.168.0.100 registry.example.com" >> /etc/hosts - sudo echo "192.168.0.100 git.example.com" >> /etc/hosts + sudo tee -a /etc/hosts <