Configuration#
Configuration options are available for the Envoy Gateway controller and for the
management ingress. You can configure these components using either the mkectl
command-line tool or the MKE 4 Dashboard.
Envoy Gateway controller#
To configure Envoy Gateway controller from the command line:
-
Obtain the default
mke4.yamlconfiguration file:mkectl init -
Navigate to the
spec.envoyGatewaysection of the configuration file, and set the parameters as needed.MKE 4 supports the Envoy Gateway controller configurations detailed below:
Configuration Description nodeSelectorSpecifies a map for determining the nodes on which to run the Envoy Gateway controller deployment. Merged with required default selectors: kubernetes.io/os: linuxnode-role.kubernetes.io/control-plane: "true"
replicaCountIndicates the number of replicas for the Envoy Gateway controller deployment. Note that replicaCountdefaults to the controller count when it is not explicitly set.resourcesSets the requestsandlimitsparameters for Envoy Gateway deployment. For both parameters, specify onlycpuandmemory.tolerationsSets the tolerations that are used for the Envoy Gateway controller deployment. By default, MKE 4 adds appropriate tolerations for scheduling the Envoy Gateway controller deployment pods on controller nodes. If you specify your own tolerations, however, you must also include any that are require scheduling on the controller nodes. -
Apply the configuration:
mkectl apply -f mke4.yaml
To configure Envoy Gateway controller using the MKE 4 Dashboard:
-
Log in to the MKE 4 Dashboard as an administrator.
-
In the left-side navigation panel, navigate to Admin Settings > Gateway.
-
Select the Controller tab.
-
Adjust the settings as needed:
-
Replica count: Number of controller Pod replicas. When left blank, the setting defaults to one replica per control-plane node.
-
Tolerations: The default control-plane tolerations,
node-role.kubernetes.io/masterandnode-role.kubernetes.io/control-plane, are locked and cannot be removed using the MKE 4 Dashboard. You can, though, add your own additional tolerations. -
Node selector: The default
kubernetes.io/os:linux selector is locked and cannot be removed. You can, though, add your own additional key/value pairs. -
Resources → Requests
-
Resources → Limits
-
-
Click Save settings.
Management ingress#
To configure Management ingress from the command line:
-
Obtain the default
mke4.yamlconfiguration file:mkectl init -
Navigate to the
spec.gatewayMKEIngresssection of the configuration file, and set the parameters as needed.MKE 4 supports the management ingress configurations detailed below:
Configuration Description nodePorts.HTTPHTTP node port for management ingress. Unsupported and can be removed at any time. nodePorts.HTTPSHTTPS node port for management ingress. Ensure that this matches the target port of the MKE 4 Dashboard in your load balancer configuration. -
Apply the configuration:
mkectl apply -f mke4.yaml
To configure management ingress using the MKE 4 Dashboard:
-
Log in to the MKE 4 Dashboard as an administrator.
-
In the left-side navigation panel, navigate to Admin Settings > Gateway.
-
Select the Management ingress tab.
-
Adjust the HTTP and HTTPS port settings as needed:
-
Service ports
-
Node ports
-
Click Save settings.