diff --git a/p2/Vagrantfile b/p2/Vagrantfile index 233775a..e9267d6 100644 --- a/p2/Vagrantfile +++ b/p2/Vagrantfile @@ -1,6 +1,6 @@ Vagrant.configure(2) do |config| config.vm.box = "hashicorp/bionic64" - config.vm.network "forwarded_port", guest: 80, host: 80 + # config.vm.network "forwarded_port", guest: 80, host: 80 config.vm.define "apommierS" do |control| control.vm.hostname = "apommierS" control.vm.network "private_network", ip: "192.168.56.110" diff --git a/p2/confs/html/app_one.html b/p2/confs/html/app_one.html deleted file mode 100644 index e69de29..0000000 diff --git a/p2/confs/ingress.yaml b/p2/confs/ingress.yaml index c2e4401..7eed973 100644 --- a/p2/confs/ingress.yaml +++ b/p2/confs/ingress.yaml @@ -4,11 +4,6 @@ kind: Ingress metadata: name: app-ingress spec: - defaultBackend: - service: - name: app3 - port: - number: 80 rules: - host: app1.com http: @@ -30,3 +25,12 @@ spec: name: app2 port: number: 80 + - http: # No "host" means this rule catches all unmatched requests + paths: + - path: / + pathType: Prefix + backend: + service: + name: app3 + port: + number: 80 diff --git a/p2/scripts/deploy.sh b/p2/scripts/deploy.sh deleted file mode 100644 index e69de29..0000000