From b692741ebcb8d920f8198c033c38f9bf485bc582 Mon Sep 17 00:00:00 2001 From: swastik959 Date: Sun, 10 Mar 2024 20:26:00 +0530 Subject: [PATCH 1/2] added namespace manifest Signed-off-by: swastik959 --- demo/istio/bootstrap.sh | 2 -- demo/istio/manifests/echo-service.yaml | 9 +++++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/demo/istio/bootstrap.sh b/demo/istio/bootstrap.sh index 8dee3c5..d00494f 100755 --- a/demo/istio/bootstrap.sh +++ b/demo/istio/bootstrap.sh @@ -12,5 +12,3 @@ helm upgrade --install istio-base --namespace $ISTIO_NS --create-namespace helm upgrade --install istiod --namespace $ISTIO_NS --create-namespace --wait --repo $ISTIO_REPO istiod helm upgrade --install istio-ingress --namespace $ISTIO_NS --create-namespace --wait --repo $ISTIO_REPO gateway -# Label default namespace to inject sidecar automatically -kubectl label namespace default istio-injection=enabled diff --git a/demo/istio/manifests/echo-service.yaml b/demo/istio/manifests/echo-service.yaml index 25b810f..e4bfc8d 100644 --- a/demo/istio/manifests/echo-service.yaml +++ b/demo/istio/manifests/echo-service.yaml @@ -1,3 +1,12 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: my-istio-namespace + labels: + istio-injection: enabled + +--- + apiVersion: apps/v1 kind: Deployment metadata: From d2b834586928f27cbc1ed2aa1b65bd931a283bc7 Mon Sep 17 00:00:00 2001 From: swastik959 Date: Sun, 10 Mar 2024 22:39:42 +0530 Subject: [PATCH 2/2] added namespace to other resources Signed-off-by: swastik959 --- demo/istio/manifests/echo-service.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/demo/istio/manifests/echo-service.yaml b/demo/istio/manifests/echo-service.yaml index e4bfc8d..2ca5e73 100644 --- a/demo/istio/manifests/echo-service.yaml +++ b/demo/istio/manifests/echo-service.yaml @@ -1,16 +1,17 @@ apiVersion: v1 kind: Namespace metadata: - name: my-istio-namespace + name: demo labels: istio-injection: enabled - + --- apiVersion: apps/v1 kind: Deployment metadata: name: echo + namespace: demo spec: replicas: 1 selector: @@ -33,6 +34,7 @@ apiVersion: v1 kind: Service metadata: name: echo + namespace: demo spec: type: ClusterIP selector: