API Reference
This is a generated API documentation.
A more sophisticated documentation is available under doc.crds.dev/github.com/k8up-io/k8up. |
k8up.io/v1
Archive
Archive is the Schema for the archives API
Field | Description |
---|---|
|
|
|
|
|
Refer to Kubernetes API documentation for fields of |
|
ArchiveList
ArchiveList contains a list of Archive
Field | Description |
---|---|
|
|
|
|
|
Refer to Kubernetes API documentation for fields of |
|
AzureSpec
Field | Description |
---|---|
|
|
|
|
|
|
|
B2Spec
Field | Description |
---|---|
|
|
|
|
|
|
|
Backend
Backend allows configuring several backend implementations. It is expected that users only configure one storage type.
Field | Description |
---|---|
|
RepoPasswordSecretRef references a secret key to look up the restic repository password |
|
EnvFrom adds all environment variables from a an external source to the Restic job. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Backup
Backup is the Schema for the backups API
Field | Description |
---|---|
|
|
|
|
|
Refer to Kubernetes API documentation for fields of |
|
BackupList
BackupList contains a list of Backup
Field | Description |
---|---|
|
|
|
|
|
Refer to Kubernetes API documentation for fields of |
|
BackupSchedule
BackupSchedule manages schedules for the backup service
Field | Description |
---|---|
|
Backend contains the restic repo where the job should backup to. |
|
Resources describes the compute resource requirements (cpu, memory, etc.) |
|
PodSecurityContext describes the security context with which this action shall be executed. |
|
PodConfigRef describes the pod spec with wich this action shall be executed. It takes precedence over the Resources or PodSecurityContext field. It does not allow changing the image or the command of the resulting pod. This is for advanced use-cases only. Please only set this if you know what you’re doing. |
|
Volumes List of volumes that can be mounted by containers belonging to the pod. |
|
ActiveDeadlineSeconds specifies the duration in seconds relative to the startTime that the job may be continuously active before the system tries to terminate it. Value must be positive integer if given. |
|
KeepJobs amount of jobs to keep for later analysis. Deprecated: Use FailedJobsHistoryLimit and SuccessfulJobsHistoryLimit respectively. |
|
FailedJobsHistoryLimit amount of failed jobs to keep for later analysis. KeepJobs is used property is not specified. |
|
SuccessfulJobsHistoryLimit amount of successful jobs to keep for later analysis. KeepJobs is used property is not specified. |
|
PromURL sets a prometheus push URL where the backup container send metrics to |
|
StatsURL sets an arbitrary URL where the restic container posts metrics and information about the snapshots to. This is in addition to the prometheus pushgateway. |
|
Tags is a list of arbitrary tags that get added to the backup via Restic’s tagging system |
BackupSpec
BackupSpec defines a single backup. It must contain all information to connect to the backup repository when applied. If used with defaults or schedules the operator will ensure that the defaults are applied before creating the object on the API.
Field | Description |
---|---|
|
Backend contains the restic repo where the job should backup to. |
|
Resources describes the compute resource requirements (cpu, memory, etc.) |
|
PodSecurityContext describes the security context with which this action shall be executed. |
|
PodConfigRef describes the pod spec with wich this action shall be executed. It takes precedence over the Resources or PodSecurityContext field. It does not allow changing the image or the command of the resulting pod. This is for advanced use-cases only. Please only set this if you know what you’re doing. |
|
Volumes List of volumes that can be mounted by containers belonging to the pod. |
|
ActiveDeadlineSeconds specifies the duration in seconds relative to the startTime that the job may be continuously active before the system tries to terminate it. Value must be positive integer if given. |
|
KeepJobs amount of jobs to keep for later analysis. Deprecated: Use FailedJobsHistoryLimit and SuccessfulJobsHistoryLimit respectively. |
|
FailedJobsHistoryLimit amount of failed jobs to keep for later analysis. KeepJobs is used property is not specified. |
|
SuccessfulJobsHistoryLimit amount of successful jobs to keep for later analysis. KeepJobs is used property is not specified. |
|
PromURL sets a prometheus push URL where the backup container send metrics to |
|
StatsURL sets an arbitrary URL where the restic container posts metrics and information about the snapshots to. This is in addition to the prometheus pushgateway. |
|
Tags is a list of arbitrary tags that get added to the backup via Restic’s tagging system |
Check
Check is the Schema for the checks API
Field | Description |
---|---|
|
|
|
|
|
Refer to Kubernetes API documentation for fields of |
|
CheckList
CheckList contains a list of Check
Field | Description |
---|---|
|
|
|
|
|
Refer to Kubernetes API documentation for fields of |
|
CheckSchedule
CheckSchedule manages the schedules for the checks
Field | Description |
---|---|
|
Backend contains the restic repo where the job should backup to. |
|
Resources describes the compute resource requirements (cpu, memory, etc.) |
|
PodSecurityContext describes the security context with which this action shall be executed. |
|
PodConfigRef describes the pod spec with wich this action shall be executed. It takes precedence over the Resources or PodSecurityContext field. It does not allow changing the image or the command of the resulting pod. This is for advanced use-cases only. Please only set this if you know what you’re doing. |
|
Volumes List of volumes that can be mounted by containers belonging to the pod. |
|
ActiveDeadlineSeconds specifies the duration in seconds relative to the startTime that the job may be continuously active before the system tries to terminate it. Value must be positive integer if given. |
|
PromURL sets a prometheus push URL where the backup container send metrics to |
|
KeepJobs amount of jobs to keep for later analysis. Deprecated: Use FailedJobsHistoryLimit and SuccessfulJobsHistoryLimit respectively. |
|
FailedJobsHistoryLimit amount of failed jobs to keep for later analysis. KeepJobs is used property is not specified. |
|
SuccessfulJobsHistoryLimit amount of successful jobs to keep for later analysis. KeepJobs is used property is not specified. |
CheckSpec
CheckSpec defines the desired state of Check. It needs to contain the repository information.
Field | Description |
---|---|
|
Backend contains the restic repo where the job should backup to. |
|
Resources describes the compute resource requirements (cpu, memory, etc.) |
|
PodSecurityContext describes the security context with which this action shall be executed. |
|
PodConfigRef describes the pod spec with wich this action shall be executed. It takes precedence over the Resources or PodSecurityContext field. It does not allow changing the image or the command of the resulting pod. This is for advanced use-cases only. Please only set this if you know what you’re doing. |
|
Volumes List of volumes that can be mounted by containers belonging to the pod. |
|
ActiveDeadlineSeconds specifies the duration in seconds relative to the startTime that the job may be continuously active before the system tries to terminate it. Value must be positive integer if given. |
|
PromURL sets a prometheus push URL where the backup container send metrics to |
|
KeepJobs amount of jobs to keep for later analysis. Deprecated: Use FailedJobsHistoryLimit and SuccessfulJobsHistoryLimit respectively. |
|
FailedJobsHistoryLimit amount of failed jobs to keep for later analysis. KeepJobs is used property is not specified. |
|
SuccessfulJobsHistoryLimit amount of successful jobs to keep for later analysis. KeepJobs is used property is not specified. |
EffectiveSchedule
Field | Description |
---|---|
|
|
|
GCSSpec
Field | Description |
---|---|
|
|
|
|
|
JobObject (interface{GetActiveDeadlineSeconds() *int64; GetPodConfig(context.Context, sigs.k8s.io/controller-runtime/pkg/client.Client) (*PodConfig, error); GetPodSecurityContext() *k8s.io/api/core/v1.PodSecurityContext; GetResources() k8s.io/api/core/v1.ResourceRequirements; GetStatus() Status; GetType() JobType; SetStatus(s Status); sigs.k8s.io/controller-runtime/pkg/client.Object})
JobObject is an interface that must be implemented by all CRDs that implement a job.
Pod
Pod is a dummy struct to fix some code generation issues.
Field | Description |
---|---|
|
Refer to Kubernetes API documentation for fields of |
|
Specification of the desired behavior of the pod. More info: git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status |
PodConfig
PodConfig is the Schema for the PodConcig API Any annotations and labels set on this object will also be set on the final pod.
Field | Description |
---|---|
|
|
|
|
|
Refer to Kubernetes API documentation for fields of |
|
PodConfigList
SnapshotList contains a list of Snapshot
Field | Description |
---|---|
|
|
|
|
|
Refer to Kubernetes API documentation for fields of |
|
PodConfigSpec
PodConfigSpec contains the podTemplate definition.
Field | Description |
---|---|
|
PreBackupPod
PreBackupPod is the Schema for the prebackuppods API
Field | Description |
---|---|
|
|
|
|
|
Refer to Kubernetes API documentation for fields of |
|
PreBackupPodList
PreBackupPodList contains a list of PreBackupPod
Field | Description |
---|---|
|
|
|
|
|
Refer to Kubernetes API documentation for fields of |
|
PreBackupPodSpec
PreBackupPodSpec define pods that will be launched during the backup. After the backup has finished (successfully or not), they should be removed again automatically by the operator.
Field | Description |
---|---|
|
BackupCommand will be added to the backupcommand annotation on the pod. |
|
|
|
Prune
Prune is the Schema for the prunes API
Field | Description |
---|---|
|
|
|
|
|
Refer to Kubernetes API documentation for fields of |
|
PruneList
PruneList contains a list of Prune
Field | Description |
---|---|
|
|
|
|
|
Refer to Kubernetes API documentation for fields of |
|
PruneSchedule
PruneSchedule manages the schedules for the prunes
Field | Description |
---|---|
|
Backend contains the restic repo where the job should backup to. |
|
Resources describes the compute resource requirements (cpu, memory, etc.) |
|
PodSecurityContext describes the security context with which this action shall be executed. |
|
PodConfigRef describes the pod spec with wich this action shall be executed. It takes precedence over the Resources or PodSecurityContext field. It does not allow changing the image or the command of the resulting pod. This is for advanced use-cases only. Please only set this if you know what you’re doing. |
|
Volumes List of volumes that can be mounted by containers belonging to the pod. |
|
ActiveDeadlineSeconds specifies the duration in seconds relative to the startTime that the job may be continuously active before the system tries to terminate it. Value must be positive integer if given. |
|
Retention sets how many backups should be kept after a forget and prune |
|
KeepJobs amount of jobs to keep for later analysis. Deprecated: Use FailedJobsHistoryLimit and SuccessfulJobsHistoryLimit respectively. |
|
FailedJobsHistoryLimit amount of failed jobs to keep for later analysis. KeepJobs is used property is not specified. |
|
SuccessfulJobsHistoryLimit amount of successful jobs to keep for later analysis. KeepJobs is used property is not specified. |
PruneSpec
PruneSpec needs to contain the repository information as well as the desired retention policies.
Field | Description |
---|---|
|
Backend contains the restic repo where the job should backup to. |
|
Resources describes the compute resource requirements (cpu, memory, etc.) |
|
PodSecurityContext describes the security context with which this action shall be executed. |
|
PodConfigRef describes the pod spec with wich this action shall be executed. It takes precedence over the Resources or PodSecurityContext field. It does not allow changing the image or the command of the resulting pod. This is for advanced use-cases only. Please only set this if you know what you’re doing. |
|
Volumes List of volumes that can be mounted by containers belonging to the pod. |
|
ActiveDeadlineSeconds specifies the duration in seconds relative to the startTime that the job may be continuously active before the system tries to terminate it. Value must be positive integer if given. |
|
Retention sets how many backups should be kept after a forget and prune |
|
KeepJobs amount of jobs to keep for later analysis. Deprecated: Use FailedJobsHistoryLimit and SuccessfulJobsHistoryLimit respectively. |
|
FailedJobsHistoryLimit amount of failed jobs to keep for later analysis. KeepJobs is used property is not specified. |
|
SuccessfulJobsHistoryLimit amount of successful jobs to keep for later analysis. KeepJobs is used property is not specified. |
RestServerSpec
Field | Description |
---|---|
|
|
|
|
|
Restore
Restore is the Schema for the restores API
Field | Description |
---|---|
|
|
|
|
|
Refer to Kubernetes API documentation for fields of |
|
RestoreList
RestoreList contains a list of Restore
Field | Description |
---|---|
|
|
|
|
|
Refer to Kubernetes API documentation for fields of |
|
RestoreMethod
RestoreMethod contains how and where the restore should happen all the settings are mutual exclusive.
Field | Description |
---|---|
|
|
|
|
|
|
|
RestoreSchedule
RestoreSchedule manages schedules for the restore service
Field | Description |
---|---|
|
Backend contains the restic repo where the job should backup to. |
|
Resources describes the compute resource requirements (cpu, memory, etc.) |
|
PodSecurityContext describes the security context with which this action shall be executed. |
|
PodConfigRef describes the pod spec with wich this action shall be executed. It takes precedence over the Resources or PodSecurityContext field. It does not allow changing the image or the command of the resulting pod. This is for advanced use-cases only. Please only set this if you know what you’re doing. |
|
Volumes List of volumes that can be mounted by containers belonging to the pod. |
|
ActiveDeadlineSeconds specifies the duration in seconds relative to the startTime that the job may be continuously active before the system tries to terminate it. Value must be positive integer if given. |
|
|
|
|
|
|
|
KeepJobs amount of jobs to keep for later analysis. Deprecated: Use FailedJobsHistoryLimit and SuccessfulJobsHistoryLimit respectively. |
|
FailedJobsHistoryLimit amount of failed jobs to keep for later analysis. KeepJobs is used property is not specified. |
|
SuccessfulJobsHistoryLimit amount of successful jobs to keep for later analysis. KeepJobs is used property is not specified. |
|
Tags is a list of arbitrary tags that get added to the backup via Restic’s tagging system |
RestoreSpec
RestoreSpec can either contain an S3 restore point or a local one. For the local one you need to define an existing PVC.
Field | Description |
---|---|
|
Backend contains the restic repo where the job should backup to. |
|
Resources describes the compute resource requirements (cpu, memory, etc.) |
|
PodSecurityContext describes the security context with which this action shall be executed. |
|
PodConfigRef describes the pod spec with wich this action shall be executed. It takes precedence over the Resources or PodSecurityContext field. It does not allow changing the image or the command of the resulting pod. This is for advanced use-cases only. Please only set this if you know what you’re doing. |
|
Volumes List of volumes that can be mounted by containers belonging to the pod. |
|
ActiveDeadlineSeconds specifies the duration in seconds relative to the startTime that the job may be continuously active before the system tries to terminate it. Value must be positive integer if given. |
|
|
|
|
|
|
|
KeepJobs amount of jobs to keep for later analysis. Deprecated: Use FailedJobsHistoryLimit and SuccessfulJobsHistoryLimit respectively. |
|
FailedJobsHistoryLimit amount of failed jobs to keep for later analysis. KeepJobs is used property is not specified. |
|
SuccessfulJobsHistoryLimit amount of successful jobs to keep for later analysis. KeepJobs is used property is not specified. |
|
Tags is a list of arbitrary tags that get added to the backup via Restic’s tagging system |
RetentionPolicy
Field | Description |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Tags is a filter on what tags the policy should be applied DO NOT CONFUSE THIS WITH KeepTags OR YOU’LL have a bad time |
|
Hostnames is a filter on what hostnames the policy should be applied |
RunnableSpec
RunnableSpec defines the fields that are necessary on the specs of all actions that are translated to k8s jobs eventually.
Field | Description |
---|---|
|
Backend contains the restic repo where the job should backup to. |
|
Resources describes the compute resource requirements (cpu, memory, etc.) |
|
PodSecurityContext describes the security context with which this action shall be executed. |
|
PodConfigRef describes the pod spec with wich this action shall be executed. It takes precedence over the Resources or PodSecurityContext field. It does not allow changing the image or the command of the resulting pod. This is for advanced use-cases only. Please only set this if you know what you’re doing. |
|
Volumes List of volumes that can be mounted by containers belonging to the pod. |
|
ActiveDeadlineSeconds specifies the duration in seconds relative to the startTime that the job may be continuously active before the system tries to terminate it. Value must be positive integer if given. |
RunnableVolumeSpec
Field | Description |
---|---|
|
name of the volume. Must be a DNS_LABEL and unique within the pod. More info: kubernetes.io/docs/concepts/overview/working-with-objects/names/#names |
|
persistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims |
|
secret represents a secret that should populate this volume. More info: kubernetes.io/docs/concepts/storage/volumes#secret |
|
configMap represents a configMap that should populate this volume |
S3Spec
Field | Description |
---|---|
|
|
|
|
|
|
|
Schedule
Schedule is the Schema for the schedules API
Field | Description |
---|---|
|
|
|
|
|
Refer to Kubernetes API documentation for fields of |
|
ScheduleCommon
ScheduleCommon contains fields every schedule needs
Field | Description |
---|---|
|
|
|
ScheduleDefinition (string)
ScheduleDefinition is the actual cron-type expression that defines the interval of the actions.
ScheduleList
ScheduleList contains a list of Schedule
Field | Description |
---|---|
|
|
|
|
|
Refer to Kubernetes API documentation for fields of |
|
ScheduleSpec
ScheduleSpec defines the schedules for the various job types.
Field | Description |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
KeepJobs amount of jobs to keep for later analysis. Deprecated: Use FailedJobsHistoryLimit and SuccessfulJobsHistoryLimit respectively. |
|
FailedJobsHistoryLimit amount of failed jobs to keep for later analysis. KeepJobs is used property is not specified. |
|
SuccessfulJobsHistoryLimit amount of successful jobs to keep for later analysis. KeepJobs is used property is not specified. |
|
ResourceRequirementsTemplate describes the compute resource requirements (cpu, memory, etc.) |
|
PodSecurityContext describes the security context with which actions (such as backups) shall be executed. |
|
PodConfigRef will apply the given template to all job definitions in this Schedule. It can be overriden for specific jobs if necessary. |
Snapshot
Snapshot is the Schema for the snapshots API
Field | Description |
---|---|
|
|
|
|
|
Refer to Kubernetes API documentation for fields of |
|
SnapshotList
SnapshotList contains a list of Snapshot
Field | Description |
---|---|
|
|
|
|
|
Refer to Kubernetes API documentation for fields of |
|
SnapshotSpec
SnapshotSpec contains all information needed about a restic snapshot so it can be restored.
Field | Description |
---|---|
|
|
|
|
|
|
|