Operator configuration can be modified by editing the SSP Custom Resource (CR). See SSP Specification that defines the desired state of SSP.
- SSP Custom Resource (CR)
- Annotations
- Common Templates
- Template Validator
- VNC Token Generation Service
To activate the operator, create the SSP Custom Resource (CR):
apiVersion: ssp.kubevirt.io/v1beta3
kind: SSP
metadata:
name: ssp-sample
namespace: kubevirt
spec:
commonTemplates:
namespace: kubevirt
templateValidator:
replicas: 2
This annotation will pause operator reconciliation.
apiVersion: ssp.kubevirt.io/v1beta3
kind: SSP
metadata:
annotations:
kubevirt.io/operator.paused: "false" # If not set, then by default is false
name: ssp-sample
namespace: kubevirt
spec: {}
The operator will not react to any changes to the SSP
resource
or any of the watched resources. If a paused SSP
resource is deleted,
the operator will still cleanup all the dependent resources.
A set of common templates to create KubeVirt Virtual Machines (VMs).
apiVersion: ssp.kubevirt.io/v1beta3
kind: SSP
metadata:
name: ssp-sample
namespace: kubevirt
spec:
commonTemplates:
namespace: kubevirt
Template Validator is designed to inspect virtual machines (VMs) and detect any violations of the rules defined in VM's annotations.
apiVersion: ssp.kubevirt.io/v1beta3
kind: SSP
metadata:
name: ssp-sample
namespace: kubevirt
spec:
templateValidator:
replicas: 2 # Customize the number of replicas for the validator deployment
The VM Console Proxy
can be deployed by SSP operator when it is enabled in the .spec
.
It is a service that exposes an API for generating VNC access tokens for VMs.
apiVersion: ssp.kubevirt.io/v1beta3
kind: SSP
metadata:
name: ssp-sample
namespace: kubevirt
spec:
tokenGenerationService:
enabled: true