• K3s: Upgrade your Traefik ingress controller to version 2

    2 min read

    traefik k3s upgrade

    If you have K3s' system-upgrade-controller installed you might have noticed how charts appear under /var/lib/rancher/k3s/server/static/charts but your traefik Ingress controller is not being updated:

    # pwd
    /var/lib/rancher/k3s/server/static/charts
    # ls -lrt
    total 104
    -rw------- 1 root root 27292 May 21  2021 traefik-1.81.0.tgz
    -rw------- 1 root root   914 Nov 21 17:19 traefik-crd-9.18.2.tgz
    -rw------- 1 root root 17008 Nov 21 17:19 traefik-9.18.2.tgz
    -rw------- 1 root root   914 Dec  3 07:14 traefik-crd-9.18.201.tgz
    -rw------- 1 root root 17041 Dec  3 07:14 traefik-9.18.201.tgz
    -rw------- 1 root root 17685 Dec 22 19:07 traefik-10.3.001.tgz
    -rw------- 1 root root  7396 Dec 22 19:07 traefik-crd-10.3.001.tgz
    

    27/12/2021

    Read more...
  • Terraform error: Provider configuration not present

    2 min read

    Due to the need to use the count keyword for making a resource optional I wanted to upgrade from terraform 0.12 to 0.13 but while doing so I found the following error:

    Error: Provider configuration not present
    
    To work with module.jenkins.aws_iam_policy.jenkins_policy
    its original provider configuration at provider["registry.terraform.io/-/aws"]
    is required, but it has been removed. This occurs when a provider
    configuration is removed while objects created by that provider still exist in
    the state. Re-add the provider configuration to destroy
    module.jenkins.aws_iam_policy.jenkins_policy, after which
    you can remove the provider configuration again.
    

    07/04/2021

    Read more...
  • Rollback an upgrade using helm

    3 min read

    helm upgrade rollback

    When we upgrade an application using helm it can always go something wrong so instead of upgrading to another version or uninstall / install the application, we can rollback to a previous version that we know it is working

    Previously we already talked about the helm history command

    $ helm history pet2cattle
    REVISION  UPDATED                   STATUS      CHART           APP VERSION DESCRIPTION     
    60        Wed Dec 30 16:17:58 2020  superseded  pet2cattle-1.7  2.8         Upgrade complete
    61        Fri Jan  1 21:45:07 2021  superseded  pet2cattle-2    3           Upgrade complete
    62        Sat Jan  2 11:57:26 2021  superseded  pet2cattle-2    3.1         Upgrade complete
    63        Sat Jan  2 22:09:24 2021  superseded  pet2cattle-2    3.2         Upgrade complete
    64        Mon Jan  4 09:33:53 2021  superseded  pet2cattle-2    3.3         Upgrade complete
    65        Tue Jan  5 07:57:53 2021  superseded  pet2cattle-2    3.4         Upgrade complete
    66        Wed Jan  6 15:25:30 2021  superseded  pet2cattle-2    3.5         Upgrade complete
    67        Thu Jan  7 09:10:07 2021  superseded  pet2cattle-2    3.6         Upgrade complete
    68        Fri Jan  8 08:17:56 2021  superseded  pet2cattle-2    3.7         Upgrade complete
    69        Sat Jan  9 19:23:25 2021  deployed    pet2cattle-2    3.8         Upgrade complete
    

    Let's assume that the latest deployed versions is not working.

    18/01/2021

    Read more...

From pet to cattle
Treat your kubernetes clusters like cattle, not pets