.
This commit is contained in:
parent
03cb1839d9
commit
f8913781ac
11
doc/notes.md
11
doc/notes.md
@ -16,6 +16,17 @@ mount -o remount,rw $(blkid -L COS_STATE) /run/initramfs/cos-state
|
|||||||
vim /run/initramfs/cos-state/grub2/grub.cfg
|
vim /run/initramfs/cos-state/grub2/grub.cfg
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Rancher server is logging error syncing nodename
|
||||||
|
The rancher server is logging the following for every node, repeatedly
|
||||||
|
```
|
||||||
|
2021/11/10 08:40:57 [ERROR] error syncing 'node2': handler machine-worker-label: machines.cluster.x-k8s.io "custom-9cebcaf1ae85" not found, requeuing
|
||||||
|
```
|
||||||
|
|
||||||
|
tag all nodes in the harvester cluster as worker nodes
|
||||||
|
```
|
||||||
|
kubectl label node node1 node-role.kubernetes.io/worker=true
|
||||||
|
```
|
||||||
|
|
||||||
# podman
|
# podman
|
||||||
Proplem:
|
Proplem:
|
||||||
```
|
```
|
||||||
|
@ -2,3 +2,4 @@ packages:
|
|||||||
- vim
|
- vim
|
||||||
- jq
|
- jq
|
||||||
- htop
|
- htop
|
||||||
|
- terminator
|
||||||
|
@ -52,6 +52,8 @@ Configure firewalld for internal network:
|
|||||||
- dns
|
- dns
|
||||||
- ntp
|
- ntp
|
||||||
- registry
|
- registry
|
||||||
|
- nfs
|
||||||
|
- nfs3
|
||||||
|
|
||||||
Configure firewalld for public networks:
|
Configure firewalld for public networks:
|
||||||
firewalld.present:
|
firewalld.present:
|
||||||
|
@ -9,9 +9,10 @@ server {
|
|||||||
ssl_certificate /etc/rancher/ssl/rancher-server.crt;
|
ssl_certificate /etc/rancher/ssl/rancher-server.crt;
|
||||||
ssl_certificate_key /etc/rancher/ssl/rancher-server.key;
|
ssl_certificate_key /etc/rancher/ssl/rancher-server.key;
|
||||||
location /{
|
location /{
|
||||||
proxy_pass https://localhost:9443;
|
proxy_pass https://172.18.0.1:9080;
|
||||||
proxy_ssl_trusted_certificate /etc/rancher/ssl/rancher-server.crt;
|
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
|
proxy_read_timeout 3600;
|
||||||
|
proxy_set_header X-API-request-url $scheme://$host:$server_port$request_uri;
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
proxy_set_header Connection $connection_upgrade;
|
proxy_set_header Connection $connection_upgrade;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
@ -19,7 +20,10 @@ server {
|
|||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
proxy_set_header X-Forwarded-Port $server_port;
|
proxy_set_header X-Forwarded-Port $server_port;
|
||||||
|
proxy_set_header X-Forwarded-Host $host:$server_port;
|
||||||
|
proxy_set_header Referer $host:$server_port;
|
||||||
|
proxy_buffering off;
|
||||||
|
proxy_redirect off;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user