Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I made a script for expressing similar deployments (ie homepage-en, homepage-de) in a variety of contexts (test, prod) and their permutations in a single, succinct json file.

It's a bash script though.

Example json:

  {
  "deployments": [
    {
      "name": "site-en",
      "env": {
        "hello": "world"
      }
    }
  ],
  "targets": [
    {
      "name": "dev",
      "context": "aks-dev",
      "env": {
        "ipsum": "dolor"
      }
    }
  ]
  }


You should look into Kustomize. It's built into Kubectl, and lets you do something like this in a much more modular way.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: