Managing Service Mesh with Kubernetes

With the Oracle Cloud Infrastructure Service Mesh service, you can manage Service Mesh components using the OCI Console, OCI CLI, or Kubernetes tools. This section focuses on managing your Service Mesh with Kubernetes tools.

Managing Service Mesh Resources with kubectl

The kubectl command line tool is the primary way to communicate with a Kubernetes cluster's control plane using the Kubernetes API. For more information on kubectl, see Command line tool (kubectl). Service Mesh with kubectl allows:

Important

When using kubectl with Service Mesh, read Managing Service Mesh with OCI APIs vs kubectl to understand how kubectl interacts with the OCI CLI and OCI console.
Note

With kubectl commands, use both plural and singular versions of resource names interchangeably. For example, to get a list of virtual services either of the following commands works.
  • kubectl get virtualservices -n <NAMESPACE>
  • kubectl get virtualservice -n <NAMESPACE>

Managing Service Mesh with Helm

Service Mesh supports Helm Kubernetes management tool. Using Helm Charts, you define, install, and upgrade Kubernetes applications. For information on installing Helm, see Installing Helm.

For detailed information on Service Mesh Helm support, see Service Mesh Helm Support on GitHub.

Using Helm with Service Mesh

The following high-level steps describe how to use Helm with Service Mesh and Kubernetes.

  1. Create a Helm chart.
    helm create <CHART_NAME>

    The command creates a sample chart with the folder structure shown here: Helm Create.

  2. Change into the generated folder.
  3. Modify the templates folder to include the Service Mesh resources in the YAML files.
  4. Generate the template files for preview.
    helm template .
  5. Install the Helm chart on the Kubernetes cluster.
    helm install <CHART_NAME> -n <NAMESPACE> 
  6. Helm deploys the Service Mesh resources to your Kubernetes cluster.