Created
April 10, 2020 21:19
-
-
Save hbasria/d962f6f3c2470894bad931f9e57b1b04 to your computer and use it in GitHub Desktop.
Cattle-Cluster-Agent: (Could not resolve host: rancher.<server-name>.com)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| kubectl -n cattle-system patch deployments cattle-cluster-agent --patch '{ | |
| "spec": { | |
| "template": { | |
| "spec": { | |
| "hostAliases": [ | |
| { | |
| "hostnames": | |
| [ | |
| "{{ rancher_server_hostname }}" | |
| ], | |
| "ip": "{{ rancher_server_ip }}" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| }' | |
| kubectl -n cattle-system patch daemonsets cattle-node-agent --patch '{ | |
| "spec": { | |
| "template": { | |
| "spec": { | |
| "hostAliases": [ | |
| { | |
| "hostnames": | |
| [ | |
| "{{ rancher_server_hostname }}" | |
| ], | |
| "ip": "{{ rancher_server_ip }}" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment