Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: added namespace manifest #26

Merged
merged 2 commits into from
Mar 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions demo/istio/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
11 changes: 11 additions & 0 deletions demo/istio/manifests/echo-service.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
apiVersion: v1
kind: Namespace
metadata:
name: demo
labels:
istio-injection: enabled

---

apiVersion: apps/v1
kind: Deployment
metadata:
name: echo
namespace: demo
spec:
replicas: 1
selector:
Expand All @@ -24,6 +34,7 @@ apiVersion: v1
kind: Service
metadata:
name: echo
namespace: demo
spec:
type: ClusterIP
selector:
Expand Down