Skip to content

Commit 05a647b

Browse files
committed
[Extras] Simplify demo setup. Unify Virtualbox and Hyper-V Ubuntu VM version.
1 parent 0f0e71a commit 05a647b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Vagrantfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ Vagrant.configure(2) do |config|
99
config.dns.tld = tld
1010
end
1111

12-
["20.04"].each do |dist|
12+
["21.04"].each do |dist|
1313
config.vm.define "#{hostname}" do |node|
1414
node.vm.hostname = hostname
1515
node.vm.network "private_network", ip: '192.168.61.10'
1616

1717
node.vm.provider :hyperv do |hv|
18-
node.vm.box = 'bento/ubuntu-20.04'
18+
node.vm.box = "bento/ubuntu-#{dist}"
1919
hv.memory = '8192'
2020
hv.cpus = '2'
2121
hv.vmname = hostname

extras/google-demo-microservice.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
. ./lib/dashboard.sh
44

5-
#curl -Lo skaffold https://storage.googleapis.com/skaffold/releases/v1.10.1/skaffold-linux-amd64 && chmod +x skaffold && sudo mv skaffold /usr/local/bin
6-
curl -Lo skaffold https://storage.googleapis.com/skaffold/releases/latest/skaffold-linux-amd64 && chmod +x skaffold && sudo mv skaffold /usr/local/bin
75
git clone https://github.com/GoogleCloudPlatform/microservices-demo.git
86
cd microservices-demo
9-
skaffold run
10-
sleep 60
7+
kubectl create namespace demo
8+
kubectl -n demo apply -f ./release/kubernetes-manifests.yaml
9+
kubectl wait --for=condition=available deployment/frontend -n demo
1110
kubectl port-forward deployment/frontend 9292:8080
11+
echo "Browse to http://kind.test:8080"

0 commit comments

Comments
 (0)