pub struct PodCertificateProjection {
pub certificate_chain_path: Option<String>,
pub credential_bundle_path: Option<String>,
pub key_path: Option<String>,
pub key_type: String,
pub max_expiration_seconds: Option<i32>,
pub signer_name: String,
}
Expand description
PodCertificateProjection provides a private key and X.509 certificate in the pod filesystem.
Fields§
§certificate_chain_path: Option<String>
Write the certificate chain at this path in the projected volume.
Most applications should use credentialBundlePath. When using keyPath and certificateChainPath, your application needs to check that the key and leaf certificate are consistent, because it is possible to read the files mid-rotation.
credential_bundle_path: Option<String>
Write the credential bundle at this path in the projected volume.
The credential bundle is a single file that contains multiple PEM blocks. The first PEM block is a PRIVATE KEY block, containing a PKCS#8 private key.
The remaining blocks are CERTIFICATE blocks, containing the issued certificate chain from the signer (leaf and any intermediates).
Using credentialBundlePath lets your Pod’s application code make a single atomic read that retrieves a consistent key and certificate chain. If you project them to separate files, your application code will need to additionally check that the leaf certificate was issued to the key.
key_path: Option<String>
Write the key at this path in the projected volume.
Most applications should use credentialBundlePath. When using keyPath and certificateChainPath, your application needs to check that the key and leaf certificate are consistent, because it is possible to read the files mid-rotation.
key_type: String
The type of keypair Kubelet will generate for the pod.
Valid values are “RSA3072”, “RSA4096”, “ECDSAP256”, “ECDSAP384”, “ECDSAP521”, and “ED25519”.
max_expiration_seconds: Option<i32>
maxExpirationSeconds is the maximum lifetime permitted for the certificate.
Kubelet copies this value verbatim into the PodCertificateRequests it generates for this projection.
If omitted, kube-apiserver will set it to 86400(24 hours). kube-apiserver will reject values shorter than 3600 (1 hour). The maximum allowable value is 7862400 (91 days).
The signer implementation is then free to issue a certificate with any lifetime shorter than MaxExpirationSeconds, but no shorter than 3600 seconds (1 hour). This constraint is enforced by kube-apiserver. kubernetes.io
signers will never issue certificates with a lifetime longer than 24 hours.
signer_name: String
Kubelet’s generated CSRs will be addressed to this signer.
Trait Implementations§
Source§impl Clone for PodCertificateProjection
impl Clone for PodCertificateProjection
Source§fn clone(&self) -> PodCertificateProjection
fn clone(&self) -> PodCertificateProjection
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for PodCertificateProjection
impl Debug for PodCertificateProjection
Source§impl DeepMerge for PodCertificateProjection
impl DeepMerge for PodCertificateProjection
Source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
other
into self
.