kube-apiserver options#
Common configuration file section: spec.apiServer
-
The
externalAddressfield is not available for child clusters. Instead, this address is automatically generated by the CAPI provider.To obtain the created external address:
CHILD_CLUSTER_NAME=the-name-of-the-child-cluster EXTERNAL_ADDRESS="https://$(kubectl -n k0rdent get awscluster $CHILD_CLUSTER_NAME -o jsonpath='{.status.networkStatus.apiServerElb.dnsName}'):30001"You can use the address generated under the
EXTERNAL_ADDRESSvariable to access Ingress controller and the MKE dashboard. -
Use the
encryptionConfigSecretparameter instead ofencryptionProvider. To use the customEncryptionConfig, you must create a secret in the k0rdent namespace with a keyvalueand the content of the custom configuration as the value, and then you need to set the name of this secret to theencryptionConfigSecretproperty.Example:
-
Create the secret with the content of the prepared
EncryptionConfigin thek0rdentnamespace where theMkeChildConfigobject will be applied:kubectl -n k0rdent create secret generic custom-encryption-config --from-file=value=path/to/custom/config.cfg -
Set the name of the secret to
MkeChildConfig:spec: apiServer: encryptionConfigSecret: custom-encryption-config
Refer to kube-apiserver for more details.