Hello,
I have follow Istio / Install Primary-Remote for install istio on 2 clusters.
cluster1:
1 master - 2 worker, kubernetes v1.23.4:
apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
spec:
values:
global:
meshID: mesh1
multiCluster:
clusterName: cluster1
network: network1
cluster2
1 master - 2 worker, rancher-rke2 v1.22.7+rke2r1:
apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
spec:
values:
global:
meshID: mesh1
multiCluster:
clusterName: cluster2
network: network2
remotePilotAddress: 10.20.0.22
All VMs are on the 10.20.0.0/24
network.
Ok, it’s work.
But I do not understand:
I) Istio / Virtual Machine Installation - prepare-the-guide-environment
$ VM_APP="<the name of the application this VM will run>"
$ VM_NAMESPACE="<the name of your service namespace>"
$ WORK_DIR="<a certificate working directory>"
$ SERVICE_ACCOUNT="<name of the Kubernetes service account you want to use for your VM>"
$ CLUSTER_NETWORK=""
$ VM_NETWORK=""
$ CLUSTER="Kubernetes"
I want to integrate the VM into the cluster1, so I think
CLUSTER_NETWORK="network1"
but for VM_NETWORK
it’s
""
network1
10.20.0.0/24
- …
At this time, I have:
- VM_APP=“mysqldb”
- VM_NAMESPACE=“vm”
- WORK_DIR="~/istio-1.13.2/vm"
- SERVICE_ACCOUNT=“vm”
- CLUSTER_NETWORK=“network1”
- VM_NETWORK=“10.20.0.0/24”
- CLUSTER=“cluster1”
2) Istio / Virtual Machine Installation -create-files-to-transfer-to-the-virtual-machine
istioctl x workload entry configure -f workloadgroup.yaml -o "${WORK_DIR}" --clusterID "${CLUSTER}"
create a ${WORK_DIR}/root-cert.pem
certificate … but we should not use the certificate ~/istio-1.13.2/certs/cluster1/root-cert.pem
Thank you for your clarification / help