Skip to content

Claudie v0.9

Due to changes to the core of how Claudie works with terraform files and representation of the data in persistent storage the v0.9.x version will not be backwards compatible with clusters build using previous Claudie versions.

Most notable changes (TL;DR)

  • Support for pluggable external terraform files was added, breaking the dependency of updated terraform files on a new Claudie version. The ability to arbitrarily change the templates used by Claudie was made available to the user. As a result, Claudie has implemented a rolling update of the infrastructure in case a change in the terraform templates is detected, by gradually updating the build cluster one nodepool at a time.
  • Merged the Scheduler and Context-box service into a single called Manager.
  • Each Nodepool now has its own SSH keys instead of sharing a single SSH key per kubernetes cluster.

Experimental

  • We have added support for an HTTP proxy to be used when building Kubernetes clusters. This was mainly motivated by the issues we encountered while building multi-provider clusters, where some IP addresses assigned to some of the VMs were being misused and blacklisted/blocked in various registries. By using the HTTP proxy, it is possible to work around this and get the cluster built successfully.

Currently the HTTP proxy is experimental, it is made available by modifying the HTTP_PROXY_MODE in the Claudie config map in the claudie namespace. The possible values are (on|off|default). Default means that if a kubernetes cluster uses Hetzner nodepools, it will automatically switch to using the proxy, as we have encountered the most bad IP issues with Hetzner. By default the proxy is turned off.

It should be noted that the proxy is still in an experimental phase, where the API for interacting with the proxy may change in the future. Therefore, clusters using this feature in this release run the risk of being backwards incompatible with future 0.9.x releases, which will further stabilise the proxy API.

Deployment

To deploy Claudie v0.9.X, please:

  1. Download claudie.yaml from release page

  2. Verify the checksum with sha256 (optional)

We provide checksums in claudie_checksum.txt you can verify the downloaded yaml files againts the provided checksums.

  1. Install Claudie using kubectl

We strongly recommend changing the default credentials for MongoDB, MinIO and DynamoDB before you deploy it.

kubectl apply -f https://github.com/berops/claudie/releases/latest/download/claudie.yaml

To further harden Claudie, you may want to deploy our pre-defined network policies:

# for clusters using cilium as their CNI
kubectl apply -f https://github.com/berops/claudie/releases/latest/download/network-policy-cilium.yaml
# other
kubectl apply -f https://github.com/berops/claudie/releases/latest/download/network-policy.yaml

v0.9.0

What's changed

  • Support added for Ubuntu 24.04 in Azure and Hetzner #1401

  • Each nodepool now has its own SSH keys, a change from the previous state where all nodepools shared the same SSH keys.. #1442

  • Added support for pluggable external terraform files, breaking the dependency of updated terraform files on a new Claudie version. #1460

  • With the support of external terraform templates, the ability to arbitrarily change the templates used by Claudie was made available to the user. As a result, Claudie has implemented a rolling update of the infrastructure in case a change in the terraform templates is detected, by gradually updating the build cluster one nodepool at a time. #1525

  • The Scheduler and Context-Box microservices were merged into a single service called Manager. This was done because these two services were tightly coupled, and parts of the context box service were causing state correctness issues within Claudie and needed to be fixed. #1498

  • Latest supported kubernetes version is now v1.30.x #1498

  • Logs in all microservices have been changed to always log what is being executed, rather than only when the LOG_LEVEL is set to debug. #1507

  • Longhron version was bumped from 1.6.0 to 1.7.0 #1511

  • When building a Kubernetes cluster without a load balancer for the API server, the generated kubeconfig will now work for all control plane nodes defined in the input manifest, instead of just one. #1546

Experimental

  • Support for a HTTP proxy was added. The HTTP Proxy can be turned on by setting the HTTP_PROXY_MODE environment variable in the Claudie config map to on #1440

Bug fixes

  • In the case when the infrastructure fails to be build or is only partially build the deletion process was stuck on acquiring a lock which was never created, this issue is no longer present #1463
  • The init process was added to the Ansible microservice because previously spawned Ansible playbooks left behind zombie processes that consumed resources. The init process takes care of cleaning up these processes. #1527
  • Fixed an edge case where part of the load balancer infrastructure was incorrectly destroyed when a failure occurred in the middle of the workflow. #1533
  • The whitespace when generating keys will no longer be trimmed #1539
  • GenesisCloud autoscaling will now correctly work #1543

v0.9.1

What's Changed

  • Allow to overwrite the following default labels for static nodepools, which enables more customization for the static nodepools #1550
        claudie.io/provider=static-provider 
        claudie.io/provider-instance=static-provider
        topology.kubernetes.io/region=static-region
        topology.kubernetes.io/zone=static-zone
    
  • In the previous release proxy was introduced as an experimental feature. This release further stabilizes the proxy interface by introducing the following options to be set within the InputManifest #1540
        kubernetes:
        clusters:
          - name: proxy-example
            version: "1.30.0"
            network: 192.168.2.0/24
            installationProxy:
                mode: "(on|off|default)"
    
  • On - proxy will be used across all nodes in the cluster at all times.
  • Off - proxy will be turned of across the cluster.
  • Default - proxy will be turned on across the cluster for all nodes if the cluster contains at least one hetzner node.

    NOTE: if your cluster was build with the proxy turned on during the experimental phase, this change may or may not work, create backups before updating to the new version.

  • When triggering a change of the the API endpoint of a cluster, an endless retry was added to the task executing the change as in the case of an error the cluster would endup malformed. This change will require user intervention to fix the underlying issue, if any occurs #1577

  • Basic reconciliation was added for autoscaled events in case of an error during the execution #1582

    • If error occurs during the addition of the node, claudie will rollback by deleting the added node and any associated infrastructure
    • If errors occurs during the deletion of the node, claudie will retry the deletion multiple times

    For both of the cases it will retry the rollback or deletion of the node multiple times with an exponential backoff with up to an hour.

Bug fixes

  • Up until now, if there was any invalid input in the InputManifest or the infrastructure was able to be only partially created, the InputManifest would end up with an error where only manual deletion would help to remove the partially constructed infrastructure, This was fixed, so that if anything fails during the addition of new infrastructure into the cluster, claudie will rollback to the last working point, by removing the partially created infrastructure #1566

  • Longhorn related issues, especially during node deletion resulted in many InputManifest issues, In this release we fixed the issues by switching to a different drain policy for longhorn replicas deployed across the nodes on the cluster, namely block-for-eviction-if-last-replica#1596 which results in:

    • Protecting data by preventing the drain operation from completing until there is a healthy replica available for each volume available on another node.
    • Automatically evicts replicas, so the user does not need to do it manually.

v0.9.2

What's Changed

  • Node local dns will be deployed on all newly build clusters #1603. For existing clusters that were build using older Claudie version, this change will deploy the node-local-dns into the cluster but it will not automatically work. Manual work needs to done, by first editing the kubelet-config ConfigMap in the kube-system namespace of the cluster to change the DNS address to the address of the node-local-dns and then on each node the following changes need to be done: applying-kubelet-configuration-changes.

Bug fixes

  • Improved validation errors when zero nodes are defined in a nodepool #1605
  • Claudie will now correctly recognize a change in the kubernetes version to perform an update #1607
  • Kubernetes secrets with provider credentials that contain leading or trailing whitespace will now be trimmed, avoiding issues with generated terraform templates #1606
  • Changing the API endpoint will now correctly work, after the recent kubeone version update #1619