Client cluster manager (shturval-cluster-manager)
About the service
| Parameter | Description |
|---|---|
| GUI name | Client Cluster Manager |
| System name (identifier) | shturval-cluster-manager |
| Cluster Assignment | Manages the life cycle of client clusters: creates, configures, and deletes them. During the initial deployment, installs platform services in the client cluster. The service itself runs in the management cluster. |
| Critical | Yes |
| Bundle | Main |
| Public repository | — (component of the Shturval platform) |
| Dependencies | shturval-cluster-manager-crds, shturval-auth, shturval-trust-manager |
| Namespace | shturval-cluster-manager |
Contents
- Review
- Architecture
- Installation / deployment
- Diagnostics
- Life cycle
- Operator parameters
- CRD/API reference
- Customization via SSP
1. Review
cluster-manager is the Shturval platform operator. From objects in cluster.shturval.tech/v1beta1 it deploys cluster system components, synchronizes state with Cluster API, and writes the summary to ClusterInfo.
From ClusterConfig, the operator installs system services (SSC, OIDC, ingress, CSI and CCM, monitoring, logging), watches Cluster API, and updates the cluster to the version in spec.releaseVersion. Parameters of the running chart release are set through ShturvalServicePatch (SSP). Helm releases from SSC objects are installed by the Service management module (shturval-services).
During the initial deployment of a client cluster, cluster-manager coordinates the installation of platform services and the application of node configurations through the Node Config (NCI) mechanism. See Node configuration management module and Node Configuration (NCI). An overview of infrastructure providers and links to the documentation for each provider are on the Providers page.
Each service comes as one or more Helm charts. Charts with CRD (*-crds) are installed separately and marked as Hidden — they are managed automatically.
The operator covers ClusterConfig, ClusterProfile, ClusterInfo, ClusterUpdateChannel, ClusterUpdateSchedule, and InfrastructureProvider. A separate process in the same chart manages the IP address pool. When the cluster registry differs from the management cluster registry, a CronJob in the client cluster fetches the catalog of available releases.
Audience and tasks
| Audience | Tasks |
|---|---|
| Platform administrator | ClusterConfig, profile, update window, cluster deletion, status conditions |
| Platform integrator | Chart, update catalog image, registry, InfrastructureProvider, CSI and CCM secrets |
Functions
| Function | What it does | Details |
|---|---|---|
ClusterConfig maintenance | Initial setup, applying manifests after SSC, and regular maintenance | After the finalizer is added, the check repeats after 1 s; if the initial setup is not finished, after 10 s; if the client cluster API is unreachable during deletion, after 30 s |
ClusterInfo | Summary of Cluster API and the client cluster | Repeats every 2 minutes. Finalizer cluster.shturval.tech/clusterinfo |
| Release update | Phases from status.update.currentVersion to spec.releaseVersion | No more than --max-concurrent-updates at once (default 5); otherwise phase Queued and a retry after 5 min. Schedule window: retry after 30 s. SSC version check: after 1 min |
ClusterUpdateChannel | Matrix of available releases | Same registry as the management cluster: a request from the process. A different registry: CronJob cluster-available-updates in the client cluster. While there is no currentVersion, retry after 30 s |
ClusterUpdateSchedule | In an open window, the controller writes the target version to ClusterConfig | The schedule is a cron expression and the updatePeriod field. When allowMinorVersion=false, the highest version within the current minor is chosen |
InfrastructureProvider | Provider record, short name ip | One object is allowed per spec.providerRef. A bad reference is checked again after 30 s. If config contains invalid JSON, ConfigValid=False and Reason: InvalidJSON are set; there is no automatic retry |
ClusterProfile | Checks secrets that hold extra manifests | Watches Secret objects labeled cluster.shturval.tech/manifest in the same Namespace |
| Webhooks | Defaults and validation for ClusterConfig, ClusterProfile, InfrastructureProvider | ENABLE_WEBHOOKS=false disables all three |
| Garbage collection | Deletes a Namespace labeled cluster.shturval.tech/garbage-collect=true when no Cluster API Cluster remains in it | While clusters remain, retry after 1 min |
| Update catalog | Image from AVAILABLE_UPDATES_IMAGE | Without this variable the manager process exits |
Triggers
| Scenario | Who starts it | Trigger | Observable effect |
|---|---|---|---|
| Desired cluster state | User or GitOps | Create or change ClusterConfig, change ClusterInfo and AuthOidcClient | Install steps, conditions on ClusterConfig |
| Update channel | Operator | ClusterConfig initialization, channel does not exist yet | ClusterUpdateChannel with the same name and Namespace, channel: stable, ownerRef to ClusterConfig |
| Cluster summary | Operator | Timer, Cluster API, change of the same-name ClusterUpdateChannel | Updated ClusterInfo.status |
| Release matrix | Operator | Channel check; the CronJob starts in the client cluster when a separate registry is used | status.availableUpdates, status.ready |
| Scheduled update | User creates ClusterUpdateSchedule | Open cron window and a ready cache | Writes spec.releaseVersion and spec.update.followSchedule |
| Running an update | User or schedule changes spec.releaseVersion | Change of version, strategy, followSchedule, automatic update annotation | status.update.phase and phase conditions |
| Profile manifests | User changes ClusterProfile or related Secret objects | Profile state check | status.extraManifestsStatus |
| Infrastructure provider | User creates InfrastructureProvider | Create or change of the resource, and a change of a Cluster API Cluster in the provider Namespace | status.ready, linkedClusters |
| Empty Namespace | Change of a Namespace with the garbage collection label | Namespace change | The Namespace is deleted when no Cluster API Cluster remains in it |
| API request check | API Server | Create or change of ClusterConfig, ClusterProfile, InfrastructureProvider | Defaults are filled in, or a disallowed change is rejected |
Operational limits
| Limit | What the administrator sees |
|---|---|
No ClusterInfo.status.baseInfo.apiEndpoint | Cluster configuration slows down. The controller keeps trying to synchronize and gradually increases the interval between attempts. Status may show the message “cluster api endpoint not ready” |
A profile with extra manifests does not have status.extraManifestsStatus.ready equal to True | InitClusterManager becomes False, reason ClusterProfileNotReady |
AVAILABLE_UPDATES_IMAGE is not set | The manager process exits at startup |
| Webhooks are on by default | A local run without a certificate requires ENABLE_WEBHOOKS=false. In the product, cert-manager issues the certificate |
controllerType is already gateway | The validating webhook rejects a change back to nginx |
Deletion of a ClusterUpdateSchedule referenced by spec.update.followSchedule | Deletion returns an error and the finalizer stays |
| The client API is unreachable, and cleanup of resources in the client cluster cannot be skipped | ClusterConfig deletion retries after 30 s. PersistentVolumesRemoved stays False, reason RemoteUnreachableWaiting |
| Cluster registry differs from the default registry | TLS of that registry is treated as insecure when the update matrix is loaded. There is no separate field for this switch |
| SSH port | The connection to the node uses port 22. Another port requires a new image version |
| SSH private key protected by a passphrase | The passphrase is not read from the Secret automatically. Such a key works only when the SSH connection step passes the password separately |
ClusterInfo lookup | Read uses the name spec.clusterName. The created object receives the name and Namespace of the ClusterConfig |
Cleanup of resources in the client cluster means deleting persistent volumes, load balancers, and other objects through that cluster’s API. If the API is unreachable, cluster-manager can continue the deletion without cleanup when at least one condition holds: the Cluster API Cluster has the annotation cluster.shturval.tech/force-delete-cluster-allowed=true, spec.deletePersistentVolumes=true is set, or the ClusterInitialized condition is not yet True. If deletePersistentVolumes=false, the controller adds the annotation cluster.shturval.tech/preserve-persistent-volumes to the Cluster API Cluster, and persistent volumes are kept when the cluster is deleted.
Infrastructure providers are marked as critical Critical (the service cannot be disabled in the platform GUI) only for environments where the management cluster was deployed with the corresponding provider: OpenStack (shturval-capos), Shturval v2 (shturval-capsm), vSphere (shturval-capvs), or oVirt (shturval-capov). If unused providers remained enabled on a previously installed platform, disable them as described in Provider instance.
Place in the management chain
ClusterConfig, ClusterProfile, ClusterUpdateSchedule, and InfrastructureProvider reach the API Server through the platform, Helm, or kubectl. Controllers process them and create or update Cluster API objects and ShturvalServiceConfig. CronJob cluster-available-updates appears in the client cluster only when the cluster uses a separate registry.
Key characteristics
| Characteristic | Value |
|---|---|
| API group / version | cluster.shturval.tech / v1beta1 |
| Kustomize install Namespace | shturval-cluster-manager |
| Helm Namespace | Release Namespace. In the product this is often the same shturval-cluster-manager |
| Metrics | Flag --metrics-bind-address, off by default (0), HTTPS on (--metrics-secure=true). Helm passes 0.0.0.0:8443 |
| Probes | --health-probe-bind-address=:8081 |
| Webhooks | Chart port 9443. TLS directory --webhook-cert-path |
| Pod Security | runAsNonRoot, seccompProfile: RuntimeDefault, container without privilege. The process in the image runs as user 65532 |
| Manager image | r.shturval.tech/shturval/cluster-manager. If the image tag is not set, the chart appVersion is used |
| Update catalog image | r.shturval.tech/shturval/available-updates, the same default tag. Variable AVAILABLE_UPDATES_IMAGE |
| HTTP/2 | Off (--enable-http2=false) |
| Container command | /cluster-manager |
| Default registry for install steps | r.shturval.tech |
Components
| Component | Type | Scope | Purpose |
|---|---|---|---|
| Manager | Deployment | Operator Namespace | Container /cluster-manager |
| IP pool controller | Deployment | Operator Namespace | Second Deployment of the same chart |
| Webhook | Service | Operator Namespace | Traffic to the webhook server, port 9443 |
| CRD | CustomResourceDefinition | Cluster | Six Kinds, all Namespaced. Short name only on InfrastructureProvider: ip |
| RBAC | ClusterRole, bindings, ServiceAccount | Cluster and Namespace | Manager permissions |
| Certificates | cert-manager objects | Operator Namespace | TLS for the webhook and metrics |
cluster-available-updates | CronJob and ConfigMap | Namespace shturval-cluster-manager of the client cluster | Only when the registry differs from the management registry |
2. Architecture
Manifests applied with kubectl or Helm reach the API Server. Deployment cluster-manager runs in the operator Namespace. RBAC (ClusterRole, Binding, and ServiceAccount) gives the Pod access to the API. cert-manager issues certificates for webhooks and HTTPS metrics. CronJob cluster-available-updates is created in the client cluster only when that cluster uses a separate registry.
| Manager Pod property | Value |
|---|---|
| Command | /cluster-manager |
| Probes | port 8081 |
| Metrics in the chart | 0.0.0.0:8443, HTTPS |
| Webhook | port 9443 |
| User | non-root, 65532 in the image |
| Required environment | AVAILABLE_UPDATES_IMAGE |
Object relationships
While ClusterConfig is processed, the controller creates ClusterUpdateChannel with the same name and Namespace, adds an ownerRef, creates ClusterInfo, checks the ClusterProfile status, and watches changes of AuthOidcClient. The ClusterUpdateSchedule controller writes spec.releaseVersion and spec.update.followSchedule to ClusterConfig. A change of these fields or of the strategy starts the release update. The ClusterInfo controller reads data from the Cluster API Cluster and the release list from the channel cache. The InfrastructureProvider controller watches Cluster API Cluster objects in the provider Namespace and adds a finalizer to the object from spec.providerRef.
| Relationship | What to watch |
|---|---|
ClusterConfig → ClusterInfo | Cluster summary. Lookup by spec.clusterName; the created object is named as the ClusterConfig |
ClusterConfig → ClusterUpdateChannel | Channel stable, ownerRef |
ClusterConfig → ClusterProfile | Initialization waits for extraManifestsStatus.ready |
ClusterUpdateSchedule → ClusterConfig | In the window, the version and the schedule name are written to followSchedule |
InfrastructureProvider → providerRef object | Finalizer infrastructureprovider.cluster.shturval.tech/native-finalizer |
| Channel when a separate registry is used | CronJob and ConfigMap cluster-available-updates |
3. Installation / deployment
The release consists of two charts: the CRD chart and the application chart. The Namespace is set at install time. The product uses shturval-cluster-manager.
The application chart creates the manager Deployment with command /cluster-manager and a separate Deployment for the IP pool controller. The manager image is r.shturval.tech/shturval/cluster-manager; the default tag equals the chart appVersion. The update catalog job image is r.shturval.tech/shturval/available-updates.
The process does not start without AVAILABLE_UPDATES_IMAGE. The chart builds the variable from clusterManager.availableUpdates.image and appVersion. If AVAILABLE_UPDATES_IMAGE_PULL_SECRET is set, POD_NAMESPACE is also required (in the chart this is the Pod Namespace). An empty catalog schedule is replaced with 0 */1 * * *, and an empty update schedule period with 10m. Parameters of the running release are changed through SSP. Keys are listed in section 6.
Webhooks are on by default. cert-manager issues the certificates. To disable all three webhooks, set ENABLE_WEBHOOKS=false.
After installation, the desired state is set by objects, not by chart arguments. The minimum order for a new cluster is ClusterProfile (when custom manifests or shared settings are needed), then ClusterConfig. The operator creates ClusterInfo and ClusterUpdateChannel itself.
Secrets for CSI, CCM, and SSH
ClusterConfig references secrets through providerSecretRef in the CSI and CCM settings.
| Provider | What the Secret must contain |
|---|---|
capos CSI | key clouds.yaml |
capyc CCM | key YandexCloudSAKey |
capov, capvs, capyc CSI and CSI capvcd | key data (YAML). For capvcd, the YAML is expected to contain vcd and auth sections |
capcd CCM | Data is not empty. Values are taken from annotations shturval.tech/site, org, ovdc, network, vip-subnet |
Example Secret with the data key:
apiVersion: v1
kind: Secret
metadata:
name: my-provider-credentials
namespace: <namespace-clusterconfig>
type: Opaque
stringData:
data: |
...
The Secret for SSH access to a node is a separate object. Do not confuse it with providerSecretRef:
apiVersion: v1
kind: Secret
metadata:
name: node-ssh-access
namespace: <operator-namespace>
type: Opaque
stringData:
sshUser: "ubuntu"
sshKey: |
-----BEGIN OPENSSH PRIVATE KEY-----
...
-----END OPENSSH PRIVATE KEY-----
A private key protected by a passphrase is not supported automatically. It works only when the password is passed separately on the SSH connection step. The SSH port is fixed: 22.
Secrets for extra profile manifests are labeled cluster.shturval.tech/manifest and live in the profile Namespace.
Dependencies between services
Cluster-manager respects the installation order. Main dependencies:
| Service | Depends on |
|---|---|
shturval-capi | shturval-capi-crds, shturval-local-csi, shturval-ingress-controller |
shturval-capsm | shturval-capsm-crds, shturval-cert-manager |
4. Diagnostics
To diagnose, check the state of the objects and their Conditions.
| What to check | Expected |
|---|---|
| Manager Deployment | Container /cluster-manager in the release Namespace, probes on port 8081 |
| Metrics | HTTPS 0.0.0.0:8443, when the chart is installed |
ClusterConfig.status.conditions | Install-step conditions. A typical successful step: Status: True, Reason: Success |
ClusterConfig.status.update | ready, currentVersion, phase: Complete, Queued, Updating, Paused |
ClusterInfo.status.ready | Overall readiness. The root of ClusterInfo has no metav1.Condition list |
ClusterUpdateChannel.status.ready | The matrix was read; the list is in availableUpdates |
InfrastructureProvider.status.ready | The field becomes true when ProviderRefReady and ConfigValid are both True |
| CronJob | cluster-available-updates is created only when a separate registry is used. The ConfigMap of the same name is in Namespace shturval-cluster-manager of the client cluster |
Retry intervals:
| Situation | When the next check runs |
|---|---|
The finalizer was just set on ClusterConfig or InfrastructureProvider | 1 s |
| The initial setup is not finished yet | 10 s |
| The client API is unreachable during deletion | 30 s |
Deletion of the Cluster API Cluster failed | 1 s |
There are no events that require an immediate ClusterInfo update | 2 min |
| The update queue is full | 5 min |
| The schedule window is closed, or the update is paused | 30 s |
The base SSC version does not yet match the target, the channel is not ready, or there is no currentVersion | 30 s when the channel is not ready or there is no currentVersion; 1 min when the base SSC version does not yet match the target |
| The channel has successfully received the version list | On the cron schedule, and no later than 60 min |
ClusterUpdateSchedule outside a window event | scheduleSyncPeriod, 10 min by default |
The Namespace still has a Cluster API Cluster | 1 min |
ClusterConfig conditions
| Condition | When True | When False |
|---|---|---|
AuthDeployed | The auth installer has finished | Auth step error |
ClusterManagerDeployed | cluster-manager is installed during the initial installation of the management cluster | Installer error |
CcmInstalled | CCM is deployed or not required | CCM deployment error |
CertificatesInstalled | Certificates are applied | Certificate step error |
ClusterInitialized | The cluster is initialized | The initial setup is not finished yet |
CsiDeployed | All CSI installs succeeded | InstallCsiFailed, PartialCsiDeployed |
DefaultLogsCollectorResourcesInstalled | Log collector resources are created | Step error |
EnabledServicesDeployed | SSC of enabled services are deployed | Partial errors or waiting |
IngressVipConfigured | Ingress or VIP is applied, Reason: Success | Ingress step error |
GatewayConfigured | Gateway API is Programmed, Reason: Success | EnsureGatewayFailed, GatewayProgrammedCheckFailed, GatewayNotProgrammed |
IngressGatewayMigrated | Migration phase Completed, Reason: Success | Intermediate phases and migration errors |
InitClusterManager | The manager context is built | ClusterProfileNotReady, ClusterApiEndpointIsNotConfigured, ClusterDeletionFailed |
InitialNciDeployed | The initial node configuration (NCI) is applied | NCI step error |
KubeApiOidcConfigured | kube-api OIDC is configured | Step error |
MonitoringResourcesUpdated | Monitoring is updated | Monitoring step error |
OidcClientServiceConfigured | OIDC service configs are updated | Step error |
OidcClientsReady | OIDC clients are ready | OIDC preparation error |
ServicesAutoscaled | Autoscaling is applied | Step error |
SscContextPrepared | SSC context for the log collector is ready | SSC preparation error |
PostSscCustomManifestDeployed | Manifests after SSC are applied | Manifest apply error |
ResourcesUninstalled | Resources are removed on deletion | Deletion step error |
LoadBalancersRemoved | Load balancers are removed | Cleanup step error |
PlatformAdminGroupInstalled | The platform administrator group is installed | Step error |
TenantResourcesInstalled | Tenant resources are installed | Step error |
PersistentVolumesRemoved | Volumes are handled according to the deletion policy | RemoteUnreachableWaiting when the client API is unreachable and skipping is not allowed |
Ingress migration phases in status.systemServicesConfigStatus.ingressMigration: Preparing, AwaitingCutover, CuttingOver, Verifying, Completed, Failed. Internal migration scenario identifiers: A1, A2, A3.
Update conditions
Conditions live in status.update.conditions. After a phase succeeds, that phase condition becomes True and Reason matches the condition type.
| Condition | When True | When False |
|---|---|---|
VersionIsCorrect | Phases are built, or the cluster is already on spec.releaseVersion | AvailableUpdatesNotReady, SpecVersionNotAvailable, BuildUpdatePhasesErr |
UpdatePaused | The window is closed and pauseIfUpdatePeriodExceed is enabled. Message: the schedule window is closed | False when there is no schedule or the window is open. When the schedule resumes, Reason: ScheduleWindowOpen |
DefineClusterVersion | The version from base SSC matches the requested version | ClusterVersionNotConverged |
TriggerUpdate | The schedule wrote the version to ClusterConfig | AvailableUpdatesNotReady, PatchClusterConfigError |
The other phase conditions become True when the corresponding phase finishes without an error. Names: ControllerUpdated, UpdateStrategyAvailable, PostInitUpdated, PostInitUpdated_2_15_0, CRDUpdated, PreKubeUpdated, PreKubeUpdated_2_14_0, KubeUpdated, StdUpdated, PreSscUninstall, SystemServicesUninstall, PreSystemServiceUpdated, SystemServicesUpdated, ValidateKubeApiVersion, PreSSCUpdate_2_13_1, PreSSCUpdate_2_14_0, PreSSCUpdate_2_15_0, PostSSCUpdate, PostSSCUpdate_2_14_0, PostSSCUpdate_2_14_1, PostSSCUpdate_2_15_0, PatchClientClusterServices, PatchClientClusterServices_2_14_0, PatchClientClusterServices_2_15_0.
The status.update.phase field shows the update stage: Queued — the update is waiting to start or for a free slot; Updating — the update is running; Paused — the update is paused; Complete — the target version is installed and ready=true. Phases Updating and Paused occupy a slot in the parallel update limit.
During the Kubernetes update phase, a large nci.json (threshold 10240) is moved out of the main content.
ClusterProfile readiness
The profile has no separate Condition list. If no extra manifests are set, status.extraManifestsStatus.ready becomes True. Otherwise readiness is determined by the secret checks for the management cluster and the client cluster: valid or incorrect.
ClusterInfo readiness
There are no metav1.Condition entries at the root. Watch the nested blocks: baseInfo, cluster, clusterDeployment, update, ready. The field for selection is .status.baseInfo.clusterType. Service progress does not become complete until EnabledServicesDeployed is True on ClusterConfig.
ClusterUpdateChannel readiness
There are no separate Conditions. Readiness is status.ready. While currentVersion is empty, the release list is not filled.
ClusterUpdateSchedule window
The TriggerUpdate condition is in the update conditions table. Window bounds: status.nextUpdateStart, status.nextUpdateEnd. The version written to the cluster: status.nextUpdateVersion.
InfrastructureProvider conditions
| Condition | When True | When False |
|---|---|---|
ProviderRefReady | The object is found, is not being deleted, and this InfrastructureProvider owns the reference. Reason: ProviderFound | NotFound, Deleting, OwnerLookupFailed, DuplicateProviderRef, FinalizerPatchFailed |
ConfigValid | JSON is empty or parses. Reason: Valid | InvalidJSON |
DeleteBlocked | Deletion is blocked: ErrorFindingLinkedClusters, LinkedClustersFound, ErrorResolvingProviderRef, NativeFinalizerPatchFailed | On a successful deletion the finalizers are removed. This condition does not mean deletion is allowed |
status.ready is true when both ProviderRefReady and ConfigValid are True.
Typical situations
| Symptom | Cause | What to do |
|---|---|---|
| The manager Pod exits immediately | No AVAILABLE_UPDATES_IMAGE | Set the catalog image in the chart parameters |
InitClusterManager=False, ClusterApiEndpointIsNotConfigured | ClusterInfo.status.baseInfo has no apiEndpoint yet | Wait until the API address appears on the Cluster API Cluster and is written to ClusterInfo. Until then, the controller keeps trying to synchronize and gradually increases the interval between attempts |
InitClusterManager=False, ClusterProfileNotReady | A profile with manifests does not have ready True | Check secrets labeled cluster.shturval.tech/manifest and extraManifestsStatus |
Changing ingress from gateway to nginx is rejected | The webhook forbids the reverse transition | Leave gateway |
status.update.phase=Queued longer than a normal step | The number of updates in Updating and Paused reached the limit (default 5) | Wait up to 5 min for a slot to free |
VersionIsCorrect=False, SpecVersionNotAvailable | spec.releaseVersion is not in the channel cache | Wait for ClusterUpdateChannel.status.ready and for the version in availableUpdates |
Update is Paused | The schedule window is closed and pauseIfUpdatePeriodExceed=true | Wait for the next window. The check repeats every 30 s |
ClusterConfig deletion is stuck on RemoteUnreachableWaiting | The client API is unreachable, and cleanup of resources in the client cluster cannot be skipped | Restore API access or meet a skip condition: annotation cluster.shturval.tech/force-delete-cluster-allowed=true, or deletePersistentVolumes=true, or ClusterInitialized is not yet True |
ClusterUpdateSchedule is not deleted | spec.update.followSchedule equals the schedule name | Remove the reference from ClusterConfig first |
InfrastructureProvider is not deleted, DeleteBlocked | Linked clusters exist, or the finalizer on the provider object is not removed | Remove cluster references. Retry after 30 s |
ConfigValid=False, InvalidJSON | spec.config is set and is not a JSON object | Fix the JSON. There is no retry by itself |
| No catalog CronJob | The cluster registry matches the management registry | The manager process requests the matrix; the CronJob is not created in this case |
Channel ready=false when a separate registry is used | No ConfigMap, the data is not ready yet, the data belongs to another currentVersion, or the data is older than the cron period | Inspect ConfigMap cluster-available-updates in Namespace shturval-cluster-manager of the client cluster |
Service status
| What to check | Command |
|---|---|
| All SSCs in the cluster | kubectl get shturvalserviceconfig |
| All SSPs in the cluster | kubectl get shturvalservicepatch |
| Specific SSC status | kubectl describe shturvalserviceconfig <name> |
| CAPSM Pods | kubectl get pods -n shturval-capsm |
| CAPI Pods | kubectl get pods -n capi-system |
| Monitoring Pods | kubectl get pods -n victoria-metrics |
Typical problems
| Symptom | Possible reason | Action |
|---|---|---|
| The service Pod does not start | Incorrect parameters in SSP | Check kubectl describe shturvalservicepatch <name> and the Pod logs |
| SSC is constantly updated | SSP conflict with the platform SSC | Make sure the SSP does not overwrite fields that the platform updates |
| CAPI provider is not ready | CRDs are not installed | Check the status of the *-crds chart and dependencies |
| The service was disabled unexpectedly | A platform update changed mode | Check the SSC and the platform update history |
CAPSM diagnostics
A detailed guide to diagnosing the Shturval v2 provider is in shturval-capsm §4.
5. Life cycle
The user first creates ClusterProfile, then ClusterConfig. The controller checks the profile secrets, creates ClusterInfo and ClusterUpdateChannel with channel stable, obtains the API address, and starts the cluster installation. The ClusterInfo controller collects the current cluster state. The channel controller obtains the list of available releases directly or from the ConfigMap of the client CronJob. A change of spec.releaseVersion starts the release update; progress is reflected in status.update.
| Step | Resource | Action |
|---|---|---|
| 1 | ClusterProfile | The controller checks secrets by selectors and fills status.extraManifestsStatus and ready |
| 2 | ClusterConfig | If the profile ready is not True, the controller sets InitClusterManager=False |
| 3 | ClusterConfig | The controller creates ClusterInfo and ClusterUpdateChannel if they do not exist yet |
| 4 | ClusterConfig | After a successful check, the controller copies secret references into status.extraManifestsStatus |
| 5 | ClusterConfig | Step PostSscCustomManifestDeployed applies the phase manifests |
| 6 | ClusterInfo | The controller writes the summary from Cluster API and, after a ready Control Plane machine appears, also data from the client cluster |
| 7 | ClusterUpdateChannel | The controller fills the list of available releases |
| 8 | ClusterConfig | After spec.releaseVersion changes, the controller updates status.update.phase |
Processing ClusterConfig
ClusterConfig defines the cluster configuration. From this object the controller installs system components and keeps them in the required state. The controller adds the finalizer clusterconfig.cluster.shturval.tech/finalizer so the object cannot be deleted before the required cleanup finishes.
When a ClusterConfig is created, the controller first adds the finalizer and, after 1 second, starts preparing the cluster. It checks the profile and the API address, creates ClusterInfo and the update channel, runs the initial install steps, applies the manifests after SSC, and then moves to regular cluster maintenance. If an initial step is not finished yet, the next attempt runs after 10 seconds.
| Phase | Behavior |
|---|---|
| Create | The controller adds the finalizer, checks the profile and the API address, creates ClusterInfo and the update channel, runs the initial steps, applies the manifests after SSC, and starts regular maintenance. The initial deployment of the management cluster uses a different set of steps, and the release update controller does not start |
| Configuration change | The controller compares the actual cluster state with ClusterConfig again. A change of releaseVersion, the update strategy, or followSchedule also starts the release update controller |
| Delete | The controller cleans up resources in the client cluster, deletes the Cluster API Cluster, and only then removes the finalizer. Cleanup of the client cluster can be skipped in the cases defined below |
| Conditions | Table in section 4 |
Another pass over ClusterConfig also starts when the shturval-log-collector service status changes in ClusterInfo and when Ready or ClientHash changes on AuthOidcClient.
Cluster deletion
By default, before the cluster is deleted, the controller deletes persistent volumes, load balancers, and other related resources through the client cluster API. If the API is unreachable, deletion pauses: the controller writes PersistentVolumesRemoved=False with reason RemoteUnreachableWaiting and retries after 30 seconds.
Cleanup through the client cluster API can be skipped when at least one condition holds:
- the Cluster API
Clusterhas the annotationcluster.shturval.tech/force-delete-cluster-allowed=true; ClusterConfighasspec.deletePersistentVolumes=true;- the
ClusterInitializedcondition is not yetTrue.
If spec.deletePersistentVolumes=false, the controller adds the annotation cluster.shturval.tech/preserve-persistent-volumes to the Cluster API Cluster so that persistent volumes are kept.
| Step | Result in status |
|---|---|
| Client cluster cleanup can be skipped | PersistentVolumesRemoved and LoadBalancersRemoved become True with the reason of the rule that applied. The other cleanup steps in the client cluster are not run |
| The client cluster API is unreachable, and skipping cleanup is not allowed | PersistentVolumesRemoved=False, Reason: RemoteUnreachableWaiting; the next attempt runs after 30 seconds |
The Cluster API Cluster could not be deleted | InitClusterManager=False, Reason: ClusterDeletionFailed; the next attempt runs after 1 second |
| Deletion is finished | The controller removes the finalizer and, after 1 second, performs a final check |
Processing ClusterInfo
ClusterInfo holds the summary of the cluster state. The controller collects data about infrastructure, nodes, system services, and the update, then writes it to ClusterInfo.status. The object is protected by the finalizer cluster.shturval.tech/clusterinfo.
First the controller reads base information from the Cluster API Cluster of the same name, adds the available update strategies, and the release list from the update channel cache. After at least one ready Control Plane machine appears, it also collects services, Pods, and NCI from the client cluster.
If the Cluster API Cluster does not exist yet, the controller finishes the pass without an error. In normal operation the data is refreshed every 2 minutes and when related objects change.
| Phase | Behavior |
|---|---|
| Create | The controller adds the finalizer, then fills the status with information from Cluster API |
| Update | The status is recalculated every 2 minutes and when the Cluster API Cluster, a MachineDeployment, or the same-name ClusterUpdateChannel changes |
| Delete | The controller removes the finalizer |
| Readiness | There is no separate Conditions list. The overall cluster state is status.ready |
The InPlace strategy is always available. RollingUpdate is added when the cluster has capsmv2 machines. Gateway mode is taken from the ingress controller type in ClusterConfig; for the management cluster it is also included when critical service readiness is calculated.
Processing ClusterProfile
ClusterProfile holds shared cluster settings and references to secrets with extra manifests. The controller checks those secrets and writes the result to status.extraManifestsStatus. The ClusterConfig controller then uses this status when installing the cluster.
If no extra manifests are set, the profile is ready. Otherwise the controller checks the manifest secrets for the management cluster and the client cluster. It watches only Secret objects labeled cluster.shturval.tech/manifest in the same Namespace as the profile.
| Phase | Behavior |
|---|---|
| Create and change | If no extra manifests are set, extraManifestsStatus.ready becomes True. Otherwise the controller checks secrets for the management cluster and the client cluster |
| Delete | The controller removes the finalizer clusterprofile.cluster.shturval.tech/finalizer if it is present. This controller does not add that finalizer, so its absence does not block deletion |
| Readiness | There is no separate Conditions list. The check result is extraManifestsStatus.ready |
If the cluster-manager role cannot work with the resources listed in the profile, the secret check fails. How to grant the required permissions is described in Extending cluster-manager permissions.
Release update
The release update controller moves the cluster from the current version status.update.currentVersion to the target version spec.releaseVersion. It does not start during the initial deployment of the management cluster and does not process a ClusterConfig that is being deleted. The update has no finalizer of its own.
When the Shturval platform is updated, cluster-manager updates SSC with new chart versions. SSP objects are left unchanged, but the resulting values can change if the new chart version added or renamed fields.
If currentVersion is empty, the controller determines the current version from the client cluster. On an error it retries after 1 minute. If the current and target versions match, and the update is not running and is not paused, the controller sets phase=Complete and ready=true.
If the versions differ, the update first moves to Queued. The controller checks that the target version is in the update channel cache and that a free slot is available within the parallel update limit. If every slot is taken, the cluster stays in the queue and the next check runs after 5 minutes. When a slot is free, the update moves to Updating.
| Phase | Spec fields | What appears in status |
|---|---|---|
| Start | spec.releaseVersion differs from status.update.currentVersion | ready=false, conditions of the previous update are cleared, phase=Queued |
| Waiting for a free slot | By default no more than 5 clusters are updated at once in Updating or Paused | The cluster stays in Queued |
| Update | The target version is in the update channel cache | phase=Updating; as phases complete, their conditions become True in order |
| Pause | followSchedule is set, the update window is closed, and pauseIfUpdatePeriodExceed is enabled | phase=Paused, UpdatePaused=True |
| Finish | The base SSC version matches the target | ready=true, phase=Complete, VersionIsCorrect=True |
On each pass the controller selects the next phase whose condition is not yet True. Before starting it, the controller checks the update window again. If the window has closed and pauseIfUpdatePeriodExceed is enabled, the update moves to Paused. While the window stays closed, the check repeats every 30 seconds.
Phases run in order until the base SSC version matches the target. If the versions still differ after the phases, the controller sets DefineClusterVersion=False with reason ClusterVersionNotConverged and checks again after 1 minute.
The ClusterUpdateChannel controller builds the available-version cache. The ClusterInfo, schedule, and release update controllers use that cache. If the target version is not in the cache, the controller sets VersionIsCorrect=False with reason AvailableUpdatesNotReady or SpecVersionNotAvailable and checks again after 1 minute. When the current version already matches the target, the cache is not checked.
Processing ClusterUpdateChannel
ClusterUpdateChannel stores the current cluster version and the available updates. The controller obtains the version list, writes it to status.availableUpdates, and keeps it in an internal cache. The ClusterInfo, schedule, and release update controllers use this data. The object has no finalizer; when it is deleted or missing, the matching cache entry is removed.
How the list is obtained depends on the cluster registry:
- if the cluster uses the same registry as the management cluster, cluster-manager requests the update matrix itself. Leftover CronJob and ConfigMap
cluster-available-updatesobjects in the client cluster are deleted; - if the registries differ, the controller creates CronJob
cluster-available-updatesin the client cluster, with the image fromAVAILABLE_UPDATES_IMAGEand the schedule fromAVAILABLE_UPDATES_CRON. The job result is read from the ConfigMap of the same name in Namespaceshturval-cluster-manager. A separate one-off Job is not created.
While currentVersion is empty, the controller checks again after 30 seconds. If the matrix request fails, it clears the status and the cache and also retries after 30 seconds.
With a separate registry, the channel is not ready when the ConfigMap is missing, its data is not ready yet, the data belongs to another currentVersion, or the data is older than the CronJob period. In each of these cases the status and the cache are cleared, and the check repeats after 30 seconds.
| Phase | Behavior |
|---|---|
| Create | The object is created while ClusterConfig is processed; the default channel is stable |
| Update | The controller copies currentVersion, then obtains the update matrix directly or from the client cluster ConfigMap |
| Successful check | Status receives lastChecked, ready=true, and the list of available versions. The next check follows the CronJob schedule, and no later than 60 minutes |
| Delete | This channel’s entry is removed from the internal cache |
| Readiness | There is no separate Conditions list. The result is status.ready |
If AVAILABLE_UPDATES_CRON is not set, the schedule 0 */1 * * * is used.
Processing ClusterUpdateSchedule
ClusterUpdateSchedule sets the schedule and the length of the update window. When the window opens, the controller selects the target version and writes spec.releaseVersion and spec.update.followSchedule on ClusterConfig, which starts the cluster update.
The schedule and ClusterConfig must be in the same Namespace, but their names may differ. The object is protected by the finalizer clusterupdateschedule.cluster.shturval.tech/finalizer. A periodic check runs at the SCHEDULE_SYNC_PERIOD interval, every 10 minutes by default.
| Phase | Spec fields | What appears in status |
|---|---|---|
| Create | schedule, updatePeriod, pauseIfUpdatePeriodExceed, allowMinorVersion | The controller adds the finalizer and calculates the bounds of the next window |
| Window open, cluster ready | The controller selects a version | status.nextUpdateVersion receives the selected version, and ClusterConfig receives releaseVersion and followSchedule; TriggerUpdate becomes True |
| Window closed | — | nextUpdateStart and nextUpdateEnd receive the bounds of the next window |
| Delete while the reference is active | ClusterConfig.spec.update.followSchedule contains the schedule name | Deletion is blocked and the finalizer stays |
In an open window the controller first checks the cluster state. If the update was paused by this schedule (Ready=false and UpdatePaused=True), it resumes: the pause condition becomes False with reason ScheduleWindowOpen, and the phase changes to Updating. If the cluster is not ready for another reason, the controller waits until it is ready.
The target version is chosen from the update channel cache:
- with
allowMinorVersion=true, the highest available version by semantic versioning; - with
allowMinorVersion=false, the highest version with the same major and minor asstatus.update.currentVersion.
If the cache is not ready yet, TriggerUpdate becomes False with reason AvailableUpdatesNotReady. If there is no suitable version, the nextUpdate* fields are cleared.
The schedule is a five-field cron expression. The object can be deleted only after ClusterConfig.spec.update.followSchedule no longer references it; the controller then removes the finalizer.
Processing InfrastructureProvider
InfrastructureProvider registers a Cluster API infrastructure provider object in the platform. The controller checks spec.providerRef, protects the referenced object from being deleted too early, and builds the list of clusters that use this provider.
InfrastructureProvider receives the finalizer infrastructureprovider.cluster.shturval.tech/finalizer, and the object from spec.providerRef receives infrastructureprovider.cluster.shturval.tech/native-finalizer. After adding its own finalizer, the controller checks again after 1 second.
| Phase | Behavior |
|---|---|
| Create | The controller adds the finalizer, finds the object from providerRef, protects it with a separate finalizer, and writes the UID to status.providerRefUID |
| Update | The controller checks the reference, the JSON in spec.config, the templates, and the list of linked clusters again. providerRef cannot be changed: the webhook rejects that change |
| Delete | If there are no linked clusters, the controller removes the finalizer from the provider object, then from InfrastructureProvider |
| Conditions | Table in section 4 |
If the object from providerRef is not found or the reference is invalid, the controller sets ProviderRefReady=False and checks again after 30 seconds. If spec.config is set but is not a JSON object, ConfigValid=False is set; no automatic retry is scheduled in that case. When ProviderRefReady and ConfigValid are both True, the provider is ready: the controller fills the supported platform versions and the list of linked clusters.
Only one InfrastructureProvider can reference a given provider object. Uniqueness is the combination of apiVersion, kind, namespace, and name. Linked clusters are found by the provider reference on the InfraCluster object; for capov, OVirtMachine objects are used. An error while searching for OVirtMachine is written to the log and does not stop processing of the other data.
Deletion is blocked if clusters use the provider or if the search for them failed. In that case DeleteBlocked becomes True, and the check repeats after 30 seconds.
Allowed spec.type values: capbd, capos, capov, capsmv2, capvs, capcd, capyc. For capsmv2, spec.config may be omitted.
Deleting empty Namespaces
The garbage collection controller deletes a Namespace that no longer contains a Cluster API Cluster. This clears the Namespace automatically after the last cluster is deleted.
The controller handles only changes of existing Namespaces labeled cluster.shturval.tech/garbage-collect=true. Creating or deleting a Namespace does not start this check. If the Namespace still has at least one Cluster API Cluster, the controller checks again after 1 minute. When no such objects remain, the Namespace is deleted.
This operation does not use a finalizer.
Critical services
Services with the Critical flag (for example, the provider the management cluster was deployed with) are restarted by cluster-manager automatically on failure. Deleting the Pod manually to restart it is acceptable.
6. Operator parameters
Operator parameters are set in the chart values.yaml and in container environment variables. A running release is changed through SSP.
- SSC objects are created and updated by the platform during updates; do not edit SSC manually — changes may be overwritten.
- For customization, use ShturvalServicePatch (SSP), which overlays SSC.
| Parameter | Default | Where it goes |
|---|---|---|
| Manager image | r.shturval.tech/shturval/cluster-manager, the tag is the chart appVersion | Deployment /cluster-manager |
clusterManager.availableUpdates.image | r.shturval.tech/shturval/available-updates and the same tag | AVAILABLE_UPDATES_IMAGE. If the value is empty, the process does not start |
clusterManager.availableUpdatesCronSchedule | 0 */1 * * * | AVAILABLE_UPDATES_CRON. An empty variable is replaced with the same expression |
scheduleSyncPeriod | 10m | SCHEDULE_SYNC_PERIOD. An empty value is replaced with 10m |
AVAILABLE_UPDATES_IMAGE_PULL_SECRET | not set | Name of the pull secret for the catalog image. If set, POD_NAMESPACE is required |
POD_NAMESPACE | Pod Namespace | Namespace of the pull secret |
KUBERNETES_CLUSTER_DOMAIN | set by the chart | Deployment environment variable |
| Webhook port | 9443 | Webhook Service |
| Metrics address in the chart | 0.0.0.0:8443 | --metrics-bind-address. Metrics HTTPS is on |
ENABLE_WEBHOOKS | not false | The value false disables registration of the ClusterConfig, ClusterProfile, and InfrastructureProvider webhooks |
The chart has a global values file. The install description does not list the specific keys of that file: the values that landed in the release are the ones in effect.
Process flags that the chart does not expose as a separate values key by default, but that change observable behavior when they are set on the container:
| Flag | Default | Effect |
|---|---|---|
--max-concurrent-updates | 5 | How many clusters can be in Updating or Paused |
--enable-http2 | false | HTTP/2 is off |
--health-probe-bind-address | :8081 | Probes |
--metrics-secure | true | Metrics over HTTPS |
--acme-verify-timeout | 1m | TLS verification timeout for ACME on the certificate step |
-zap-log-level | zap level | debug or info |
7. CRD/API reference
All six CRDs belong to group cluster.shturval.tech, version v1beta1, and are Namespaced. The short name ip is set only for InfrastructureProvider.
The schema of ShturvalServiceConfig and ShturvalServicePatch, including modes auto, manual, and absent, is described on the Service management module (shturval-services) page.
ClusterConfig
Short name is not set. The plural resource name is clusterconfigs.
spec
The main fields are below. Nested service, NTP, registry, and Vault fields belong to systemServicesConfig, systemRegistryConfig, and ntpConfig.
| Field | Type | Required | Description |
|---|---|---|---|
clusterName | string | Yes | Target cluster name |
clusterProfileName | string | No | Profile. An empty value leads to the default profile |
clusterType | enum platform, client | No | Default client |
secure | bool | No | Secure mode |
deployKeepAlived | bool | No | Enables a virtual IP address for the Kubernetes API. In the manifest the field is named deployKeepAlived |
systemServicesConfig | object | Yes | Services, ingress, CSI, CCM, monitoring, logging |
releaseVersion | string | No | Shturval release version |
systemRegistry | string | No | Registry, the previous way to set it |
systemRegistryConfig | object | No | Registry, the structured way to set it |
license | string | Yes | License token |
ntpConfig | object | No | NTP and time zone |
deletePersistentVolumes | bool | No | Delete PVs before the cluster is deleted. When false, the Cluster API Cluster receives the annotation cluster.shturval.tech/preserve-persistent-volumes |
update.updateStrategy | enum InPlace, RollingUpdate | No | Default InPlace |
update.followSchedule | string, pointer | No | Name of the ClusterUpdateSchedule that started the update. Empty means a manual start |
systemServicesConfig.ingress.controllerType | enum nginx, gateway | No | Default nginx. The webhook reads an empty value as nginx. A change from gateway back to nginx is rejected |
systemServicesConfig.ingress.vaultConfig | object | No | Vault PKI for ingress |
CSI and CCM secrets are set through providerSecretRef. Key layout is in section 3.
status
| Field | Type | Description |
|---|---|---|
conditions | Condition list | Install-step conditions. Table in section 4 |
extraManifestsStatus | object | Copy of profile manifests for installation after SSC |
controlplaneEndpoint | string | API address |
controlplaneEndpointIP | string | IP address calculated from the API address |
kubeVersion | string | Kubernetes version |
oidcClientsHash | map | OIDC client hashes |
systemServicesConfigStatus | object | Mirror of monitoring, logging, and ingress URLs, ingress controller type, and migration phases |
update | object | ready, currentVersion, phase (Complete, Queued, Updating, Paused), pipeline conditions |
status.update.conditions are in section 4.
Finalizer: clusterconfig.cluster.shturval.tech/finalizer.
ClusterProfile
Short name is not set. The plural resource name is clusterprofiles.
spec
| Field | Description |
|---|---|
kubeadmControlPlaneConfiguration | kubeadm Control Plane settings |
kubeletConfiguration | Kubelet |
clusterAPIConfiguration | MachineDeployment timeouts |
repository | Images, the previous way to set them |
repositoryConfig | Images, the structured way to set them |
license | Platform license |
ntpServers | NTP servers |
time_zone | Time zone |
monitoringEndpoint | External monitoring address |
loggingEndpoint | External address of the logging system |
customManifests | Phases and selectors of secrets that hold manifest templates |
status
| Field | Description |
|---|---|
extraManifestsStatus.manifestsStatus | Per phase: platform and client secret statuses |
extraManifestsStatus.ready | Overall readiness. Secret values: valid or incorrect |
The finalizer clusterprofile.cluster.shturval.tech/finalizer is defined on the type. Handling does not add it and only removes it on deletion.
ClusterInfo
Short name is not set. The plural resource name is clusterinfoes.
spec
| Field | Required | Description |
|---|---|---|
clusterName | Yes | Cluster name |
status
| Field | Description |
|---|---|
baseInfo | API address, cluster type, network, pause, provider |
cluster | Cluster API phase, Control Plane and worker summary |
workersGroups | Worker node groups |
machineGroups | Machine groups |
systemServices | SSC services and ingress statuses |
clusterDeployment | Stages: resources, infrastructure, Control Plane, nodes, services, ready |
update | releaseVersion, availableUpdates, availableStrategies, updater, NCI, kube, and service stages, nested ready |
pods | Pod summary |
license | Worker CPU summary |
ready | Overall readiness, StatusTrue or StatusFalse |
There are no Conditions at the root. Select by .status.baseInfo.clusterType.
Finalizer: cluster.shturval.tech/clusterinfo.
ClusterUpdateChannel
Short name is not set. The resource name matches the ClusterConfig name.
spec
| Field | Type | Required | Description |
|---|---|---|---|
channel | string | No | Matrix channel. Default stable |
status
| Field | Type | Description |
|---|---|---|
ready | bool | The matrix was read successfully |
currentVersion | string | Copy of ClusterConfig.status.update.currentVersion |
lastChecked | time | Time of the last check |
availableUpdates | list of strings | Available releases |
There is no finalizer.
ClusterUpdateSchedule
Short name is not set.
spec
| Field | Type | Required | Description |
|---|---|---|---|
schedule | string | Yes | Five-field cron |
updatePeriod | duration | Yes | Window length after the cron start |
pauseIfUpdatePeriodExceed | bool | Yes | Pause the update outside the window |
allowMinorVersion | bool | Yes | true — highest semver from the cache. false — highest version in the same minor as the current version |
status
| Field | Type | Description |
|---|---|---|
nextUpdateStart | time | Start of the current or next window |
nextUpdateEnd | time | End of the window |
nextUpdateVersion | string | Version the schedule wrote to ClusterConfig |
conditions | Condition list | TriggerUpdate |
Finalizer: clusterupdateschedule.cluster.shturval.tech/finalizer.
InfrastructureProvider
Short name ip. The plural resource name is infrastructureproviders.
spec
| Field | Type | Required | Description |
|---|---|---|---|
type | string | Yes | capbd, capos, capov, capsmv2, capvs, capcd, capyc |
subtype | string | No | Informational field, for example, zvirt or vkcloud |
allowEditCSI | bool | No | Permission to change CSI |
ipAddressPoolName | string | No | IP pool name |
templates[] | object | No | kubeVersion, template, templateNetInterface — VM templates by Kubernetes version |
providerRef | ObjectReference | Yes | Cluster API provider object. The field is unique and cannot be changed after the resource is created |
config | JSON without a strict schema | No | Type parameters. May be absent for capsmv2 |
status
| Field | Type | Description |
|---|---|---|
observedGeneration | int64 | Generation the controller has seen |
ready | bool | Both ProviderRefReady and ConfigValid are True |
conditions | Condition list | Table in section 4 |
providerRefUID | UID | UID of the providerRef object |
linkedClusters | list of references | Clusters that reference the provider |
supportedPlatformVersions | list of strings | Platform versions from templates[].kubeVersion |
InfrastructureProvider itself has the finalizer infrastructureprovider.cluster.shturval.tech/finalizer. The provider object from providerRef gets a separate finalizer, infrastructureprovider.cluster.shturval.tech/native-finalizer: while an InfrastructureProvider references that object, the provider object cannot be deleted.
On create and update, the webhook checks that providerRef is unique. After the resource is created, this field cannot be changed.
8. Customization via SSP
General instructions for creating and applying SSP — How to manage CustomValues of services. Below are an example of extending cluster-manager permissions and the limits on service configuration.
What SSP is
ShturvalServicePatch is a Kubernetes object the administrator uses to override system service parameters on top of the platform SSC.
Main SSP fields:
| Field | Description |
|---|---|
spec.shturvalServiceConfigName | Target SSC name (which SSC the SSP applies to) |
spec.customvalues | Overridden values; the structure matches the chart values.yaml |
Extending cluster-manager permissions
When deploying a cluster, cluster-manager applies manifests from ClusterProfile in the management cluster. If the profile specifies resources, for example, users of API group auth.shturval.tech or pods, the default permissions may be insufficient. In that case the Secret check for manifests fails, and the cluster profile gets status False (in the interface, Not Ready).
Creating profiles and diagnosing permission errors are described on How to create and apply cluster profiles (ClusterProfile).
The default cluster-manager permissions are set in ClusterRole — shturval-cluster-manager-role.
To add permissions, create a separate ClusterRole and aggregate its rules into shturval-cluster-manager-role in one of these ways:
- add the label
rbac.shturval.tech/shturval-cluster-manager-aggregated-role: "true"; - add a custom label to the
ClusterRoleand specify it inspec.customvalues.roleAggregateLabelsforshturval-cluster-manager.
Example ShturvalServicePatch:
apiVersion: ops.shturval.tech/v1beta2
kind: ShturvalServicePatch
metadata:
name: cluster-manager-custom
spec:
shturvalServiceConfigName: shturval-cluster-manager
customvalues:
roleAggregateLabels:
custom/auth-user-role: "true"
The detailed procedure for adding permissions for cluster profiles is in If there are not enough rights to platform manifests.
What not to do through SSP
- Do not change the
modefield of CAPI providers through SSP without agreement with the platform. - Do not set
nodeSelectororaffinitythat conflicts with the management cluster placement policy. - Do not change the namespace through SSP — it is set in the SSC and is part of the service identity.
The spec.customvalues field in an SSP overlays spec.customvalues in the SSC and does not replace it completely. Use only the keys that need to be overridden.
Chart and parameter mapping
spec.customvalues (in SSC and SSP) matches values.yaml of the specific chart:
- CAPSM: the
values.yamlstructure is described in shturval-capsm §6. - Other services: the values structure is described in the documentation of the corresponding chart.