Skip to content

Configuration#

The Mirantis Kubernetes Engine 4 configuration file contains an opinionated configuration on how to set up an MKE 4 cluster.

With the mke4.yaml configuration file, you can:

  • Define the number of nodes in the cluster.
  • Define ways to access the nodes.
  • Enable or disable certain MKE 4 components.
  • Configure MKE 4 component features

Once set, the mke4.yaml configuration file is translated into a more complex k0rdent template that contains the granular details on how to set up the cluster.

Create configuration#

  1. Generate the default mke4.yaml configuration file by running:

    mkectl init > mke4.yaml
    
  2. Modify the hosts section of the mke4.yaml configuration file, to apply the configuration to a set of pre-existing machines that you have set up in advance:

    hosts:
    - ssh:
        address: 18.224.23.158
        keyPath: "/absolute/path/to/private/key.pem"
        port: 22
        user: root
      role: controller+worker
      # privateAddress: 1.2.3.4  # optional, sets kubelet's --node-ip
      # privateInterface: eth0   # optional, mutually exclusive with privateAddress
                                 # when set, used to determine privateAddress
    - ssh:
        address: 18.224.23.158
        keyPath: "/absolute/path/to/private/key.pem"
        port: 22
        user: ubuntu
      role: worker
    - ssh:
        address: 18.117.87.45
        keyPath: "/absolute/path/to/private/key.pem"
        port: 22
        user: ubuntu
      role: worker
    

Choose services#

A core component of MKE 4 is a default set of curated and tested services that you can install by running mkectl init and subsequently applying the generated configuration file.

Using the mke4.yaml configuration file, you can enable and disable a number of the available MKE 4 services, as well as modify the settings of those services.