k8s & envoy app
$ cd vagrant/beatrak-centos7
$ vi Makefile
# edit Makefile, replace "beatraker" and "beatrak"
export VM_USER=beatraker
export VM_NAME=beatrak
#export EXTRA # deploy some extra packages like emacs if defined
$ make create
$ make shell # will login as VM_USER above
NOTE: not using vagrant, all the setup logic is in vagrant/beatrak-centos7/bootstrap.sh
if need NAT, ports that need to be forwarded:
config.vm.network "forwarded_port", guest: 50004, host: 60004 # grafana
config.vm.network "forwarded_port", guest: 50020, host: 60020 # montrer
http://localhost:60004 admin/admin
http://localhost:60020
$ cd ansible/beatrak-centos7
$ make prereq
$ cd ../..
$ ifconfig -a # example
...
enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.0.2.15 netmask 255.255.255.0 broadcast 10.0.2.255
...
$ sed -i "s/EXT_SVC_IP :=/EXT_SVC_IP := 10.0.2.15/g" ./Makefile
$
$ make build-all
$ make installgen
$ make create-all
$ make postgresql-gen
$ kubectl get pods -o wide
$ kubectl get svc -o wide
$
$ make beacon-config-default # scenario 1
$ make beacon-config-skew # scenario 2
$ kubectl scale statefulsets beacon-za-ss-hlsvc --replicas=3 # scenario 3
$ make beacon-config-zonetocluser # scenario 4
$ make beacon-create-zb # scenario 5
$
$ kubectl get pods -o wide
$ kubectl get svc -o wide
$
$ make delete-all