Skip to content

Latest commit

 

History

History
89 lines (79 loc) · 1.65 KB

operating-system.md

File metadata and controls

89 lines (79 loc) · 1.65 KB

Operating system

Support matrix

Cloud provider

Ubuntu Container Linux
AWS
Openstack
Digitalocean
Hetzner x

Configuring a operating system

The operating system to use can be set via machine.spec.providerConfig.operatingSystem. Allowed values:

  • coreos
  • ubuntu

OS specific settings can be set via machine.spec.providerConfig.operatingSystemSpec.

Ubuntu

apiVersion: "cluster.k8s.io/v1alpha1"
kind: MachineDeployment
metadata:
  name: machine1
  namespace: kube-system
spec:
  paused: false
  replicas: 1
  strategy:
    type: RollingUpdate
    rollingUpdate:
      maxSurge: 1
      maxUnavailable: 0
  minReadySeconds: 0
  selector:
    matchLabels:
      foo: bar
  template:
    metadata:
      labels:
        foo: bar
    spec:
      providerConfig:
        value:
          ...
          operatingSystem: "ubuntu"
          operatingSystemSpec:
            # do a apt-get dist-upgrade on start and reboot if required
            distUpgradeOnBoot: true

Container Linux

apiVersion: "cluster.k8s.io/v1alpha1"
kind: MachineDeployment
metadata:
  name: machine1
  namespace: kube-system
spec:
  paused: false
  replicas: 1
  strategy:
    type: RollingUpdate
    rollingUpdate:
      maxSurge: 1
      maxUnavailable: 0
  minReadySeconds: 0
  selector:
    matchLabels:
      foo: bar
  template:
    metadata:
      labels:
        foo: bar
    spec:
      providerConfig:
        value:
          ...
          operatingSystem: "coreos"
          operatingSystemSpec:
            # disable auto update
            disableAutoUpdate: true