Last active
May 14, 2020 09:53
-
-
Save Jagdeep1/3e83291c7a3cad8308648845a710d548 to your computer and use it in GitHub Desktop.
Istio multi cluster setup - main cluster configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: install.istio.io/v1alpha1 | |
kind: IstioOperator | |
metadata: | |
namespace: istio-system | |
name: main-istiocontrolplane | |
spec: | |
# Using Default profile for this example. You can select differnt profile for your use case | |
# https://istio.io/docs/setup/additional-setup/config-profiles/ | |
profile: default | |
values: | |
security: | |
selfSigned: false | |
global: | |
controlPlaneSecurityEnabled: true | |
mtls: | |
# Require all service to service communication to have mtls | |
enabled: true | |
multiCluster: | |
clusterName: ${MAIN_CLUSTER_NAME} | |
network: ${MAIN_CLUSTER_NETWORK} | |
meshNetworks: | |
${MAIN_CLUSTER_NETWORK}: | |
endpoints: | |
- fromRegistry: Kubernetes | |
gateways: | |
- registry_service_name: istio-ingressgateway.istio-system.svc.cluster.local | |
port: 443 | |
${REMOTE_CLUSTER_NETWORK}: | |
endpoints: | |
# Remote cluster name is very important for service discovery across cluster | |
- fromRegistry: ${REMOTE_CLUSTER_NAME} | |
gateways: | |
- registry_service_name: istio-ingressgateway.istio-system.svc.cluster.local | |
port: 443 | |
# This configuration is specific to internal LoadBalancer setup | |
components: | |
pilot: | |
k8s: | |
service: | |
type: LoadBalancer | |
service_annotations: | |
# This service annotation is specific to AKS. You can use different annotation | |
# for your colud provider | |
service.beta.kubernetes.io/azure-load-balancer-internal: "true" | |
# Enable or desable addon components | |
addonComponents: | |
grafana: | |
enabled: false | |
kiali: | |
enabled: true | |
prometheus: | |
enabled: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment