raynix 筆記

raynix 筆記

  • Home
  • WordPress Hosting
  • Side Quests
Illustration of a bird flying.
  • Solved: Atlantis Couldn’t Track Google Service Account Keys in State File

    Atlantis is a great tool to do Terraform infrastructure-as-code and gitops together. I got it setup and running alright but when I let it to manage some service account keys(I know, not the best option, but in my situation I had to use it), it kept trying to re-create even if the key exists. Turns…

    October 13, 2023
    Systems Admin
    Atlantis, GCP
  • Solved: Error 403: The caller does not have permission

    Recently I got a very confusing error when setting up a PubSub subscription to write to a Big Query table via terraform. Here’s the partial terraform code snippet: And the input variable subscriptions looks like: It doesn’t show any error when doing terraform plan however it gives 403 error when applying. After some googling I…

    September 6, 2023
    Systems Admin
    Google Cloud, PubSub, Terraform
  • How to Avoid Rebuild Resources with Terraform/Terragrunt

    I use Terraform and Terragrunt a lot at work to keep track of infrastructure changes. Sometimes I refactored code in modules so there’s no change to infrastructure but since the module changed terraform will insist to rebuild affected resources. It’s not quite comfortable to destroy some resources and then just create exactly the same ones.…

    September 4, 2023
    Systems Admin
    Terraform
  • How to Use the Sidecar Resource to Optimise Memory Footprint of Istio Sidecar

    In a populous GKE cluster, I saw the memory utilisation getting very high. After some investigation, to my surprise, a great deal of memory was consumed by tiny Istio sidecars. And they are getting bloated round the clock. The Istio sidecar essentially is an envoy proxy configured by Istio controller – istiod. It’s usually light-weight,…

    August 10, 2023
    Opensource, Systems Admin
    istio, Kiali
  • Solved: Couldn’t Pick Correct Python Version in VS Code in Fedora Linux

    TL; DR: The VS Code was installed via flatpak. I purged it and re-installed it the normal way then the problem went away 🙂

    August 10, 2023
    Free software
    Fedora, VSCode
  • An Admin-Only Python Decorator for Telegram Bots

    TL; DR: Here’s a Python Decorator I wrote for Telegram Bots so certain commands can only be used by group admins.

    June 30, 2023
    Opensource, Python & Frameworks
    Python, Telegram
  • Solved: Blank Screen After Login in Gnome Shell 44

    Background: I have an old desktop computer running Fedora 36 + Gnome Shell desktop environment and upgraded to 38 recently. It was used as an archive so I left it in garage and only connect to it vis SSH or VNC. Now I moved it into my home office because I think it can act…

    June 28, 2023
    Opensource
    Gnome Shell, VNC
  • Terraform: String Manipulation for Default Domains

    Imaging when I needed to grant access to a Google storage bucket for a list of Google service accounts, I put the list in YAML like this: Assuming horizon is the default GCP project and mass-effect is a partner project and most GSAs are of course from the default project. So can this list be…

    June 16, 2023
    Systems Admin
    GCP, Terraform
←Previous Page
1 … 5 6 7 8 9 … 109
Next Page→
  • Eric Lin’s Blog
  • Eddie Wang’s Blog at WP
  • GoalKeeper’s Blog

raynix 筆記

Just another WordPress blog

  • Facebook
  • Twitter
  • Instagram

Proudly powered by WordPress