diff --git a/ec2/terraform/main.tf b/ec2/terraform/main.tf index 328a073..037abcf 100644 --- a/ec2/terraform/main.tf +++ b/ec2/terraform/main.tf @@ -55,7 +55,7 @@ resource "aws_instance" "ubuntu-ec2" { provisioner "remote-exec" { inline = [ "cd /tmp/examples", - "git checkout ec2", + "git checkout bookinfo", "chmod +x /tmp/examples/ec2/install_dependencies.sh", "cd /tmp/examples/ec2; ./install_dependencies.sh", "sudo usermod -aG docker $USER", @@ -67,7 +67,7 @@ resource "aws_instance" "ubuntu-ec2" { provisioner "remote-exec" { inline = [ "cd /tmp/examples", - "git checkout ec2", + "git checkout bookinfo", "chmod +x /tmp/examples/kind/kind.sh", "cd /tmp/examples/kind; ./kind.sh", ] @@ -76,7 +76,7 @@ resource "aws_instance" "ubuntu-ec2" { provisioner "remote-exec" { inline = [ "cd /tmp/examples", - "git checkout ec2", + "git checkout bookinfo", "chmod +x /tmp/examples/kind/bookinfo/bookinfo.sh", "cd /tmp/examples/kind/bookinfo; ./bookinfo.sh", ] diff --git a/kind/bookinfo/config_files/details.yaml b/kind/bookinfo/config_files/details.yaml index 3433aa0..6c6175b 100644 --- a/kind/bookinfo/config_files/details.yaml +++ b/kind/bookinfo/config_files/details.yaml @@ -26,8 +26,6 @@ apiVersion: apps/v1 kind: Deployment metadata: name: details-v1 - annotations: - avesha.io/slice: convoy labels: app: details version: v1 diff --git a/kind/bookinfo/config_files/productpage.yaml b/kind/bookinfo/config_files/productpage.yaml index a84cfa8..53ea7bf 100644 --- a/kind/bookinfo/config_files/productpage.yaml +++ b/kind/bookinfo/config_files/productpage.yaml @@ -27,8 +27,6 @@ apiVersion: apps/v1 kind: Deployment metadata: name: productpage-v1 - annotations: - avesha.io/slice: convoy labels: app: productpage version: v1 diff --git a/kind/bookinfo/config_files/ratings.yaml b/kind/bookinfo/config_files/ratings.yaml index eb1783b..11137a1 100644 --- a/kind/bookinfo/config_files/ratings.yaml +++ b/kind/bookinfo/config_files/ratings.yaml @@ -26,8 +26,6 @@ apiVersion: apps/v1 kind: Deployment metadata: name: ratings-v1 - annotations: - avesha.io/slice: convoy labels: app: ratings version: v1 diff --git a/kind/bookinfo/config_files/reviews.yaml b/kind/bookinfo/config_files/reviews.yaml index 08c55ae..1e71dbc 100644 --- a/kind/bookinfo/config_files/reviews.yaml +++ b/kind/bookinfo/config_files/reviews.yaml @@ -26,8 +26,6 @@ apiVersion: apps/v1 kind: Deployment metadata: name: reviews-v3 - annotations: - avesha.io/slice: convoy labels: app: reviews version: v3 diff --git a/kind/bookinfo/config_files/serviceexports.yaml b/kind/bookinfo/config_files/serviceexports.yaml index 9b37d65..219d447 100644 --- a/kind/bookinfo/config_files/serviceexports.yaml +++ b/kind/bookinfo/config_files/serviceexports.yaml @@ -10,7 +10,7 @@ spec: selector: matchLabels: app: details - ingressEnabled: false + ingressEnabled: false ports: - name: http containerPort: 9080 @@ -28,7 +28,7 @@ spec: selector: matchLabels: app: reviews - ingressEnabled: false + ingressEnabled: false ports: - name: http containerPort: 9080 diff --git a/kind/kind.sh b/kind/kind.sh index f6cf3d2..89adf47 100755 --- a/kind/kind.sh +++ b/kind/kind.sh @@ -267,6 +267,7 @@ for WORKER in ${WORKERS[@]}; do sleep 60 kubectl get pods -n kubeslice-system kubectl create ns iperf + kubectl create ns bookinfo done sleep 60 diff --git a/kind/slice.template.yaml b/kind/slice.template.yaml index d19ec58..b437f76 100644 --- a/kind/slice.template.yaml +++ b/kind/slice.template.yaml @@ -23,6 +23,9 @@ spec: - namespace: iperf clusters: - '*' + - namespace: bookinfo + clusters: + - '*' isolationEnabled: false #make this true in case you want to enable isolation allowedNamespaces: - namespace: kube-system