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:
- Managing Meshes with kubectl
- Managing Virtual Services with kubectl
- Managing Virtual Service Route Tables with kubectl
- Managing Virtual Deployments with kubectl
- Managing Virtual Deployment Bindings with kubectl
- Managing Ingress Gateways with kubectl
- Managing Ingress Gateway Route Tables with kubectl
- Managing Ingress Gateway Deployment Bindings with kubectl
- Managing Access Policies with kubectl
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.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.
- Create a Helm chart.
helm create <CHART_NAME>
The command creates a sample chart with the folder structure shown here: Helm Create.
- Change into the generated folder.
- Modify the
templates
folder to include the Service Mesh resources in the YAML files. - Generate the template files for preview.
helm template .
- Install the Helm chart on the Kubernetes cluster.
helm install <CHART_NAME> -n <NAMESPACE>
- Helm deploys the Service Mesh resources to your Kubernetes cluster.