Comments (5)
@jr-dimedis Are you using MicroOS nodes outside of this project? If so, yes they do behave differently. However we configure the nodes to work with the kured reboot method.
I will have a look again at your issue, but it would surprise me if there's really a problem there. Please do make sure to upgrade the project to the latest version of kube-hetzner.
from terraform-hcloud-kube-hetzner.
If you cat /etc/transactional-update.conf
it should see REBOOT_METHOD=kured
, this is what ensures that the file created is reboot-required and not reboot-needed.
from terraform-hcloud-kube-hetzner.
Thanks for your reply.
I created all nodes using kube-hetzner. The original nodes were created with an image from May 22, 2023, later some were created with an image from November 23, 2023. I started with kube-hetzner v2.1.6, then upgraded to v2.7.2 and later to v2.11.7.
Yes, the /etc/transactional-update.conf
file contains REBOOT_METHOD=kured
, but it looks that this config isn't used when you just execute transactional-update
in the shell. The service file adds this config file using environment variables, that's why it should be triggered via the systemd service. I checked this with and without using systemctl and I was able to clearly reproduce the behavior in this way.
# That's the systemd service of a node updated Feb 03
$ cat /usr/lib/systemd/system/transactional-update.service
[Unit]
Description=Update the system
Documentation=man:transactional-update(8)
ConditionACPower=true
Wants=network.target
After=network.target
[Service]
Type=oneshot
Environment=UPDATE_METHOD=dup
EnvironmentFile=-/usr/etc/transactional-update.conf
EnvironmentFile=-/etc/transactional-update.conf
ExecStart=/usr/sbin/transactional-update cleanup ${UPDATE_METHOD} reboot
IOSchedulingClass=best-effort
IOSchedulingPriority=7
What about the reboot-sentinel
option?
The Pod mounts the hosts /var/run
folder to /sentinel
and for me it only works, when I change the path in the configuration (here an excerpt from a running Pod yaml):
apiVersion: v1
kind: Pod
metadata:
name: kured-94hjw
namespace: kube-system
...
...
spec:
containers:
...
volumeMounts:
- mountPath: /sentinel
name: sentinel
readOnly: true
...
volumes:
- hostPath:
path: /var/run
type: Directory
name: sentinel
...
And yes, I'll try the latest version, even though I haven't seen any changes in that area - but of course I could be wrong ;)
from terraform-hcloud-kube-hetzner.
I just upgraded kube-hetzner on a test cluster to latest v2.11.8. No changes on the cluster, in particular no Kured redeployment or something like that. So this version bump makes no difference.
from terraform-hcloud-kube-hetzner.
@jr-dimedis I will investigate this more, thanks for the info. Keep you posted.
from terraform-hcloud-kube-hetzner.
Related Issues (20)
- [Bug]: /etc/cloud/rename_interface.sh: No such file or directory HOT 7
- [Bug]: helm releases keep installing after disabling them in kube.tf HOT 3
- [Bug]: Terraform does not deploy well HOT 2
- Allow patching default Helm values HOT 1
- Unknown connection HOT 1
- [Bug]: Scaling to 0 Second CP Nodepool HOT 1
- [Feature Request]: Make kubeconfig_server_address configurable HOT 1
- [Bug]: Traefik fails after automatic self-restart because of missing CRD HOT 4
- [Bug]: the default `traefik_redirect_to_https=true` does not seem to work any longer after traefik updated to 3.0.x HOT 3
- [Bug]: HOT 1
- [Feature Request]: add support of missing s3 options (--etcd-s3-folder) HOT 1
- [Bug]: swap_size is not working as expected
- [Bug]: ETCD S3 BackUp doesn't work due to URI issues HOT 1
- [Bug]: terraform apply fails to wait for MicroOS to become available HOT 1
- [Bug]: loadbalancer is not deployed when using autoscaling group with minimum 0 HOT 1
- [Bug]: cert-manager CRDs not available when using k3s-channel 1.30 HOT 2
- [Feature Request]: Configure all HelmChart deployments with version HOT 1
- [Feature Request]: Enable configuration of "bootstrap" argument for HelmCharts
- [Feature Request]: Use helmchart deployment for hetzner csi-driver
- [Bug]: using most recent autoscaler 1.30.2 fails HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-hcloud-kube-hetzner.