PostgreSQLs
- 描述
- Postgresql defines a PostgreSQL cluster managed by the Zalando Postgres Operator. It allows configuring various aspects of PostgreSQL including replication, backups, resource allocation, and more. Postgresql defines the desired state and status of a PostgreSQL cluster managed by the Zalando Postgres Operator.
- 类型
object- 必填
spec
规格
.spec
- 描述
- Spec defines the desired state of the PostgreSQL cluster including configuration, resources, replication settings, and more.
- 类型
object- 必填
numberOfInstancespostgresqlteamId
.spec.additionalVolumes
- 描述
- AdditionalVolumes defines additional volumes for the pod
- 类型
array
.spec.additionalVolumes[]
- 描述
- AdditionalVolume defines additional volumes that can be mounted to PostgreSQL pods
- 类型
object- 必填
mountPathnametargetContainersvolumeSource
.spec.additionalVolumes[].targetContainers
- 描述
- List of container names that should mount this volume
- 类型
array
.spec.additionalVolumes[].targetContainers[]
- 类型
string
.spec.additionalVolumes[].volumeSource
- 描述
- Kubernetes VolumeSource defining the volume type and configuration
- 类型
object
.spec.additionalVolumes[].volumeSource.awsElasticBlockStore
- 描述
- awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
- 类型
object- 必填
volumeID
.spec.additionalVolumes[].volumeSource.azureDisk
- 描述
- azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
- 类型
object- 必填
diskNamediskURI
.spec.additionalVolumes[].volumeSource.azureFile
- 描述
- azureFile represents an Azure File Service mount on the host and bind mount to the pod.
- 类型
object- 必填
secretNameshareName
.spec.additionalVolumes[].volumeSource.cephfs
- 描述
- cephFS represents a Ceph FS mount on the host that shares a pod's lifetime
- 类型
object- 必填
monitors
.spec.additionalVolumes[].volumeSource.cephfs.monitors
- 描述
- monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
- 类型
array
.spec.additionalVolumes[].volumeSource.cephfs.monitors[]
- 类型
string
.spec.additionalVolumes[].volumeSource.cephfs.secretRef
- 描述
- secretRef is Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
- 类型
object
.spec.additionalVolumes[].volumeSource.cinder
- 描述
- cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md
- 类型
object- 必填
volumeID
.spec.additionalVolumes[].volumeSource.cinder.secretRef
- 描述
- secretRef is optional: points to a secret object containing parameters used to connect to OpenStack.
- 类型
object
.spec.additionalVolumes[].volumeSource.configMap
- 描述
- configMap represents a configMap that should populate this volume
- 类型
object
.spec.additionalVolumes[].volumeSource.configMap.items
- 描述
- items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.
- 类型
array
.spec.additionalVolumes[].volumeSource.configMap.items[]
- 描述
- Maps a string key to a path within a volume.
- 类型
object- 必填
keypath
.spec.additionalVolumes[].volumeSource.csi
- 描述
- csi (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers (Beta feature).
- 类型
object- 必填
driver
.spec.additionalVolumes[].volumeSource.csi.nodePublishSecretRef
- 描述
- nodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed.
- 类型
object
.spec.additionalVolumes[].volumeSource.csi.volumeAttributes
- 描述
- volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values.
- 类型
object
.spec.additionalVolumes[].volumeSource.downwardAPI
- 描述
- downwardAPI represents downward API about the pod that should populate this volume
- 类型
object
.spec.additionalVolumes[].volumeSource.downwardAPI.items
- 描述
- Items is a list of downward API volume file
- 类型
array
.spec.additionalVolumes[].volumeSource.downwardAPI.items[]
- 描述
- DownwardAPIVolumeFile represents information to create the file containing the pod field
- 类型
object- 必填
path
.spec.additionalVolumes[].volumeSource.downwardAPI.items[].fieldRef
- 描述
- Required: Selects a field of the pod: only annotations, labels, name and namespace are supported.
- 类型
object- 必填
fieldPath
.spec.additionalVolumes[].volumeSource.downwardAPI.items[].resourceFieldRef
- 描述
- Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.
- 类型
object- 必填
resource
.spec.additionalVolumes[].volumeSource.emptyDir
- 描述
- emptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir
- 类型
object
.spec.additionalVolumes[].volumeSource.ephemeral
- 描述
- ephemeral represents a volume that is handled by a cluster storage driver. The volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts, and deleted when the pod is removed. Use this if: a) the volume is only needed while the pod runs, b) features of normal volumes like restoring from snapshot or capacity tracking are needed, c) the storage driver is specified through a storage class, and d) the storage driver supports dynamic volume provisioning through a PersistentVolumeClaim (see EphemeralVolumeSource for more information on the connection between this volume type and PersistentVolumeClaim). Use PersistentVolumeClaim or one of the vendor-specific APIs for volumes that persist for longer than the lifecycle of an individual pod. Use CSI for light-weight local ephemeral volumes if the CSI driver is meant to be used that way - see the documentation of the driver for more information. A pod can use both types of ephemeral volumes and persistent volumes at the same time.
- 类型
object
.spec.additionalVolumes[].volumeSource.ephemeral.volumeClaimTemplate
- 描述
- Will be used to create a stand-alone PVC to provision the volume. The pod in which this EphemeralVolumeSource is embedded will be the owner of the PVC, i.e. the PVC will be deleted together with the pod. The name of the PVC will be `<pod name>-<volume name>` where `<volume name>` is the name from the `PodSpec.Volumes` array entry. Pod validation will reject the pod if the concatenated name is not valid for a PVC (for example, too long). An existing PVC with that name that is not owned by the pod will *not* be used for the pod to avoid using an unrelated volume by mistake. Starting the pod is then blocked until the unrelated PVC is removed. If such a pre-created PVC is meant to be used by the pod, the PVC has to updated with an owner reference to the pod once the pod exists. Normally this should not be necessary, but it may be useful when manually reconstructing a broken cluster. This field is read-only and no changes will be made by Kubernetes to the PVC after it has been created. Required, must not be nil.
- 类型
object- 必填
spec
.spec.additionalVolumes[].volumeSource.ephemeral.volumeClaimTemplate.spec
- 描述
- The specification for the PersistentVolumeClaim. The entire content is copied unchanged into the PVC that gets created from this template. The same fields as in a PersistentVolumeClaim are also valid here.
- 类型
object
.spec.additionalVolumes[].volumeSource.ephemeral.volumeClaimTemplate.spec.accessModes
- 描述
- accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
- 类型
array
.spec.additionalVolumes[].volumeSource.ephemeral.volumeClaimTemplate.spec.accessModes[]
- 类型
string
.spec.additionalVolumes[].volumeSource.ephemeral.volumeClaimTemplate.spec.dataSource
- 描述
- dataSource field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef, and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified. If the namespace is specified, then dataSourceRef will not be copied to dataSource.
- 类型
object- 必填
kindname
.spec.additionalVolumes[].volumeSource.ephemeral.volumeClaimTemplate.spec.dataSourceRef
- 描述
- dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the dataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, when namespace isn't specified in dataSourceRef, both fields (dataSource and dataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. When namespace is specified in dataSourceRef, dataSource isn't set to the same value and must be empty. There are three important differences between dataSource and dataSourceRef: * While dataSource only allows two specific types of objects, dataSourceRef allows any non-core object, as well as PersistentVolumeClaim objects. * While dataSource ignores disallowed values (dropping them), dataSourceRef preserves all values, and generates an error if a disallowed value is specified. * While dataSource only allows local objects, dataSourceRef allows objects in any namespaces. (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled.
- 类型
object- 必填
kindname
.spec.additionalVolumes[].volumeSource.ephemeral.volumeClaimTemplate.spec.resources
- 描述
- resources represents the minimum resources the volume should have. If RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements that are lower than previous value but must still be higher than capacity recorded in the status field of the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
- 类型
object
.spec.additionalVolumes[].volumeSource.ephemeral.volumeClaimTemplate.spec.resources.limits
- 描述
- Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
- 类型
object
.spec.additionalVolumes[].volumeSource.ephemeral.volumeClaimTemplate.spec.resources.requests
- 描述
- Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
- 类型
object
.spec.additionalVolumes[].volumeSource.ephemeral.volumeClaimTemplate.spec.selector
- 描述
- selector is a label query over volumes to consider for binding.
- 类型
object
.spec.additionalVolumes[].volumeSource.ephemeral.volumeClaimTemplate.spec.selector.matchExpressions
- 描述
- matchExpressions is a list of label selector requirements. The requirements are ANDed.
- 类型
array
.spec.additionalVolumes[].volumeSource.ephemeral.volumeClaimTemplate.spec.selector.matchExpressions[]
- 描述
- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
- 类型
object- 必填
keyoperator
.spec.additionalVolumes[].volumeSource.ephemeral.volumeClaimTemplate.spec.selector.matchExpressions[].values
- 描述
- values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
- 类型
array
.spec.additionalVolumes[].volumeSource.ephemeral.volumeClaimTemplate.spec.selector.matchExpressions[].values[]
- 类型
string
.spec.additionalVolumes[].volumeSource.ephemeral.volumeClaimTemplate.spec.selector.matchLabels
- 描述
- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
- 类型
object
.spec.additionalVolumes[].volumeSource.fc
- 描述
- fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.
- 类型
object
.spec.additionalVolumes[].volumeSource.fc.targetWWNs
- 描述
- targetWWNs is Optional: FC target worldwide names (WWNs)
- 类型
array
.spec.additionalVolumes[].volumeSource.fc.targetWWNs[]
- 类型
string
.spec.additionalVolumes[].volumeSource.fc.wwids
- 描述
- wwids Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.
- 类型
array
.spec.additionalVolumes[].volumeSource.fc.wwids[]
- 类型
string
.spec.additionalVolumes[].volumeSource.flexVolume
- 描述
- flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.
- 类型
object- 必填
driver
.spec.additionalVolumes[].volumeSource.flexVolume.options
- 描述
- options is Optional: this field holds extra command options if any.
- 类型
object
.spec.additionalVolumes[].volumeSource.flexVolume.secretRef
- 描述
- secretRef is Optional: secretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts.
- 类型
object
.spec.additionalVolumes[].volumeSource.flocker
- 描述
- flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running
- 类型
object
.spec.additionalVolumes[].volumeSource.gcePersistentDisk
- 描述
- gcePersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
- 类型
object- 必填
pdName
.spec.additionalVolumes[].volumeSource.gitRepo
- 描述
- gitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container.
- 类型
object- 必填
repository
.spec.additionalVolumes[].volumeSource.glusterfs
- 描述
- glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md
- 类型
object- 必填
endpointspath
.spec.additionalVolumes[].volumeSource.hostPath
- 描述
- hostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath --- TODO(jonesdl) We need to restrict who can use host directory mounts and who can/can not mount host directories as read/write.
- 类型
object- 必填
path
.spec.additionalVolumes[].volumeSource.iscsi
- 描述
- iscsi represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md
- 类型
object- 必填
iqnluntargetPortal
.spec.additionalVolumes[].volumeSource.iscsi.portals
- 描述
- portals is the iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).
- 类型
array
.spec.additionalVolumes[].volumeSource.iscsi.portals[]
- 类型
string
.spec.additionalVolumes[].volumeSource.iscsi.secretRef
- 描述
- secretRef is the CHAP Secret for iSCSI target and initiator authentication
- 类型
object
.spec.additionalVolumes[].volumeSource.nfs
- 描述
- nfs represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
- 类型
object- 必填
pathserver
.spec.additionalVolumes[].volumeSource.persistentVolumeClaim
- 描述
- persistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
- 类型
object- 必填
claimName
.spec.additionalVolumes[].volumeSource.photonPersistentDisk
- 描述
- photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine
- 类型
object- 必填
pdID
.spec.additionalVolumes[].volumeSource.portworxVolume
- 描述
- portworxVolume represents a portworx volume attached and mounted on kubelets host machine
- 类型
object- 必填
volumeID
.spec.additionalVolumes[].volumeSource.projected
- 描述
- projected items for all in one resources secrets, configmaps, and downward API
- 类型
object
.spec.additionalVolumes[].volumeSource.projected.sources
- 描述
- sources is the list of volume projections
- 类型
array
.spec.additionalVolumes[].volumeSource.projected.sources[]
- 描述
- Projection that may be projected along with other supported volume types
- 类型
object
.spec.additionalVolumes[].volumeSource.projected.sources[].clusterTrustBundle
- 描述
- ClusterTrustBundle allows a pod to access the `.spec.trustBundle` field of ClusterTrustBundle objects in an auto-updating file. Alpha, gated by the ClusterTrustBundleProjection feature gate. ClusterTrustBundle objects can either be selected by name, or by the combination of signer name and a label selector. Kubelet performs aggressive normalization of the PEM contents written into the pod filesystem. Esoteric PEM features such as inter-block comments and block headers are stripped. Certificates are deduplicated. The ordering of certificates within the file is arbitrary, and Kubelet may change the order over time.
- 类型
object- 必填
path
.spec.additionalVolumes[].volumeSource.projected.sources[].clusterTrustBundle.labelSelector
- 描述
- Select all ClusterTrustBundles that match this label selector. Only has effect if signerName is set. Mutually-exclusive with name. If unset, interpreted as "match nothing". If set but empty, interpreted as "match everything".
- 类型
object
.spec.additionalVolumes[].volumeSource.projected.sources[].clusterTrustBundle.labelSelector.matchExpressions
- 描述
- matchExpressions is a list of label selector requirements. The requirements are ANDed.
- 类型
array
.spec.additionalVolumes[].volumeSource.projected.sources[].clusterTrustBundle.labelSelector.matchExpressions[]
- 描述
- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
- 类型
object- 必填
keyoperator
.spec.additionalVolumes[].volumeSource.projected.sources[].clusterTrustBundle.labelSelector.matchExpressions[].values
- 描述
- values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
- 类型
array
.spec.additionalVolumes[].volumeSource.projected.sources[].clusterTrustBundle.labelSelector.matchExpressions[].values[]
- 类型
string
.spec.additionalVolumes[].volumeSource.projected.sources[].clusterTrustBundle.labelSelector.matchLabels
- 描述
- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
- 类型
object
.spec.additionalVolumes[].volumeSource.projected.sources[].configMap
- 描述
- configMap information about the configMap data to project
- 类型
object
.spec.additionalVolumes[].volumeSource.projected.sources[].configMap.items
- 描述
- items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.
- 类型
array
.spec.additionalVolumes[].volumeSource.projected.sources[].configMap.items[]
- 描述
- Maps a string key to a path within a volume.
- 类型
object- 必填
keypath
.spec.additionalVolumes[].volumeSource.projected.sources[].downwardAPI
- 描述
- downwardAPI information about the downwardAPI data to project
- 类型
object
.spec.additionalVolumes[].volumeSource.projected.sources[].downwardAPI.items
- 描述
- Items is a list of DownwardAPIVolume file
- 类型
array
.spec.additionalVolumes[].volumeSource.projected.sources[].downwardAPI.items[]
- 描述
- DownwardAPIVolumeFile represents information to create the file containing the pod field
- 类型
object- 必填
path
.spec.additionalVolumes[].volumeSource.projected.sources[].downwardAPI.items[].fieldRef
- 描述
- Required: Selects a field of the pod: only annotations, labels, name and namespace are supported.
- 类型
object- 必填
fieldPath
.spec.additionalVolumes[].volumeSource.projected.sources[].downwardAPI.items[].resourceFieldRef
- 描述
- Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.
- 类型
object- 必填
resource
.spec.additionalVolumes[].volumeSource.projected.sources[].secret
- 描述
- secret information about the secret data to project
- 类型
object
.spec.additionalVolumes[].volumeSource.projected.sources[].secret.items
- 描述
- items if unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.
- 类型
array
.spec.additionalVolumes[].volumeSource.projected.sources[].secret.items[]
- 描述
- Maps a string key to a path within a volume.
- 类型
object- 必填
keypath
.spec.additionalVolumes[].volumeSource.projected.sources[].serviceAccountToken
- 描述
- serviceAccountToken is information about the serviceAccountToken data to project
- 类型
object- 必填
path
.spec.additionalVolumes[].volumeSource.quobyte
- 描述
- quobyte represents a Quobyte mount on the host that shares a pod's lifetime
- 类型
object- 必填
registryvolume
.spec.additionalVolumes[].volumeSource.rbd
- 描述
- rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md
- 类型
object- 必填
imagemonitors
.spec.additionalVolumes[].volumeSource.rbd.monitors
- 描述
- monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
- 类型
array
.spec.additionalVolumes[].volumeSource.rbd.monitors[]
- 类型
string
.spec.additionalVolumes[].volumeSource.rbd.secretRef
- 描述
- secretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
- 类型
object
.spec.additionalVolumes[].volumeSource.scaleIO
- 描述
- scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.
- 类型
object- 必填
gatewaysecretRefsystem
.spec.additionalVolumes[].volumeSource.scaleIO.secretRef
- 描述
- secretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail.
- 类型
object
.spec.additionalVolumes[].volumeSource.secret
- 描述
- secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
- 类型
object
.spec.additionalVolumes[].volumeSource.secret.items
- 描述
- items If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.
- 类型
array
.spec.additionalVolumes[].volumeSource.secret.items[]
- 描述
- Maps a string key to a path within a volume.
- 类型
object- 必填
keypath
.spec.additionalVolumes[].volumeSource.storageos
- 描述
- storageOS represents a StorageOS volume attached and mounted on Kubernetes nodes.
- 类型
object
.spec.additionalVolumes[].volumeSource.storageos.secretRef
- 描述
- secretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted.
- 类型
object
.spec.additionalVolumes[].volumeSource.vsphereVolume
- 描述
- vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine
- 类型
object- 必填
volumePath
.spec.allowedSourceRanges
- 描述
- AllowedSourceRanges specifies IP ranges allowed to access load balancers
- 类型
array
.spec.allowedSourceRanges[]
- 类型
string
.spec.backup
- 描述
- Backup defines backup configuration
- 类型
object- 必填
storage
.spec.backup.resources
- 描述
- Resources describes requests and limits for the Backup sidecar resouces.
- 类型
object
.spec.backup.resources.limits
- 描述
- ResourceLimits defines the maximum resources allowed for containers
- 类型
object
.spec.backup.resources.requests
- 描述
- ResourceRequests defines the minimum resources required for containers
- 类型
object
.spec.backup.storage
- 描述
- storage defines the configuration for backup storage including the storage name, namespace, and bucket location.
- 类型
object- 必填
bucketnamenamespace
.spec.clone
- 描述
- Clone defines configuration for cloning from another cluster
- 类型
object
.spec.clusterReplication
- 描述
- ClusterReplication defines cross-cluster replication
- 类型
object
.spec.connectionPooler
- 描述
- ConnectionPooler configuration for connection pooling
- 类型
object
.spec.connectionPooler.resources
- 描述
- Resources defines CPU and memory requirements for the connection pooler containers. If not specified, uses operator defaults.
- 类型
object
.spec.connectionPooler.resources.limits
- 描述
- ResourceLimits defines the maximum resources allowed for containers
- 类型
object
.spec.connectionPooler.resources.requests
- 描述
- ResourceRequests defines the minimum resources required for containers
- 类型
object
.spec.databases
- 描述
- Databases defines databases to be created in the cluster
- 类型
object
.spec.env
- 描述
- Env defines environment variables for containers
- 类型
array
.spec.env[]
- 描述
- EnvVar represents an environment variable present in a Container.
- 类型
object- 必填
name
.spec.env[].valueFrom
- 描述
- Source for the environment variable's value. Cannot be used if value is not empty.
- 类型
object
.spec.env[].valueFrom.configMapKeyRef
- 描述
- Selects a key of a ConfigMap.
- 类型
object- 必填
key
.spec.env[].valueFrom.fieldRef
- 描述
- Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.
- 类型
object- 必填
fieldPath
.spec.env[].valueFrom.resourceFieldRef
- 描述
- Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.
- 类型
object- 必填
resource
.spec.env[].valueFrom.secretKeyRef
- 描述
- Selects a key of a secret in the pod's namespace
- 类型
object- 必填
key
.spec.exporter
- 描述
- Exporter defines Prometheus exporter configuration
- 类型
object
.spec.exporter.env
- 类型
array
.spec.exporter.env[]
- 描述
- EnvVar represents an environment variable present in a Container.
- 类型
object- 必填
name
.spec.exporter.env[].valueFrom
- 描述
- Source for the environment variable's value. Cannot be used if value is not empty.
- 类型
object
.spec.exporter.env[].valueFrom.configMapKeyRef
- 描述
- Selects a key of a ConfigMap.
- 类型
object- 必填
key
.spec.exporter.env[].valueFrom.fieldRef
- 描述
- Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.
- 类型
object- 必填
fieldPath
.spec.exporter.env[].valueFrom.resourceFieldRef
- 描述
- Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.
- 类型
object- 必填
resource
.spec.exporter.env[].valueFrom.secretKeyRef
- 描述
- Selects a key of a secret in the pod's namespace
- 类型
object- 必填
key
.spec.init_containers
- 描述
- InitContainersOld is a deprecated field for init containers
- 类型
array
.spec.init_containers[]
- 描述
- A single application container that you want to run within a pod.
- 类型
object- 必填
name
.spec.init_containers[].args
- 描述
- Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
- 类型
array
.spec.init_containers[].args[]
- 类型
string
.spec.init_containers[].command
- 描述
- Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
- 类型
array
.spec.init_containers[].command[]
- 类型
string
.spec.init_containers[].env
- 描述
- List of environment variables to set in the container. Cannot be updated.
- 类型
array
.spec.init_containers[].env[]
- 描述
- EnvVar represents an environment variable present in a Container.
- 类型
object- 必填
name
.spec.init_containers[].env[].valueFrom
- 描述
- Source for the environment variable's value. Cannot be used if value is not empty.
- 类型
object
.spec.init_containers[].env[].valueFrom.configMapKeyRef
- 描述
- Selects a key of a ConfigMap.
- 类型
object- 必填
key
.spec.init_containers[].env[].valueFrom.fieldRef
- 描述
- Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.
- 类型
object- 必填
fieldPath
.spec.init_containers[].env[].valueFrom.resourceFieldRef
- 描述
- Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.
- 类型
object- 必填
resource
.spec.init_containers[].env[].valueFrom.secretKeyRef
- 描述
- Selects a key of a secret in the pod's namespace
- 类型
object- 必填
key
.spec.init_containers[].envFrom
- 描述
- List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.
- 类型
array
.spec.init_containers[].envFrom[]
- 描述
- EnvFromSource represents the source of a set of ConfigMaps
- 类型
object
.spec.init_containers[].envFrom[].configMapRef
- 描述
- The ConfigMap to select from
- 类型
object
.spec.init_containers[].envFrom[].secretRef
- 描述
- The Secret to select from
- 类型
object
.spec.init_containers[].lifecycle
- 描述
- Actions that the management system should take in response to container lifecycle events. Cannot be updated.
- 类型
object
.spec.init_containers[].lifecycle.postStart
- 描述
- PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
- 类型
object
.spec.init_containers[].lifecycle.postStart.exec
- 描述
- Exec specifies the action to take.
- 类型
object
.spec.init_containers[].lifecycle.postStart.exec.command
- 描述
- Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
- 类型
array
.spec.init_containers[].lifecycle.postStart.exec.command[]
- 类型
string
.spec.init_containers[].lifecycle.postStart.httpGet
- 描述
- HTTPGet specifies the http request to perform.
- 类型
object- 必填
port
.spec.init_containers[].lifecycle.postStart.httpGet.httpHeaders
- 描述
- Custom headers to set in the request. HTTP allows repeated headers.
- 类型
array
.spec.init_containers[].lifecycle.postStart.httpGet.httpHeaders[]
- 描述
- HTTPHeader describes a custom header to be used in HTTP probes
- 类型
object- 必填
namevalue
.spec.init_containers[].lifecycle.postStart.sleep
- 描述
- Sleep represents the duration that the container should sleep before being terminated.
- 类型
object- 必填
seconds
.spec.init_containers[].lifecycle.postStart.tcpSocket
- 描述
- Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept for the backward compatibility. There are no validation of this field and lifecycle hooks will fail in runtime when tcp handler is specified.
- 类型
object- 必填
port
.spec.init_containers[].lifecycle.preStop
- 描述
- PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The Pod's termination grace period countdown begins before the PreStop hook is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period (unless delayed by finalizers). Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
- 类型
object
.spec.init_containers[].lifecycle.preStop.exec
- 描述
- Exec specifies the action to take.
- 类型
object
.spec.init_containers[].lifecycle.preStop.exec.command
- 描述
- Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
- 类型
array
.spec.init_containers[].lifecycle.preStop.exec.command[]
- 类型
string
.spec.init_containers[].lifecycle.preStop.httpGet
- 描述
- HTTPGet specifies the http request to perform.
- 类型
object- 必填
port
.spec.init_containers[].lifecycle.preStop.httpGet.httpHeaders
- 描述
- Custom headers to set in the request. HTTP allows repeated headers.
- 类型
array
.spec.init_containers[].lifecycle.preStop.httpGet.httpHeaders[]
- 描述
- HTTPHeader describes a custom header to be used in HTTP probes
- 类型
object- 必填
namevalue
.spec.init_containers[].lifecycle.preStop.sleep
- 描述
- Sleep represents the duration that the container should sleep before being terminated.
- 类型
object- 必填
seconds
.spec.init_containers[].lifecycle.preStop.tcpSocket
- 描述
- Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept for the backward compatibility. There are no validation of this field and lifecycle hooks will fail in runtime when tcp handler is specified.
- 类型
object- 必填
port
.spec.init_containers[].livenessProbe
- 描述
- Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
- 类型
object
.spec.init_containers[].livenessProbe.exec
- 描述
- Exec specifies the action to take.
- 类型
object
.spec.init_containers[].livenessProbe.exec.command
- 描述
- Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
- 类型
array
.spec.init_containers[].livenessProbe.exec.command[]
- 类型
string
.spec.init_containers[].livenessProbe.grpc
- 描述
- GRPC specifies an action involving a GRPC port.
- 类型
object- 必填
port
.spec.init_containers[].livenessProbe.httpGet
- 描述
- HTTPGet specifies the http request to perform.
- 类型
object- 必填
port
.spec.init_containers[].livenessProbe.httpGet.httpHeaders
- 描述
- Custom headers to set in the request. HTTP allows repeated headers.
- 类型
array
.spec.init_containers[].livenessProbe.httpGet.httpHeaders[]
- 描述
- HTTPHeader describes a custom header to be used in HTTP probes
- 类型
object- 必填
namevalue
.spec.init_containers[].livenessProbe.tcpSocket
- 描述
- TCPSocket specifies an action involving a TCP port.
- 类型
object- 必填
port
.spec.init_containers[].ports
- 描述
- List of ports to expose from the container. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated.
- 类型
array
.spec.init_containers[].ports[]
- 描述
- ContainerPort represents a network port in a single container.
- 类型
object- 必填
containerPort
.spec.init_containers[].readinessProbe
- 描述
- Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
- 类型
object
.spec.init_containers[].readinessProbe.exec
- 描述
- Exec specifies the action to take.
- 类型
object
.spec.init_containers[].readinessProbe.exec.command
- 描述
- Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
- 类型
array
.spec.init_containers[].readinessProbe.exec.command[]
- 类型
string
.spec.init_containers[].readinessProbe.grpc
- 描述
- GRPC specifies an action involving a GRPC port.
- 类型
object- 必填
port
.spec.init_containers[].readinessProbe.httpGet
- 描述
- HTTPGet specifies the http request to perform.
- 类型
object- 必填
port
.spec.init_containers[].readinessProbe.httpGet.httpHeaders
- 描述
- Custom headers to set in the request. HTTP allows repeated headers.
- 类型
array
.spec.init_containers[].readinessProbe.httpGet.httpHeaders[]
- 描述
- HTTPHeader describes a custom header to be used in HTTP probes
- 类型
object- 必填
namevalue
.spec.init_containers[].readinessProbe.tcpSocket
- 描述
- TCPSocket specifies an action involving a TCP port.
- 类型
object- 必填
port
.spec.init_containers[].resizePolicy
- 描述
- Resources resize policy for the container.
- 类型
array
.spec.init_containers[].resizePolicy[]
- 描述
- ContainerResizePolicy represents resource resize policy for the container.
- 类型
object- 必填
resourceNamerestartPolicy
.spec.init_containers[].resources
- 描述
- Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
- 类型
object
.spec.init_containers[].resources.claims
- 描述
- Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable. It can only be set for containers.
- 类型
array
.spec.init_containers[].resources.claims[]
- 描述
- ResourceClaim references one entry in PodSpec.ResourceClaims.
- 类型
object- 必填
name
.spec.init_containers[].resources.limits
- 描述
- Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
- 类型
object
.spec.init_containers[].resources.requests
- 描述
- Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
- 类型
object
.spec.init_containers[].securityContext
- 描述
- SecurityContext defines the security options the container should be run with. If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext. More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
- 类型
object
.spec.init_containers[].securityContext.capabilities
- 描述
- The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. Note that this field cannot be set when spec.os.name is windows.
- 类型
object
.spec.init_containers[].securityContext.capabilities.add
- 描述
- Added capabilities
- 类型
array
.spec.init_containers[].securityContext.capabilities.add[]
- 描述
- Capability represent POSIX capabilities type
- 类型
string
.spec.init_containers[].securityContext.capabilities.drop
- 描述
- Removed capabilities
- 类型
array
.spec.init_containers[].securityContext.capabilities.drop[]
- 描述
- Capability represent POSIX capabilities type
- 类型
string
.spec.init_containers[].securityContext.seLinuxOptions
- 描述
- The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows.
- 类型
object
.spec.init_containers[].securityContext.seccompProfile
- 描述
- The seccomp options to use by this container. If seccomp options are provided at both the pod & container level, the container options override the pod options. Note that this field cannot be set when spec.os.name is windows.
- 类型
object- 必填
type
.spec.init_containers[].securityContext.windowsOptions
- 描述
- The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is linux.
- 类型
object
.spec.init_containers[].startupProbe
- 描述
- StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
- 类型
object
.spec.init_containers[].startupProbe.exec
- 描述
- Exec specifies the action to take.
- 类型
object
.spec.init_containers[].startupProbe.exec.command
- 描述
- Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
- 类型
array
.spec.init_containers[].startupProbe.exec.command[]
- 类型
string
.spec.init_containers[].startupProbe.grpc
- 描述
- GRPC specifies an action involving a GRPC port.
- 类型
object- 必填
port
.spec.init_containers[].startupProbe.httpGet
- 描述
- HTTPGet specifies the http request to perform.
- 类型
object- 必填
port
.spec.init_containers[].startupProbe.httpGet.httpHeaders
- 描述
- Custom headers to set in the request. HTTP allows repeated headers.
- 类型
array
.spec.init_containers[].startupProbe.httpGet.httpHeaders[]
- 描述
- HTTPHeader describes a custom header to be used in HTTP probes
- 类型
object- 必填
namevalue
.spec.init_containers[].startupProbe.tcpSocket
- 描述
- TCPSocket specifies an action involving a TCP port.
- 类型
object- 必填
port
.spec.init_containers[].volumeDevices
- 描述
- volumeDevices is the list of block devices to be used by the container.
- 类型
array
.spec.init_containers[].volumeDevices[]
- 描述
- volumeDevice describes a mapping of a raw block device within a container.
- 类型
object- 必填
devicePathname
.spec.init_containers[].volumeMounts
- 描述
- Pod volumes to mount into the container's filesystem. Cannot be updated.
- 类型
array
.spec.init_containers[].volumeMounts[]
- 描述
- VolumeMount describes a mounting of a Volume within a container.
- 类型
object- 必填
mountPathname
.spec.initContainers
- 描述
- InitContainers defines initialization containers for the pod
- 类型
array
.spec.initContainers[]
- 描述
- A single application container that you want to run within a pod.
- 类型
object- 必填
name
.spec.initContainers[].args
- 描述
- Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
- 类型
array
.spec.initContainers[].args[]
- 类型
string
.spec.initContainers[].command
- 描述
- Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
- 类型
array
.spec.initContainers[].command[]
- 类型
string
.spec.initContainers[].env
- 描述
- List of environment variables to set in the container. Cannot be updated.
- 类型
array
.spec.initContainers[].env[]
- 描述
- EnvVar represents an environment variable present in a Container.
- 类型
object- 必填
name
.spec.initContainers[].env[].valueFrom
- 描述
- Source for the environment variable's value. Cannot be used if value is not empty.
- 类型
object
.spec.initContainers[].env[].valueFrom.configMapKeyRef
- 描述
- Selects a key of a ConfigMap.
- 类型
object- 必填
key
.spec.initContainers[].env[].valueFrom.fieldRef
- 描述
- Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.
- 类型
object- 必填
fieldPath
.spec.initContainers[].env[].valueFrom.resourceFieldRef
- 描述
- Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.
- 类型
object- 必填
resource
.spec.initContainers[].env[].valueFrom.secretKeyRef
- 描述
- Selects a key of a secret in the pod's namespace
- 类型
object- 必填
key
.spec.initContainers[].envFrom
- 描述
- List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.
- 类型
array
.spec.initContainers[].envFrom[]
- 描述
- EnvFromSource represents the source of a set of ConfigMaps
- 类型
object
.spec.initContainers[].envFrom[].configMapRef
- 描述
- The ConfigMap to select from
- 类型
object
.spec.initContainers[].envFrom[].secretRef
- 描述
- The Secret to select from
- 类型
object
.spec.initContainers[].lifecycle
- 描述
- Actions that the management system should take in response to container lifecycle events. Cannot be updated.
- 类型
object
.spec.initContainers[].lifecycle.postStart
- 描述
- PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
- 类型
object
.spec.initContainers[].lifecycle.postStart.exec
- 描述
- Exec specifies the action to take.
- 类型
object
.spec.initContainers[].lifecycle.postStart.exec.command
- 描述
- Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
- 类型
array
.spec.initContainers[].lifecycle.postStart.exec.command[]
- 类型
string
.spec.initContainers[].lifecycle.postStart.httpGet
- 描述
- HTTPGet specifies the http request to perform.
- 类型
object- 必填
port
.spec.initContainers[].lifecycle.postStart.httpGet.httpHeaders
- 描述
- Custom headers to set in the request. HTTP allows repeated headers.
- 类型
array
.spec.initContainers[].lifecycle.postStart.httpGet.httpHeaders[]
- 描述
- HTTPHeader describes a custom header to be used in HTTP probes
- 类型
object- 必填
namevalue
.spec.initContainers[].lifecycle.postStart.sleep
- 描述
- Sleep represents the duration that the container should sleep before being terminated.
- 类型
object- 必填
seconds
.spec.initContainers[].lifecycle.postStart.tcpSocket
- 描述
- Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept for the backward compatibility. There are no validation of this field and lifecycle hooks will fail in runtime when tcp handler is specified.
- 类型
object- 必填
port
.spec.initContainers[].lifecycle.preStop
- 描述
- PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The Pod's termination grace period countdown begins before the PreStop hook is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period (unless delayed by finalizers). Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
- 类型
object
.spec.initContainers[].lifecycle.preStop.exec
- 描述
- Exec specifies the action to take.
- 类型
object
.spec.initContainers[].lifecycle.preStop.exec.command
- 描述
- Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
- 类型
array
.spec.initContainers[].lifecycle.preStop.exec.command[]
- 类型
string
.spec.initContainers[].lifecycle.preStop.httpGet
- 描述
- HTTPGet specifies the http request to perform.
- 类型
object- 必填
port
.spec.initContainers[].lifecycle.preStop.httpGet.httpHeaders
- 描述
- Custom headers to set in the request. HTTP allows repeated headers.
- 类型
array
.spec.initContainers[].lifecycle.preStop.httpGet.httpHeaders[]
- 描述
- HTTPHeader describes a custom header to be used in HTTP probes
- 类型
object- 必填
namevalue
.spec.initContainers[].lifecycle.preStop.sleep
- 描述
- Sleep represents the duration that the container should sleep before being terminated.
- 类型
object- 必填
seconds
.spec.initContainers[].lifecycle.preStop.tcpSocket
- 描述
- Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept for the backward compatibility. There are no validation of this field and lifecycle hooks will fail in runtime when tcp handler is specified.
- 类型
object- 必填
port
.spec.initContainers[].livenessProbe
- 描述
- Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
- 类型
object
.spec.initContainers[].livenessProbe.exec
- 描述
- Exec specifies the action to take.
- 类型
object
.spec.initContainers[].livenessProbe.exec.command
- 描述
- Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
- 类型
array
.spec.initContainers[].livenessProbe.exec.command[]
- 类型
string
.spec.initContainers[].livenessProbe.grpc
- 描述
- GRPC specifies an action involving a GRPC port.
- 类型
object- 必填
port
.spec.initContainers[].livenessProbe.httpGet
- 描述
- HTTPGet specifies the http request to perform.
- 类型
object- 必填
port
.spec.initContainers[].livenessProbe.httpGet.httpHeaders
- 描述
- Custom headers to set in the request. HTTP allows repeated headers.
- 类型
array
.spec.initContainers[].livenessProbe.httpGet.httpHeaders[]
- 描述
- HTTPHeader describes a custom header to be used in HTTP probes
- 类型
object- 必填
namevalue
.spec.initContainers[].livenessProbe.tcpSocket
- 描述
- TCPSocket specifies an action involving a TCP port.
- 类型
object- 必填
port
.spec.initContainers[].ports
- 描述
- List of ports to expose from the container. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated.
- 类型
array
.spec.initContainers[].ports[]
- 描述
- ContainerPort represents a network port in a single container.
- 类型
object- 必填
containerPort
.spec.initContainers[].readinessProbe
- 描述
- Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
- 类型
object
.spec.initContainers[].readinessProbe.exec
- 描述
- Exec specifies the action to take.
- 类型
object
.spec.initContainers[].readinessProbe.exec.command
- 描述
- Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
- 类型
array
.spec.initContainers[].readinessProbe.exec.command[]
- 类型
string
.spec.initContainers[].readinessProbe.grpc
- 描述
- GRPC specifies an action involving a GRPC port.
- 类型
object- 必填
port
.spec.initContainers[].readinessProbe.httpGet
- 描述
- HTTPGet specifies the http request to perform.
- 类型
object- 必填
port
.spec.initContainers[].readinessProbe.httpGet.httpHeaders
- 描述
- Custom headers to set in the request. HTTP allows repeated headers.
- 类型
array
.spec.initContainers[].readinessProbe.httpGet.httpHeaders[]
- 描述
- HTTPHeader describes a custom header to be used in HTTP probes
- 类型
object- 必填
namevalue
.spec.initContainers[].readinessProbe.tcpSocket
- 描述
- TCPSocket specifies an action involving a TCP port.
- 类型
object- 必填
port
.spec.initContainers[].resizePolicy
- 描述
- Resources resize policy for the container.
- 类型
array
.spec.initContainers[].resizePolicy[]
- 描述
- ContainerResizePolicy represents resource resize policy for the container.
- 类型
object- 必填
resourceNamerestartPolicy
.spec.initContainers[].resources
- 描述
- Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
- 类型
object
.spec.initContainers[].resources.claims
- 描述
- Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable. It can only be set for containers.
- 类型
array
.spec.initContainers[].resources.claims[]
- 描述
- ResourceClaim references one entry in PodSpec.ResourceClaims.
- 类型
object- 必填
name
.spec.initContainers[].resources.limits
- 描述
- Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
- 类型
object
.spec.initContainers[].resources.requests
- 描述
- Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
- 类型
object
.spec.initContainers[].securityContext
- 描述
- SecurityContext defines the security options the container should be run with. If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext. More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
- 类型
object
.spec.initContainers[].securityContext.capabilities
- 描述
- The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. Note that this field cannot be set when spec.os.name is windows.
- 类型
object
.spec.initContainers[].securityContext.capabilities.add
- 描述
- Added capabilities
- 类型
array
.spec.initContainers[].securityContext.capabilities.add[]
- 描述
- Capability represent POSIX capabilities type
- 类型
string
.spec.initContainers[].securityContext.capabilities.drop
- 描述
- Removed capabilities
- 类型
array
.spec.initContainers[].securityContext.capabilities.drop[]
- 描述
- Capability represent POSIX capabilities type
- 类型
string
.spec.initContainers[].securityContext.seLinuxOptions
- 描述
- The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows.
- 类型
object
.spec.initContainers[].securityContext.seccompProfile
- 描述
- The seccomp options to use by this container. If seccomp options are provided at both the pod & container level, the container options override the pod options. Note that this field cannot be set when spec.os.name is windows.
- 类型
object- 必填
type
.spec.initContainers[].securityContext.windowsOptions
- 描述
- The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is linux.
- 类型
object
.spec.initContainers[].startupProbe
- 描述
- StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
- 类型
object
.spec.initContainers[].startupProbe.exec
- 描述
- Exec specifies the action to take.
- 类型
object
.spec.initContainers[].startupProbe.exec.command
- 描述
- Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
- 类型
array
.spec.initContainers[].startupProbe.exec.command[]
- 类型
string
.spec.initContainers[].startupProbe.grpc
- 描述
- GRPC specifies an action involving a GRPC port.
- 类型
object- 必填
port
.spec.initContainers[].startupProbe.httpGet
- 描述
- HTTPGet specifies the http request to perform.
- 类型
object- 必填
port
.spec.initContainers[].startupProbe.httpGet.httpHeaders
- 描述
- Custom headers to set in the request. HTTP allows repeated headers.
- 类型
array
.spec.initContainers[].startupProbe.httpGet.httpHeaders[]
- 描述
- HTTPHeader describes a custom header to be used in HTTP probes
- 类型
object- 必填
namevalue
.spec.initContainers[].startupProbe.tcpSocket
- 描述
- TCPSocket specifies an action involving a TCP port.
- 类型
object- 必填
port
.spec.initContainers[].volumeDevices
- 描述
- volumeDevices is the list of block devices to be used by the container.
- 类型
array
.spec.initContainers[].volumeDevices[]
- 描述
- volumeDevice describes a mapping of a raw block device within a container.
- 类型
object- 必填
devicePathname
.spec.initContainers[].volumeMounts
- 描述
- Pod volumes to mount into the container's filesystem. Cannot be updated.
- 类型
array
.spec.initContainers[].volumeMounts[]
- 描述
- VolumeMount describes a mounting of a Volume within a container.
- 类型
object- 必填
mountPathname
.spec.maintenanceWindows
- 描述
- MaintenanceWindows defines time windows for maintenance operations
- 类型
array
.spec.maintenanceWindows[]
- 描述
- MaintenanceWindow describes the time window when the operator is allowed to do maintenance on a cluster.
- 类型
object
.spec.masterServiceAnnotations
- 描述
- MasterServiceAnnotations defines annotations for master service
- 类型
object
.spec.nodeAffinity
- 描述
- NodeAffinity defines node affinity rules for pod scheduling
- 类型
object
.spec.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution
- 描述
- The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred.
- 类型
array
.spec.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[]
- 描述
- An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).
- 类型
object- 必填
preferenceweight
.spec.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[].preference
- 描述
- A node selector term, associated with the corresponding weight.
- 类型
object
.spec.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[].preference.matchExpressions
- 描述
- A list of node selector requirements by node's labels.
- 类型
array
.spec.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[].preference.matchExpressions[]
- 描述
- A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
- 类型
object- 必填
keyoperator
.spec.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[].preference.matchExpressions[].values
- 描述
- An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.
- 类型
array
.spec.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[].preference.matchExpressions[].values[]
- 类型
string
.spec.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[].preference.matchFields
- 描述
- A list of node selector requirements by node's fields.
- 类型
array
.spec.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[].preference.matchFields[]
- 描述
- A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
- 类型
object- 必填
keyoperator
.spec.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[].preference.matchFields[].values
- 描述
- An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.
- 类型
array
.spec.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[].preference.matchFields[].values[]
- 类型
string
.spec.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution
- 描述
- If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node.
- 类型
object- 必填
nodeSelectorTerms
.spec.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms
- 描述
- Required. A list of node selector terms. The terms are ORed.
- 类型
array
.spec.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[]
- 描述
- A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm.
- 类型
object
.spec.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[].matchExpressions
- 描述
- A list of node selector requirements by node's labels.
- 类型
array
.spec.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[].matchExpressions[]
- 描述
- A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
- 类型
object- 必填
keyoperator
.spec.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[].matchExpressions[].values
- 描述
- An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.
- 类型
array
.spec.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[].matchExpressions[].values[]
- 类型
string
.spec.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[].matchFields
- 描述
- A list of node selector requirements by node's fields.
- 类型
array
.spec.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[].matchFields[]
- 描述
- A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
- 类型
object- 必填
keyoperator
.spec.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[].matchFields[].values
- 描述
- An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.
- 类型
array
.spec.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[].matchFields[].values[]
- 类型
string
.spec.nodeSelector
- 描述
- NodeSelector defines node labels for pod scheduling
- 类型
object
.spec.patroni
- 描述
- Patroni configuration for cluster management
- 类型
object
.spec.patroni.initdb
- 描述
- InitDB parameters for database initialization
- 类型
object
.spec.patroni.pg_hba
- 描述
- Custom pg_hba.conf entries
- 类型
array
.spec.patroni.pg_hba[]
- 类型
string
.spec.patroni.slots
- 描述
- Replication slots configuration
- 类型
object
.spec.pgpool2Settings
- 描述
- Pgpool2Settings defines Pgpool-II configuration
- 类型
object
.spec.pgpool2Settings.resources
- 描述
- Resources specifies CPU and memory requirements for Pgpool-II containers
- 类型
object
.spec.pgpool2Settings.resources.limits
- 描述
- ResourceLimits defines the maximum resources allowed for containers
- 类型
object
.spec.pgpool2Settings.resources.requests
- 描述
- ResourceRequests defines the minimum resources required for containers
- 类型
object
.spec.podAnnotations
- 描述
- PodAnnotations defines annotations to add to pods
- 类型
object
.spec.postgresql
- 描述
- PostgreSQL version and configuration parameters including: - PostgreSQL major version (e.g. "14") - Configuration parameters (postgresql.conf) - Configuration parameters (postgresql.conf) PostgreSQL version and configuration parameters
- 类型
object- 必填
version
.spec.postgresql.parameters
- 描述
- PostgreSQL configuration parameters (postgresql.conf)
- 类型
object
.spec.preparedDatabases
- 描述
- PreparedDatabases defines databases with pre-configured schemas and roles
- 类型
object
.spec.repairOption
- 描述
- RepairOption defines options for cluster repair
- 类型
object
.spec.replicaServiceAnnotations
- 描述
- ReplicaServiceAnnotations defines annotations for replica service
- 类型
object
.spec.resources
- 描述
- Resource requests and limits for PostgreSQL containers
- 类型
object
.spec.resources.limits
- 描述
- ResourceLimits defines the maximum resources allowed for containers
- 类型
object
.spec.resources.requests
- 描述
- ResourceRequests defines the minimum resources required for containers
- 类型
object
.spec.serviceAnnotations
- 描述
- ServiceAnnotations defines annotations to add to services
- 类型
object
.spec.serviceTemplates
- 描述
- ServiceTemplates defines custom service templates
- 类型
object
.spec.sidecars
- 描述
- Sidecars defines additional containers to run in the pod
- 类型
array
.spec.sidecars[]
- 描述
- Sidecar defines a container to be run in the same pod as the Postgres container.
- 类型
object
.spec.sidecars[].env
- 描述
- Env defines environment variables to set in the sidecar container
- 类型
array
.spec.sidecars[].env[]
- 描述
- EnvVar represents an environment variable present in a Container.
- 类型
object- 必填
name
.spec.sidecars[].env[].valueFrom
- 描述
- Source for the environment variable's value. Cannot be used if value is not empty.
- 类型
object
.spec.sidecars[].env[].valueFrom.configMapKeyRef
- 描述
- Selects a key of a ConfigMap.
- 类型
object- 必填
key
.spec.sidecars[].env[].valueFrom.fieldRef
- 描述
- Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.
- 类型
object- 必填
fieldPath
.spec.sidecars[].env[].valueFrom.resourceFieldRef
- 描述
- Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.
- 类型
object- 必填
resource
.spec.sidecars[].env[].valueFrom.secretKeyRef
- 描述
- Selects a key of a secret in the pod's namespace
- 类型
object- 必填
key
.spec.sidecars[].ports
- 描述
- Ports defines the network ports to expose from the sidecar container
- 类型
array
.spec.sidecars[].ports[]
- 描述
- ContainerPort represents a network port in a single container.
- 类型
object- 必填
containerPort
.spec.sidecars[].resources
- 描述
- Resources defines CPU and memory requirements for the sidecar container
- 类型
object
.spec.sidecars[].resources.limits
- 描述
- ResourceLimits defines the maximum resources allowed for containers
- 类型
object
.spec.sidecars[].resources.requests
- 描述
- ResourceRequests defines the minimum resources required for containers
- 类型
object
.spec.standby
- 描述
- StandbyCluster defines configuration for standby clusters
- 类型
object
.spec.streams
- 描述
- Streams defines configuration for streaming data
- 类型
array
.spec.streams[]
- 描述
- Stream defines properties for creating FabricEventStream resources
- 类型
object- 必填
applicationIddatabasetables
.spec.streams[].filter
- 描述
- Filter specifies optional filtering conditions for the event stream
- 类型
object
.spec.streams[].tables
- 描述
- Tables defines the mapping of table names to their stream configurations
- 类型
object
.spec.tls
- 描述
- TLS defines TLS configuration for the cluster
- 类型
object
.spec.tolerations
- 描述
- Tolerations defines pod tolerations for node taints
- 类型
array
.spec.tolerations[]
- 描述
- The pod this Toleration is attached to tolerates any taint that matches the triple <key,value,effect> using the matching operator <operator>.
- 类型
object
.spec.upgradeOption
- 描述
- UpgradeOption defines upgrade options
- 类型
object
.spec.users
- 描述
- Users defines additional PostgreSQL users and their roles
- 类型
object
.spec.usersCustomizedPasswd
- 描述
- UsersCustomizedPasswd stores custom passwords for users
- 类型
object
.spec.usersWithInPlaceSecretRotation
- 描述
- UsersWithInPlaceSecretRotation defines users requiring in-place secret rotation
- 类型
array
.spec.usersWithInPlaceSecretRotation[]
- 类型
string
.spec.usersWithSecretRotation
- 描述
- UsersWithSecretRotation defines users requiring secret rotation
- 类型
array
.spec.usersWithSecretRotation[]
- 类型
string
.spec.volume
- 描述
- Volume configuration for PostgreSQL data storage
- 类型
object- 必填
size
.spec.volume.selector
- 描述
- Selector for matching existing PersistentVolumeClaims
- 类型
object
.spec.volume.selector.matchExpressions
- 描述
- matchExpressions is a list of label selector requirements. The requirements are ANDed.
- 类型
array
.spec.volume.selector.matchExpressions[]
- 描述
- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
- 类型
object- 必填
keyoperator
.spec.volume.selector.matchExpressions[].values
- 描述
- values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
- 类型
array
.spec.volume.selector.matchExpressions[].values[]
- 类型
string
.spec.volume.selector.matchLabels
- 描述
- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
- 类型
object
.status
- 描述
- Status defines the observed state of the PostgreSQL cluster including current status, patroni state, and any error messages.
- 类型
object
.status.patroniStatus
- 描述
- PatroniStatus contains status information for each Patroni-managed PostgreSQL instance
- 类型
object
.status.upgradeStatus
- 描述
- UpgradeStatus tracks version information for operator and custom resource upgrades
- 类型
object
API 端点
可用的 API 端点如下:
/apis/acid.zalan.do/v1/namespaces/{namespace}/postgresqlsDELETE: delete collection of postgresqlGET: list objects of kind postgresqlPOST: create a new postgresql
/apis/acid.zalan.do/v1/namespaces/{namespace}/postgresqls/{name}DELETE: delete the specified postgresqlGET: read the specified postgresqlPATCH: partially update the specified postgresqlPUT: replace the specified postgresql
/apis/acid.zalan.do/v1/namespaces/{namespace}/postgresqls/{name}/statusGET: read status of the specified postgresqlPATCH: partially update status of the specified postgresqlPUT: replace status of the specified postgresql
/apis/acid.zalan.do/v1/namespaces/{namespace}/postgresqls
- HTTP 方法
DELETE- 描述
- delete collection of postgresql
- HTTP 响应
- HTTP 方法
GET- 描述
- list objects of kind postgresql
- HTTP 响应
- HTTP 方法
POST- 描述
- create a new postgresql
- 查询参数
- 请求体参数
- HTTP 响应
/apis/acid.zalan.do/v1/namespaces/{namespace}/postgresqls/{name}
- HTTP 方法
DELETE- 描述
- delete the specified postgresql
- 查询参数
- HTTP 响应
- HTTP 方法
GET- 描述
- read the specified postgresql
- HTTP 响应
- HTTP 方法
PATCH- 描述
- partially update the specified postgresql
- 查询参数
- HTTP 响应
- HTTP 方法
PUT- 描述
- replace the specified postgresql
- 查询参数
- 请求体参数
- HTTP 响应
/apis/acid.zalan.do/v1/namespaces/{namespace}/postgresqls/{name}/status
- HTTP 方法
GET- 描述
- read status of the specified postgresql
- HTTP 响应
- HTTP 方法
PATCH- 描述
- partially update status of the specified postgresql
- 查询参数
- HTTP 响应
- HTTP 方法
PUT- 描述
- replace status of the specified postgresql
- 查询参数
- 请求体参数
- HTTP 响应