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

Example of "Virtual Machines in Multi-Network Meshes" is outdated #8602

Closed
rinormaloku opened this issue Nov 30, 2020 · 1 comment · Fixed by #8746
Closed

Example of "Virtual Machines in Multi-Network Meshes" is outdated #8602

rinormaloku opened this issue Nov 30, 2020 · 1 comment · Fixed by #8746
Assignees

Comments

@rinormaloku
Copy link
Contributor

rinormaloku commented Nov 30, 2020

Following the guide as explained in this doc: "https://istio.io/latest/docs/examples/virtual-machines/multi-network/" is failing:

$ istioctl install -y -f - <<EOF
apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
spec:
  values:
    global:
      meshExpansion:
        enabled: true
      multiCluster:
        clusterName: kube-cluster
      network: main-network
      meshNetworks:
        main-network:
          endpoints:
          - fromRegistry: kube-cluster
          gateways:
          - registryServiceName: istio-ingressgateway.istio-system.svc.cluster.local
            port: 443
EOF

# Output
! values.global.meshExpansion.enabled is deprecated; use Gateway and other Istio networking resources, such as in samples/istiod-gateway/ instead
✔ Istio core installed                                                                                               
✔ Istiod installed                                                                                                   
- Processing resources for Ingress gateways.                                                                         2020-11-30T09:08:22.624826Z     error   installer       failed to create "Service/istio-system/istio-ingressgateway": Service "istio-ingressgateway" is invalid: [spec.ports[4].name: Duplicate value: "tcp-istiod", spec.ports[4]: Duplicate value: core.ServicePort{Name:"", Protocol:"TCP", AppProtocol:(*string)(nil), Port:15012, TargetPort:intstr.IntOrString{Type:0, IntVal:0, StrVal:""}, NodePort:0}]
✘ Ingress gateways encountered an error: failed to create "Service/istio-system/istio-ingressgateway": Service "istio-ingressgateway" is invalid: [spec.ports[4].name: Duplicate value: "tcp-istiod", spec.ports[4]: Duplicate value: core.ServicePort{Name:"", Protocol:"TCP", AppProtocol:(*string)(nil), Port:15012, TargetPort:intstr.IntOrString{Type:0, IntVal:0, StrVal:""}, NodePort:0}]
- Pruning removed resources                                                                                          Error: failed to install manifests: errors occurred during operation

I checked and the tcp-istiod port is defined twice in the generated manifest. The reason I am adding it here and not in Istio is that it seems that the new approach for adding VMs should not use the property values.global.meshExpansion.enabled

@rinormaloku rinormaloku changed the title Example of "Virtual Machines in Multi-Network Meshes" is failing Example of "Virtual Machines in Multi-Network Meshes" is outdated Nov 30, 2020
@frankbu
Copy link
Collaborator

frankbu commented Dec 4, 2020

@stevenctl PTAL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants