Install Signadot Operator
- Signadot account (No account yet? Sign up here).
- A Kubernetes cluster into which you will install the Signadot Operator.
- If you don't have a Kubernetes cluster available for installing the Signadot Operator yet, you can try Signadot on a Playground Cluster that you can self-provision from the Dashboard. See Quick Start for details.
- Network Requirements: The cluster must have egress access to the following Signadot endpoints:
api.signadot.com- REST API for managing sandboxes and platform entitiestunnel.signadot.com:443- Secure tunnel connection between the operator and Signadot Control Plane
- If you want to run Sandboxes with local workloads, you will need a Linux or MacOS machine onto which you will install the CLI.
Introduction
In this guide, we will walk you through the process of installing Signadot into your Kubernetes cluster. We will also cover how to configure request routing and address other infrastructure concerns. By the end of this guide, you will have a fully configured Signadot setup, ready for creating sandboxes within your cluster. This will enable you to manage and control your sandboxes directly from your cluster, ensuring a seamless and efficient workflow.
Set this up with a coding agent
A coding agent can plan the install for you. It runs the read-only checks below against your cluster, picks the routing approach from this page and the request routing guides, and writes the Helm values, the commands and the workload changes for you to review and run. It follows the rules for agents: read-only checks first, then a plan you approve, then files you apply.
Prompt: plan the operator install
Goal: Plan the Signadot Operator install for our Kubernetes cluster. Work out
which routing approach fits, write the Helm values and the commands, and stop
before anything is installed.
Rules:
- Confirm the kube context with me before running any kubectl or helm command,
and use a non-production cluster such as staging.
- Until I approve your plan, run only read-only commands. I run every cluster
write (helm install or upgrade, kubectl apply or create). Never ask for or
print the cluster token.
Read:
- https://www.signadot.com/docs/installation/signadot-operator.md
- https://www.signadot.com/docs/guides/request-routing.md, then the page for the
approach you pick:
https://www.signadot.com/docs/guides/request-routing/devmesh.md
https://www.signadot.com/docs/guides/request-routing/istio.md
https://www.signadot.com/docs/guides/request-routing/istio-ambient.md
https://www.signadot.com/docs/guides/request-routing/linkerd.md
https://www.signadot.com/docs/guides/request-routing/gateway-api.md
- https://www.signadot.com/docs/guides/admin/security/kubernetes-permissions.md
If a page doesn't load, stop and tell me. Check a command's --help before
using a flag you're unsure of.
Discover (read-only):
1. Show me `kubectl config current-context` and wait for my OK.
2. Run the checks in "Detect what your cluster runs" on the install page:
permissions, an existing Signadot Operator, Istio (sidecar or ambient: the
istio-injection, istio.io/rev and istio.io/dataplane-mode namespace
labels, the ztunnel DaemonSet), Linkerd, Gateway API CRDs, Argo Rollouts,
Argo CD or Flux.
3. Ask me whether the cluster needs a proxy to reach api.signadot.com and
tunnel.signadot.com:443.
Decide:
- Routing approach, from "When to Use Each Approach" on the request routing
page: DevMesh, Istio (sidecar or ambient), Linkerd with DevMesh, or Gateway
API on Istio or Linkerd. Istio and Linkerd can't both be enabled; if both
are present, stop and ask me which to use. If namespaces mix ambient and
sidecar modes, list which namespaces use which.
- Install or upgrade: if the operator is already installed, plan a helm upgrade
of the existing release instead of a new install. Start values.yaml from
its current values, read without the token:
helm get values <release> -n <namespace> -o json | jq 'del(.controlPlane.clusterToken)'
Check whether the token is set in the values, without printing it:
helm get values <release> -n <namespace> -o json | jq '.controlPlane // {} | has("clusterToken")'
If it is, the chart owns the cluster-token Secret and deletes it in an
upgrade that doesn't pass the token. Plan for me to copy the token into a
Secret with another name first, as "Upgrading the Operator" on the install
page shows, and set controlPlane.tokenSecret to that name.
- Which workloads need a DevMesh annotation, a VirtualService or HTTPRoute, or
a waypoint, per the page for the chosen approach.
- Which GitOps controllers must be set to ignore the routing objects Signadot
edits.
Produce:
- values.yaml for the chosen approach, without the cluster token. The chart
reads the token from a Secret named cluster-token in the signadot namespace,
or from the Secret that controlPlane.tokenSecret names.
- The commands for me to run, in order: for a new install, create the
signadot namespace and the cluster-token Secret (token as a placeholder);
then helm repo add, helm install (or upgrade) with --namespace signadot and
-f values.yaml, then the checks in "Verifying the Setup".
- The workload changes routing needs (annotations, routes, waypoints) as
manifests or diffs.
- A short summary of the RBAC the operator gets, for our security review.
Check the values by rendering the chart locally:
helm template signadot-operator signadot/operator --namespace signadot -f values.yaml
Stop and report: what you found, the routing approach and why, the files, the
commands for me to run, and open questions.
Detect what your cluster runs
These read-only checks tell you which routing approach and Helm values your
cluster needs. A NotFound error, or kubectl api-resources printing only
its header row, means the component isn't installed.
| Check | Command | What a result means |
|---|---|---|
| Install permissions | kubectl auth can-i create clusterroles and kubectl auth can-i create customresourcedefinitions | yes to both: you can install the chart, which creates CRDs, ClusterRoles and webhooks |
| Existing Signadot Operator | helm list -A --filter signadot and kubectl get crd signadotsandboxes.signadot.com | A release or the CRD exists: upgrade that release instead of installing a new one |
| Istio | kubectl api-resources --api-group=networking.istio.io | Resources listed: Istio is installed, so use Istio routing |
| Istio ambient mode | kubectl get daemonset ztunnel -n istio-system | Found: ambient mode is available, so check the namespace labels in the next row |
| Sidecar or ambient, per namespace | kubectl get ns -L istio-injection,istio.io/rev,istio.io/dataplane-mode | istio-injection=enabled namespaces, and istio.io/rev namespaces without the ambient label, run sidecars; istio.io/dataplane-mode=ambient namespaces run ambient and need waypoints for forked Services |
| Linkerd | kubectl api-resources --api-group=linkerd.io | Resources listed: Linkerd is installed, so set linkerd.enabled and use DevMesh |
| Gateway API | kubectl get crd gateways.gateway.networking.k8s.io | Found: Gateway API routing is possible, with Istio or Linkerd as the implementation |
| Argo Rollouts | kubectl get crd rollouts.argoproj.io | Found: sandboxes can fork Rollouts as well as Deployments |
| Argo CD or Flux | kubectl get crd applications.argoproj.io and kubectl api-resources --api-group=source.toolkit.fluxcd.io | Found: set it to ignore the routing objects Signadot edits, such as VirtualServices and HTTPRoutes |
To see which namespaces already run an Istio, Linkerd or DevMesh sidecar:
kubectl get pods -A -o jsonpath='{range .items[*]}{.metadata.namespace}{" "}{.spec.containers[*].name}{"\n"}{end}' \
| grep -E 'istio-proxy|linkerd-proxy|sd-sidecar' | sort | uniq -c
Istio and Linkerd can't both be enabled in the operator.
Install Signadot Operator into your cluster
To get started with Signadot, you first need to install the Signadot Operator into your cluster. This will allow you to manage and control your sandboxes directly from your cluster.
To install Signadot into your cluster, you will need to use Helm. If you haven't installed Helm yet, you can find the installation instructions here.
Before you can install Signadot, you need to generate a cluster token. This token is used to authenticate your Kubernetes cluster with Signadot. To generate a cluster token, you need to create an account on Signadot Dashboard. Once you have an account, navigate to Clusters > Connect Cluster, and then supply a name that identifies the cluster you are connecting. After creating the connection, the dashboard will present you with installation instructions that include your cluster token.
Installing the Operator
You need to install the Signadot Operator in one or more Kubernetes clusters where you wish to create Sandboxes. You need to authenticate your Kubernetes cluster to Signadot using a cluster token that can be generated using the Signadot Dashboard. Copy the cluster token value for the next installation step.
In the Signadot Dashboard, navigate to Clusters > Connect Cluster, and then supply a name that identifies the cluster you are connecting. Once you create the connection, the dashboard will present you with installation instructions that you can copy and paste.
Note that these install instructions contain your cluster token and as a result will not be shown again. For reference, the install instructions (without a cluster token) follow.
Keep the cluster token out of commands and values files
The chart reads the cluster token from a Secret named cluster-token in the
signadot namespace, under the key token. Instead of passing
controlPlane.clusterToken, you can create that Secret yourself and install
without the token, so it never appears in your shell history, a values file or
a coding agent's context:
kubectl create ns signadot
read -rs CLUSTER_TOKEN # paste the token and press Enter; it isn't shown
kubectl -n signadot create secret generic cluster-token --from-literal=token="$CLUSTER_TOKEN"
unset CLUSTER_TOKEN
helm install signadot-operator signadot/operator --namespace signadot
To use a different Secret name, set controlPlane.tokenSecret to it.
Upgrading the Operator
You upgrade an existing installation by running the following Helm commands.
To change settings in an upgrade, pass the complete values file with
-f values.yaml, not only the settings that change. To see the release's
current values without the token:
helm get values signadot-operator -n signadot -o json | jq 'del(.controlPlane.clusterToken)'
If you installed with --set controlPlane.clusterToken, the chart owns the
cluster-token Secret and deletes it in any upgrade that doesn't pass the
token, and operator pods that restart can't find it. Before such an upgrade,
copy the token into a Secret the chart doesn't own:
kubectl -n signadot get secret cluster-token -o json \
| jq '{apiVersion, kind, type, data, metadata: {name: "signadot-cluster-token", namespace: "signadot"}}' \
| kubectl create -f -
Then point the chart at it in values.yaml:
controlPlane:
tokenSecret: signadot-cluster-token
Uninstalling the Operator
To uninstall the operator, first, remove the Helm chart, and then delete the signadot namespace.
Configuration
You can optionally specify additional parameters to customize your operator
installation. This can be done through a Helm values.yaml file or on the
command line. For getting the full list of customizable parameters please check
helm parameters
documentation.
This is an example of how to specify custom parameters:
Or create a values.yaml file with the following content:
# Add these labels to all objects deployed by this chart.
commonLabels:
some-label: value1
other-label: value2
And run the following command
That will apply the some-label and other-label labels to all deployed objects including namespaces, CRDs, ClusterRoles, etc.
Local clusters
On a local cluster such as kind, minikube, k3s or Docker Desktop, or any cluster with one small node, run one replica each of the controller manager and the traffic manager. The chart runs two of each by default for availability. On a single node the second replicas only take memory, and the controller manager's replicas are active-passive, so a second one adds no capacity.
controllerManager:
replicas: 1
trafficManager:
replicas: 1
Install with these values (-f values.yaml), or apply them to an existing installation:
helm upgrade signadot-operator signadot/operator --reuse-values \
--set controllerManager.replicas=1 --set trafficManager.replicas=1
If pods stay Pending and kubectl describe pod shows Insufficient memory, give the node more memory or run fewer workloads on it. Istio's control plane requests 2 GiB of memory by default, so check Istio's platform setup for your local cluster before installing it there.
To reach a local cluster's services from your machine, signadot local connect can use the PortForward connection type with the cluster's kube context, such as kind-<cluster-name> for kind.
While installing, one of the key considerations is how you will set up routing for sandboxes. See the next section for more details on the different ways and considerations when setting up Sandbox routing.
Set up Routing
DevMesh
DevMesh is a system of lightweight sidecars that are built into the Signadot Operator and offer request routing functionality. This is the preferred solution for users who do not have a service mesh and for those using Linkerd. Users with Linkerd should follow the additional steps in the section on linkerd below.
To enable DevMesh, you need to opt each service into Signadot DevMesh injection. This can be done by adding an annotation to each pod. If for example, the pods are created by a deployment, the annotation can be added to the deployment template.
For more detailed instructions on how to set up routing using Signadot's DevMesh, please refer to our Using the Signadot DevMesh Guide.
DevMesh injection is installed by default. From Operator v1.4.0 you can leave it
out entirely with devMesh.enabled: false, which installs no
MutatingWebhookConfiguration, no webhook Service, and no ClusterRole granting
the operator cluster-wide namespaces read — so the Kubernetes API server makes
no admission call when a Pod is created anywhere in the cluster. Only do this
where sandbox routing comes from elsewhere: Istio, Gateway API, or an external
component declared per Service with the routing.signadot.com/external
annotation. A baseline Service with neither a mesh route nor that annotation
leaves its sandbox not ready, and because Linkerd without Gateway API routes
through the DevMesh sidecar, that combination is refused at install time.
Istio
If your application is running in an Istio mesh, you can enable sandbox routing
using Istio by setting the istio.enabled helm value to true during the
installation of the operator. This will cause the Signadot Operator to manage
routes in the Istio VirtualService for each service that is opted into Signadot.
When using Istio for routing, it is important to note that each baseline
microservice or "workload" that will be tested using Signadot must have an
associated VirtualService, or an HTTPRoute attached to its Service when
Gateway API routing is on
(istio.gatewayAPI.enabled). This is because Signadot uses these routes to
direct traffic to the appropriate sandboxes as needed.
Signadot mutates VirtualServices within the cluster to manage these routing rules. This means that if you have a GitOps based system that overwrites VirtualServices, you will need to configure it to ignore the changes made by Signadot.
If any of your workloads run in Istio ambient mode, each forked Service that those workloads call also needs a waypoint. See Istio Ambient Mode.
For more detailed instructions on how to set up routing using Istio, please refer to our Using Istio Guide.
Linkerd
If your application is running using Linkerd, you can set up routing using
Signadot's DevMesh. First, you must enable sandbox routing using Linkerd by
setting the linkerd.enabled helm value to true during the installation of
the operator.
After the above is complete, you can follow the instructions on setting up DevMesh as detailed here.
Gateway API (Alpha)
If your cluster uses Kubernetes Gateway API (HTTPRoute/GRPCRoute resources),
and you are installing with a service mesh, you can enable routing using the Gateway API by
setting linkerd.gatewayAPI.enabled or istio.gatewayAPI.enabled to true
during operator installation.
For more details, see our Gateway API Guide.
Verifying the Setup
Firstly, you should check from the Signadot dashboard that the cluster has successfully connected and is healthy. This verifies that the operator installation has been successful.
On a fresh cluster the operator images are pulled on first install, so the deployments may take a minute or two to become available. You can watch their progress with:
kubectl -n signadot get pods
All pods in the signadot namespace should reach a Running/Ready state. If
the agent, signadot-controller-manager, or traffic-manager pods stay in
Init/ContainerCreating with a secret "cluster-token" not found event,
the cluster token was not applied — re-check the --set controlPlane.clusterToken=...
value from your install command, or the cluster-token Secret if you created it yourself.
Secondly if you are using DevMesh for routing, to verify that the
routing is set up correctly, you should check that the pods associated with your
baseline deployments or workloads are now running an extra container, called the
sd-sidecar.
To test the setup, you can use a simple sandbox specification such as the following on any of the baseline workloads for which you're setting up sandboxes. This step uses the Signadot CLI, so install and authenticate it first if you haven't already.
name: test-sandbox-routing
spec:
description: Test Sandbox Routing
cluster: "@{cluster}"
forks:
- forkOf:
kind: Deployment
namespace: "@{namespace}"
name: "@{name}"
- Run with UI
- Run with CLI
Click the button below to open and run this spec on Create Sandbox UI.
Run the below command using Signadot CLI.
Once the sandbox created above reaches a healthy state, this signifies the successful completion of the setup.