16 lines
493 B
Bash
Executable File
16 lines
493 B
Bash
Executable File
#!/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
|
|
|