Skip to content

Commit

Permalink
[Extras] Simplify demo setup. Unify Virtualbox and Hyper-V Ubuntu VM …
Browse files Browse the repository at this point in the history
…version.
  • Loading branch information
boldandbusted committed Nov 8, 2021
1 parent 0f0e71a commit 05a647b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ Vagrant.configure(2) do |config|
config.dns.tld = tld
end

["20.04"].each do |dist|
["21.04"].each do |dist|
config.vm.define "#{hostname}" do |node|
node.vm.hostname = hostname
node.vm.network "private_network", ip: '192.168.61.10'

node.vm.provider :hyperv do |hv|
node.vm.box = 'bento/ubuntu-20.04'
node.vm.box = "bento/ubuntu-#{dist}"
hv.memory = '8192'
hv.cpus = '2'
hv.vmname = hostname
Expand Down
8 changes: 4 additions & 4 deletions extras/google-demo-microservice.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

. ./lib/dashboard.sh

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

0 comments on commit 05a647b

Please sign in to comment.