Skip to content

Latest commit

 

History

History
97 lines (78 loc) · 2.26 KB

configuration.md

File metadata and controls

97 lines (78 loc) · 2.26 KB

Configuration

Operator configuration can be modified by editing the SSP Custom Resource (CR). See SSP Specification that defines the desired state of SSP.

Table Of Contents

SSP Custom Resource (CR)

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

Annotations

Pause Operator

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.

Common Templates

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

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

VNC Token Generation Service

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