Skip to content

Instantly share code, notes, and snippets.

@hbasria
Created April 10, 2020 21:19
Show Gist options
  • Select an option

  • Save hbasria/d962f6f3c2470894bad931f9e57b1b04 to your computer and use it in GitHub Desktop.

Select an option

Save hbasria/d962f6f3c2470894bad931f9e57b1b04 to your computer and use it in GitHub Desktop.
Cattle-Cluster-Agent: (Could not resolve host: rancher.<server-name>.com)
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