4 ms·
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, succi
by aliswe 6y ago
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"
}
}
]
}
- atombender 6y agoYou should look into Kustomize. It's built into Kubectl, and lets you do something like this in a much more modular way.