Mirantis Container Cloud (MCC) becomes part of Mirantis OpenStack for Kubernetes (MOSK)!
Starting with MOSK 25.2, the MOSK documentation set covers all product layers, including MOSK management (formerly Container Cloud). This means everything you need is in one place. Some legacy names may remain in the code and documentation and will be updated in future releases. The separate Container Cloud documentation site will be retired, so please update your bookmarks for continued easy access to the latest content.
TLSConfig resource¶
This section describes the TLSConfig resource used in
MOSK to configure TLS certificates for cluster
applications.
Warning
The kubectl apply command automatically saves the
applied data as plain text into the
kubectl.kubernetes.io/last-applied-configuration annotation of the
corresponding object. This may result in revealing sensitive data in this
annotation when creating or modifying the object.
Therefore, do not use kubectl apply on this object. Use kubectl create, kubectl patch, or kubectl edit instead.
If you used kubectl apply on this object, you
can remove the kubectl.kubernetes.io/last-applied-configuration
annotation from the object using kubectl edit.
The TLSConfig CR contains the following fields:
apiVersionAPI version of the object that is
kaas.mirantis.com/v1alpha1.
kindObject type that is
TLSConfig.
metadataThe
metadataobject field of theTLSConfigresource contains the following fields:nameName of the public key.
namespaceProject where the TLS certificate is created.
specThe
specobject field contains the configuration to apply for an application. It contains the following fields:serverNameHost name of a server.
serverCertificateCertificate to authenticate server’s identity to a client. A valid certificate bundle can be passed. The server certificate must be on the top of the chain.
privateKeyReference to the
Secretobject that contains a private key. A private key is a key for the server. It must correspond to the public key used in the server certificate.keyKey name in the secret.
nameSecret name.
caCertificateCertificate that issued the server certificate. The top-most intermediate certificate should be used if a CA certificate is unavailable.
Configuration example:
apiVersion: kaas.mirantis.com/v1alpha1
kind: TLSConfig
metadata:
namespace: default
name: keycloak
spec:
caCertificate: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0...
privateKey:
secret:
key: value
name: keycloak-s7mcj
serverCertificate: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0...
serverName: keycloak.mirantis.com