diff --git a/tools/deploy-configuration.sh b/tools/deploy-configuration.sh new file mode 100755 index 0000000..05d6956 --- /dev/null +++ b/tools/deploy-configuration.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +NAMESPACE=homea2 + +kubectl create configmap home-automation-config \ + --from-file=devices.yaml=config/devices.yaml \ + --from-file=groups.yaml=config/groups.yaml \ + --from-file=layout.yaml=config/layout.yaml \ + --from-file=rules.yaml=config/rules.yaml \ + --from-file=scenes.yaml=config/scenes.yaml \ + --namespace=$NAMESPACE \ + --dry-run=client -o yaml | kubectl apply -f - + +kubectl apply -f deployment/configmap.yaml -n $NAMESPACE +