Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
21 changes: 18 additions & 3 deletions multi_cluster/tools/install_istio.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ make -f ../tools/certs/Makefile.selfsigned.mk "${CTX_CLUSTER3}-cacerts" || make
# create cluster secret objects with the certs and keys
kubectl --context="${CTX_CLUSTER1}" delete ns istio-system || true
kubectl --context="${CTX_CLUSTER1}" create ns istio-system
kubectl --context="${CTX_CLUSTER1}" label --overwrite ns istio-system pod-security.kubernetes.io/enforce=privileged
kubectl --context="${CTX_CLUSTER1}" create secret generic cacerts -n istio-system \
--from-file=${CTX_CLUSTER1}/ca-cert.pem \
--from-file=${CTX_CLUSTER1}/ca-key.pem \
Expand All @@ -46,6 +47,7 @@ kubectl --context="${CTX_CLUSTER1}" create secret generic cacerts -n istio-syste

kubectl --context="${CTX_CLUSTER2}" delete ns istio-system || true
kubectl --context="${CTX_CLUSTER2}" create ns istio-system
kubectl --context="${CTX_CLUSTER2}" label --overwrite ns istio-system pod-security.kubernetes.io/enforce=privileged
kubectl --context="${CTX_CLUSTER2}" create secret generic cacerts -n istio-system \
--from-file=${CTX_CLUSTER2}/ca-cert.pem \
--from-file=${CTX_CLUSTER2}/ca-key.pem \
Expand All @@ -54,6 +56,7 @@ kubectl --context="${CTX_CLUSTER2}" create secret generic cacerts -n istio-syste

kubectl --context="${CTX_CLUSTER3}" delete ns istio-system || true
kubectl --context="${CTX_CLUSTER3}" create ns istio-system
kubectl --context="${CTX_CLUSTER3}" label --overwrite ns istio-system pod-security.kubernetes.io/enforce=privileged
kubectl --context="${CTX_CLUSTER3}" create secret generic cacerts -n istio-system \
--from-file=${CTX_CLUSTER3}/ca-cert.pem \
--from-file=${CTX_CLUSTER3}/ca-key.pem \
Expand All @@ -67,6 +70,10 @@ apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
spec:
tag: ${VERSION}
components:
cni:
namespace: istio-system
enabled: true
meshConfig:
defaultConfig:
terminationDrainDuration: 30s
Expand All @@ -81,13 +88,17 @@ spec:
network: network1
EOF

bin/istioctl install --context="${CTX_CLUSTER1}" -f cluster1.yaml -y &
bin/istioctl install --context="${CTX_CLUSTER1}" --set components.cni.enabled=true -f cluster1.yaml -y &

cat <<EOF >cluster2.yaml
apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
spec:
tag: ${VERSION}
components:
cni:
namespace: istio-system
enabled: true
meshConfig:
defaultConfig:
terminationDrainDuration: 30s
Expand All @@ -102,13 +113,17 @@ spec:
network: network1
EOF

bin/istioctl install --context="${CTX_CLUSTER2}" -f cluster2.yaml -y &
bin/istioctl install --context="${CTX_CLUSTER2}" --set components.cni.enabled=true -f cluster2.yaml -y &

cat <<EOF >cluster3.yaml
apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
spec:
tag: ${VERSION}
components:
cni:
namespace: istio-system
enabled: true
meshConfig:
defaultConfig:
terminationDrainDuration: 30s
Expand All @@ -123,7 +138,7 @@ spec:
network: network1
EOF

bin/istioctl install --context="${CTX_CLUSTER3}" -f cluster3.yaml -y &
bin/istioctl install --context="${CTX_CLUSTER3}" --set components.cni.enabled=true -f cluster3.yaml -y &

wait

Expand Down
2 changes: 1 addition & 1 deletion multi_cluster/tools/install_istio_central.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ source multi_cluster/tools/download_istio.sh
cd istio-${VERSION}

bin/istioctl x uninstall --context="${CTX_CLUSTER}" --purge --skip-confirmation
bin/istioctl install --context="${CTX_CLUSTER}" --set profile=default --set meshConfig.outboundTrafficPolicy.mode=REGISTRY_ONLY --skip-confirmation
bin/istioctl install --context="${CTX_CLUSTER}" --set components.cni.enabled=true --set profile=default --set meshConfig.outboundTrafficPolicy.mode=REGISTRY_ONLY --skip-confirmation
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ cat <<EOF > cluster1.yaml
apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
spec:
components:
cni:
namespace: istio-system
enabled: true
meshConfig:
defaultConfig:
terminationDrainDuration: 30s
Expand All @@ -93,7 +97,8 @@ spec:
clusterName: cluster1
network: network1
EOF
bin/istioctl install --context="${CTX_CLUSTER1}" -f cluster1.yaml -y
bin/istioctl install --context="${CTX_CLUSTER1}" --set components.cni.enabled=true -f cluster1.yaml -y

samples/multicluster/gen-eastwest-gateway.sh \
--mesh mesh1 --cluster cluster1 --network network1 | \
bin/istioctl --context="${CTX_CLUSTER1}" install -y -f -
Expand All @@ -116,6 +121,10 @@ cat <<EOF > cluster2.yaml
apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
spec:
components:
cni:
namespace: istio-system
enabled: true
meshConfig:
defaultConfig:
terminationDrainDuration: 30s
Expand All @@ -130,7 +139,7 @@ spec:
network: network2
EOF

bin/istioctl install --context="${CTX_CLUSTER2}" -f cluster2.yaml -y
bin/istioctl install --context="${CTX_CLUSTER2}" --set components.cni.enabled=true -f cluster2.yaml -y

samples/multicluster/gen-eastwest-gateway.sh \
--mesh mesh1 --cluster cluster2 --network network2 | \
Expand All @@ -150,6 +159,10 @@ cat <<EOF > cluster3.yaml
apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
spec:
components:
cni:
namespace: istio-system
enabled: true
meshConfig:
defaultConfig:
terminationDrainDuration: 30s
Expand All @@ -164,7 +177,7 @@ spec:
network: network3
EOF

bin/istioctl install --context="${CTX_CLUSTER3}" -f cluster3.yaml -y
bin/istioctl install --context="${CTX_CLUSTER3}" --set components.cni.enabled=true -f cluster3.yaml -y

samples/multicluster/gen-eastwest-gateway.sh \
--mesh mesh1 --cluster cluster3 --network network3 | \
Expand Down
188 changes: 0 additions & 188 deletions scripts/release/kubectl-mongodb/install_istio_separate_network.sh
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file was unused

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

q: Was this accidentally commited into the scripts/release/kubectl-mongodb folder?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, exactly. This was added mistakenly added during kubectl-mongodb plugin refactoring

This file was deleted.

Loading