Create Istio resources
To create new Istio resources for your service mesh, navigate to MENU > ISTIO RESOURCES, click CREATE NEW, and select an Istio resource from the listed Type
in the resource selector.
Depending on your selection, a YAML editor with a pre-populated resource template is displayed. Here, you can customize the YAML and validate the correctness of the syntax and content before creating the custom resource. For resource-specific details on creating the different resources, see the respective section on this page.
Authorization policy
Using the Authorization policy, you can add access control on workloads in the mesh. This policy supports CUSTOM, DENY, and ALLOW actions for access control. For more information, see the Istio documentation.
-
To create an Authorization policy in your service mesh, select the Authorization policy from the resource selector. An editor with the pre-populated template for the Authorization policy custom resource is displayed.
-
To choose a particular resource template in the Authorization policy, click on the Template dropdown.
-
Edit the selected template. To validate the resource’s correctness, click Validate
icon.
-
To create and apply the Authorization policy, click Create.
Destination rule
Destination rule defines policies to configure:
- load balancing
- connection pool size from sidecar
- outlier detection
- load balancing with subset and sticky sessions
To learn more about how to create the destination rules for in-mesh traffic, see Circuit Breaking.
-
To create a Destination rule in your service mesh, select the Destination rule from the resource selector. An editor with the pre-populated template for the Destination rule custom resource is displayed.
-
To choose a particular resource template in the Destination rule, click on the Template dropdown.
-
Edit the selected template. To validate the resource correctness, click Validate
icon.
-
To create and apply the Destination rule, click Create.
Gateway
The Gateway
resource describes the port configuration of the gateway deployment that operates at the edge of the mesh and receives incoming or outgoing HTTP/TCP connections. The specification describes a set of ports that should be exposed, the type of protocol to use, TLS configuration – if any – of the exposed ports, and so on.
-
To create a Gateway resource in your service mesh, select Gateway from the resource selector. An editor with the pre-populated template for the Gateway resource is displayed.
-
To choose a particular resource template in Gateway, click on the Template dropdown.
-
Edit the selected template. To validate the resource’s correctness, click Validate
icon.
-
To create and apply the Gateway resource, click Create.
Mesh gateway
Service Mesh Manager provides a custom resource called IstioMeshGateway. It uses a separate controller to reconcile gateways allowing you to use multiple gateways in multiple namespaces. That way, you can also control who can manage gateways, without having permissions to modify other parts of the Istio mesh configuration. To learn more about mesh gateway in Calisti see Gateways.
-
To create a Mesh gateway in your service mesh, select Mesh gateway from the resource selector. An editor with the pre-populated template for the Mesh gateway is displayed.
Note: For more information refer Create ingress and Create egress gateways documentation
-
To choose a particular resource template in the Mesh gateway, click the Template dropdown.
-
Edit the selected template. To validate the resource correctness, click the Validate
icon.
-
To create and apply the Mesh gateway, click Create.
Peer authentication
Peer authentication determines if and how the traffic is routed to the sidecar.
-
To create a Peer authentication in your service mesh, select Peer authentication from the resource selector. An editor with the pre-populated template for the Peer authentication is displayed.
-
To choose a particular resource template in Peer authentication, click on the Template dropdown.
-
Edit the selected template. To validate the resource’s correctness, click the Validate
icon.
-
To create and apply the Peer authentication resource, click Create.
Virtual services
The VirtualService resource defines a set of traffic routing rules to apply when a host is addressed. Each routing rule defines matching criteria for the traffic of a specific protocol. If the traffic matches a routing rule, then it is sent to a named destination service defined in the registry.
-
To create a Virtual service in your service mesh, select Virtual services from the resource selector. An editor with the pre-populated template for the Virtual services is displayed.
-
To choose a particular resource template in Virtual service, click on the Template dropdown.
-
Edit the selected template. To validate the resource’s correctness, click the Validate
icon.
-
To apply the Virtual services, click Create.