MicroShift reads its configuration from /etc/microshift/config.yaml. All fields are optional; if omitted, the default value is used.
The name of the Kubernetes cluster.
- Type: string
- Default:
microshift
The base DNS domain for the cluster.
- Type: string
- Default:
microshift.local
The IP address to use for the node. If left empty, MicroShift auto-detects the default route interface IP.
- Type: string
- Default:
""(auto-detected)
The CIDR range used for Kubernetes ClusterIP services.
- Type: string
- Default:
10.96.0.0/16
The CIDR range used for pod networking.
- Type: string
- Default:
10.42.0.0/16
The directory where MicroShift stores its state, including certificates, kubeconfig files, component configuration, and etcd data.
- Type: string
- Default:
/var/lib/microshift
The logging verbosity level.
- Type: string
- Allowed values:
debug,info,warn,error - Default:
info
The CNI plugin to use for pod networking.
- Type: string
- Allowed values:
kindnet,ovn-kubernetes - Default:
kindnet
Maximum memory for the etcd process in megabytes. Set to 0 to disable the limit.
- Type: integer
- Default:
0(no limit)
Configures persistent storage for workloads.
The storage provisioner to deploy.
- Type: string
- Allowed values:
local-path,lvms,nfs,none - Default:
local-path
Host directory where local-path-provisioner creates persistent volumes.
- Type: string
- Default:
/var/lib/microshift/storage - Used when:
storage.driver: local-path
Name of the LVM volume group for TopoLVM.
- Type: string
- Required when:
storage.driver: lvms
Block device to auto-create the volume group from. If empty, the VG must already exist.
- Type: string
- Default:
""(VG must pre-exist) - Used when:
storage.driver: lvms
NFS server hostname or IP address.
- Type: string
- Required when:
storage.driver: nfs
NFS export path on the server.
- Type: string
- Required when:
storage.driver: nfs
clusterName: my-edge-cluster
nodeIP: "192.168.1.100"clusterName: production-edge
nodeIP: "10.0.0.5"
storage:
driver: lvms
lvms:
volumeGroup: microshift-vg
device: /dev/sdbclusterName: shared-storage-edge
nodeIP: "192.168.1.50"
storage:
driver: nfs
nfs:
server: "192.168.1.10"
path: "/exports/microshift"clusterName: my-edge-cluster
baseDomain: edge.example.com
nodeIP: "192.168.1.100"
serviceCIDR: "10.96.0.0/16"
clusterCIDR: "10.42.0.0/16"
dataDir: "/var/lib/microshift"
logLevel: "debug"
cni: "kindnet"
etcdMemoryLimit: 512
storage:
driver: local-path
localPath:
storagePath: "/var/lib/microshift/storage"