Skip to content

Commit

Permalink
cost allocation tags (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
nonsense authored Apr 23, 2020
1 parent 8b31a4b commit 5c1af60
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ export ZONE_A=<aws availability zone, for example eu-central-1a>
export ZONE_B=<aws availability zone, for example eu-central-1b>
export WORKER_NODES=4
export PUBKEY=$HOME/.ssh/testground_rsa.pub
export TEAM=<optional - your team name ; used for cost allocation purposes>
export PROJECT=<optional - your project name ; used for cost allocation purposes>
```
5. Set up Helm and add the `stable` Helm Charts repository
Expand Down
3 changes: 3 additions & 0 deletions k8s/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ metadata:
creationTimestamp: null
name: ${NAME}
spec:
cloudLabels:
Team: ${TEAM}
Project: ${PROJECT}
api:
loadBalancer:
type: Public
Expand Down
2 changes: 2 additions & 0 deletions k8s/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ then
export ULIMIT_NOFILE="1048576:1048576"
fi

export TEAM=${TEAM:=default-team}
export PROJECT=${PROJECT:=default-project}
CLUSTER_SPEC=$(mktemp)
envsubst <$CLUSTER_SPEC_TEMPLATE >$CLUSTER_SPEC
cat $CLUSTER_SPEC
Expand Down

0 comments on commit 5c1af60

Please sign in to comment.