brief-mouse-13981
04/03/2023, 7:49 AMaudit-policy-file: /etc/rancher/rke2/audit.yaml
kube-apiserver-arg:
- audit-log-path=/var/lib/rancher/rke2/server/logs/audit.log
- audit-log-format=json
- audit-log-maxage=5
- audit-log-maxbackup=5
- audit-log-maxsize=100
kube-apiserver-extra-mount: /var/lib/rancher/rke2/server/logs:/var/lib/rancher/rke2/server/logs
quaint-alarm-7893
04/03/2023, 9:19 PMglamorous-lighter-5580
04/04/2023, 8:59 AMcolossal-jordan-27033
04/04/2023, 9:07 AMnarrow-noon-75604
04/04/2023, 10:32 AM[kubenode@master ~]$ curl -kv <http://ne-mgr-ui.xx.xx.xx.xx.nip.io>
* Rebuilt URL to: <http://ne-mgr-ui.xx.xx.xx.xx.nip.io/>
* Trying xx.xx.xx.xx...
* TCP_NODELAY set
* Connected to <http://ne-mgr-ui.xx.xx.xx.xx.nip.io|ne-mgr-ui.xx.xx.xx.xx.nip.io> (xx.xx.xx.xx) port 80 (#0)
> GET / HTTP/1.1
> Host: <http://ne-mgr-ui.xx.xx.xx.xx.nip.io|ne-mgr-ui.xx.xx.xx.xx.nip.io>
> User-Agent: curl/7.61.1
> Accept: */*
>
< HTTP/1.1 200 OK
< Date: Tue, 04 Apr 2023 10:01:59 GMT
TLS Ingress:
[kubenode@master ~]$ curl -kv <https://ne-mgr-ui.app.com>
* Connection state changed (MAX_CONCURRENT_STREAMS == 128)!
* http2 error: Invalid HTTP header field was received: frame type: 1, stream: 1, name: [ proxy-revalidate, max-age=0], value: []
* HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR (err 1)
* stopped the pause stream!
* Connection #0 to host <http://ne-mgr-ui.app.com|ne-mgr-ui.app.com> left intact
curl: (92) HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR (err 1)
Am not sure how to make the TLS ingress use HTTP/1.1 protocol instead of HTTP2 protocol error.
I have tried adding the annotation nginx.ingress.kubernetes.io/use-http2: "false" on the TLS ingress but the ingress still uses HTTP/2 protocol only.
I want to disable HTTP/2 protocol on RKE2. Any suggestions would be appreciated.quiet-umbrella-37745
04/04/2023, 10:54 AMcurl --insecure -fL https://<IP>/system-agent-install.sh | sudo sh -s - --server https://<IP>--label '<http://cattle.io/os=linux|cattle.io/os=linux>' --token <token>--ca-checksum <checksum>--etcd --controlplane --node-name <nodeName>
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 29790 0 29790 0 0 334k 0 --:--:-- --:--:-- --:--:-- 338k
[INFO] Label: <http://cattle.io/os=linux|cattle.io/os=linux>
[INFO] Role requested: etcd
[INFO] Role requested: controlplane
[INFO] Using default agent configuration directory /etc/rancher/agent
[INFO] Using default agent var directory /var/lib/rancher/agent
[INFO] Determined CA is necessary to connect to Rancher
[INFO] Successfully downloaded CA certificate
[INFO] Value from https://<IP>/cacerts is an x509 certificate
[INFO] Successfully tested Rancher connection
[INFO] Downloading rancher-system-agent binary from https://<IP>/assets/rancher-system-agent-amd64
[INFO] Successfully downloaded the rancher-system-agent binary.
[INFO] Downloading rancher-system-agent-uninstall.sh script from https://<IP>/assets/system-agent-uninstall.sh
[INFO] Successfully downloaded the rancher-system-agent-uninstall.sh script.
[INFO] Generating Cattle ID
[INFO] Cattle ID was already detected as <ID>. Not generating a new one.
[ERROR] 500 received while downloading Rancher connection information. Sleeping for 5 seconds and trying again
witty-zebra-93264
04/04/2023, 1:19 PM404 Not Found
Code: NoSuchKey
Message: The specified key does not exist.
Key: rke2/latest/1.21/repodata/repomd.xml
RequestId: 6CQ27E9HR2YG8B8R
HostId: oa7Wg0AvPXJa6ktBRn6V4WNHriS4KhzbKjI2Y4H5toFuISnzAqQRtSAEQBjBMiZBiG7h6+dKszE=
echoing-tomato-53055
04/04/2023, 5:01 PMblue-furniture-46044
04/04/2023, 7:07 PMnarrow-noon-75604
04/05/2023, 12:51 PMdata:
allow-snippet-annotations: "false"
use-http2: "false"
I want to make the changes before the RKE2 deployment in the configuration files and then start the deployment process.
But I am not sure where to make these changes in the Air Gapped installation proces.
Any suggestions would be appreciated.cuddly-hairdresser-95880
04/05/2023, 3:13 PMsalmon-hair-21488
04/05/2023, 5:06 PMapiVersion: <http://kubelet.config.k8s.io/v1beta1|kubelet.config.k8s.io/v1beta1>
kind: KubeletConfiguration
maxPods: 250
with in /etc/rancher/rke2/config.yaml but it causes node to be in NotReady state 😞
kubelet-arg:
- config: /etc/rancher/rke2/kubelet-config.yaml
wooden-cartoon-97943
04/06/2023, 2:19 PMhandsome-monitor-68857
04/09/2023, 8:41 AMEvents:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal AddedInterface 35m multus Add eth0 [10.42.0.197/32] from k8s-pod-network
Normal Scheduled 35m default-scheduler Successfully assigned netbox/busybox to longvan-node1
Warning Failed 35m kubelet Failed to pull image "busybox": rpc error: code = Unknown desc = failed to pull and unpack image "<http://docker.io/library/busybox:latest|docker.io/library/busybox:latest>": failed to resolve reference "<http://docker.io/library/busybox:latest|docker.io/library/busybox:latest>": failed to do request: Head "<https://registry-1.docker.io/v2/library/busybox/manifests/latest>": dial tcp: lookup <http://registry-1.docker.io|registry-1.docker.io> on 127.0.0.53:53: read udp 127.0.0.1:47828->127.0.0.53:53: i/o timeout
Warning Failed 35m kubelet Failed to pull image "busybox": rpc error: code = Unknown desc = failed to pull and unpack image "<http://docker.io/library/busybox:latest|docker.io/library/busybox:latest>": failed to resolve reference "<http://docker.io/library/busybox:latest|docker.io/library/busybox:latest>": failed to do request: Head "<https://registry-1.docker.io/v2/library/busybox/manifests/latest>": dial tcp: lookup <http://registry-1.docker.io|registry-1.docker.io> on 127.0.0.53:53: read udp 127.0.0.1:40619->127.0.0.53:53: i/o timeout
Warning Failed 34m kubelet Failed to pull image "busybox": rpc error: code = Unknown desc = failed to pull and unpack image "<http://docker.io/library/busybox:latest|docker.io/library/busybox:latest>": failed to resolve reference "<http://docker.io/library/busybox:latest|docker.io/library/busybox:latest>": failed to do request: Head "<https://registry-1.docker.io/v2/library/busybox/manifests/latest>": dial tcp: lookup <http://registry-1.docker.io|registry-1.docker.io> on 127.0.0.53:53: read udp 127.0.0.1:60114->127.0.0.53:53: i/o timeout
Normal Pulling 33m (x4 over 35m) kubelet Pulling image "busybox"
Warning Failed 33m (x4 over 35m) kubelet Error: ErrImagePull
Warning Failed 33m kubelet Failed to pull image "busybox": rpc error: code = Unknown desc = failed to pull and unpack image "<http://docker.io/library/busybox:latest|docker.io/library/busybox:latest>": failed to resolve reference "<http://docker.io/library/busybox:latest|docker.io/library/busybox:latest>": failed to do request: Head "<https://registry-1.docker.io/v2/library/busybox/manifests/latest>": dial tcp: lookup <http://registry-1.docker.io|registry-1.docker.io> on 127.0.0.53:53: read udp 127.0.0.1:34097->127.0.0.53:53: i/o timeout
Warning Failed 33m (x6 over 35m) kubelet Error: ImagePullBackOff
Normal BackOff 34s (x145 over 35m) kubelet Back-off pulling image "busybox"
handsome-monitor-68857
04/09/2023, 8:42 AMhandsome-monitor-68857
04/09/2023, 9:23 AMEvents:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 22s default-scheduler Successfully assigned netbox/busybox to longvan-node3
Normal AddedInterface 21s multus Add eth0 [10.42.2.249/32] from k8s-pod-network
Normal Pulling 21s kubelet Pulling image "busybox"
Normal Pulled 15s kubelet Successfully pulled image "busybox" in 6.183796754s
Normal Created 15s kubelet Created container busybox
Warning Failed 14s kubelet Error: failed to create containerd task: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "–": executable file not found in $PATH: unknown
billions-easter-91774
04/10/2023, 1:12 PMkubelet-args:
max-pods: 220
shouldn't that be enough in /etc/ranger/rke2/config.yaml and restarting the node / kubelet?billions-easter-91774
04/10/2023, 1:15 PMbillions-easter-91774
04/10/2023, 1:22 PMkubelet-arg:
- "max-pods=220"
But this seems to become deprecated. will there be support for
KubeletConfiguration
?prehistoric-furniture-82015
04/11/2023, 5:23 PMprehistoric-furniture-82015
04/12/2023, 2:34 PMkube-apiserver-arg
?ambitious-telephone-71317
04/12/2023, 4:10 PMaes-cbc
secret encryption provider is enabled by default. What exactly are the steps to use a different provider say kms
instead on an existing node? If there is documentation for this can someone point me to it?
For context I understand that the EncryptionConfiguration needs to change. But what else is involved there? Should I remove the existing aes-cbc
section from the existing config? If yes, would key rotation still work (since i assume i need to re-encrypt using the new provider)?broad-farmer-70498
04/15/2023, 1:56 AMkubectl -n cattle-system logs -f system-upgrade-controller-976bd7bb4-jv2w7
W0415 01:53:38.040731 1 client_config.go:543] Neither --kubeconfig nor --master was specified. Using the inClusterConfig. This might not work.
time="2023-04-15T01:53:38Z" level=fatal msg="Error starting: namespaces \"kube-system\" is forbidden: User \"system:serviceaccount:cattle-system:system-upgrade\" cannot get resource \"namespaces\" in API group \"\" in the namespace \"kube-system\""
broad-farmer-70498
04/15/2023, 1:57 AMcreamy-autumn-87994
04/17/2023, 7:23 PMpowerful-elephant-25838
04/18/2023, 1:19 PMjolly-yacht-2011
04/18/2023, 2:55 PMboundless-eye-27124
04/18/2023, 5:16 PM"Unable to authenticate the request" err="[invalid bearer token, Token has been invalidated]"
quaint-alarm-7893
04/19/2023, 4:17 AMquaint-alarm-7893
04/19/2023, 4:17 AM