Skip to content
Snippets Groups Projects
Select Git revision
  • d2944d28130792f01cb2ec06955cdf687cd1ba61
  • master default protected
  • v2.28.0
  • v2.27.0
  • v2.25.1
  • v2.24.3
  • v2.26.0
  • v2.24.2
  • v2.25.0
  • v2.24.1
  • v2.22.2
  • v2.23.3
  • v2.24.0
  • v2.23.2
  • v2.23.1
  • v2.23.0
  • v2.22.1
  • v2.22.0
  • v2.21.0
  • v2.20.0
  • v2.19.1
  • v2.18.2
22 results

pipeline.Dockerfile

Blame
  • cluster-settings.tfvars 3.12 KiB
    # See: https://developers.upcloud.com/1.3/5-zones/
    zone     = "fi-hel1"
    username = "ubuntu"
    
    # Prefix to use for all resources to separate them from other resources
    prefix = "kubespray"
    
    inventory_file = "inventory.ini"
    
    #  Set the operating system using UUID or exact name
    template_name = "Ubuntu Server 20.04 LTS (Focal Fossa)"
    
    ssh_public_keys = [
      # Put your public SSH key here
      "ssh-rsa public key 1",
      "ssh-rsa public key 2",
    ]
    
    # check list of available plan https://developers.upcloud.com/1.3/7-plans/
    machines = {
      "control-plane-0" : {
        "node_type" : "master",
        # plan to use instead of custom cpu/mem
        "plan" : null,
        #number of cpu cores
        "cpu" : "2",
        #memory size in MB
        "mem" : "4096"
        # The size of the storage in GB
        "disk_size" : 250
        "additional_disks" : {}
      },
      "worker-0" : {
        "node_type" : "worker",
        # plan to use instead of custom cpu/mem
        "plan" : null,
        #number of cpu cores
        "cpu" : "2",
        #memory size in MB
        "mem" : "4096"
        # The size of the storage in GB
        "disk_size" : 250
        "additional_disks" : {
          # "some-disk-name-1": {
          #   "size": 100,
          #   "tier": "maxiops",
          # },
          # "some-disk-name-2": {
          #   "size": 100,
          #   "tier": "maxiops",
          # }
        }
      },
      "worker-1" : {
        "node_type" : "worker",
        # plan to use instead of custom cpu/mem
        "plan" : null,
        #number of cpu cores
        "cpu" : "2",
        #memory size in MB
        "mem" : "4096"
        # The size of the storage in GB
        "disk_size" : 250
        "additional_disks" : {
          # "some-disk-name-1": {
          #   "size": 100,
          #   "tier": "maxiops",
          # },
          # "some-disk-name-2": {
          #   "size": 100,
          #   "tier": "maxiops",
          # }
        }
      },
      "worker-2" : {
        "node_type" : "worker",
        # plan to use instead of custom cpu/mem
        "plan" : null,
        #number of cpu cores
        "cpu" : "2",
        #memory size in MB
        "mem" : "4096"
        # The size of the storage in GB
        "disk_size" : 250
        "additional_disks" : {
          # "some-disk-name-1": {
          #   "size": 100,
          #   "tier": "maxiops",
          # },
          # "some-disk-name-2": {
          #   "size": 100,
          #   "tier": "maxiops",
          # }
        }
      }
    }
    
    firewall_enabled          = false
    firewall_default_deny_in  = false
    firewall_default_deny_out = false
    
    master_allowed_remote_ips = [
      {
        "start_address" : "0.0.0.0"
        "end_address" : "255.255.255.255"
      }
    ]
    
    k8s_allowed_remote_ips = [
      {
        "start_address" : "0.0.0.0"
        "end_address" : "255.255.255.255"
      }
    ]
    
    master_allowed_ports = []
    worker_allowed_ports = []
    
    loadbalancer_enabled        = false
    loadbalancer_plan           = "development"
    loadbalancer_proxy_protocol = false
    loadbalancers = {
      # "http" : {
      #   "port" : 80,
      #   "target_port" : 80,
      #   "backend_servers" : [
      #     "worker-0",
      #     "worker-1",
      #     "worker-2"
      #   ]
      # }
    }
    
    server_groups = {
      # "control-plane" = {
      #   servers = [
      #     "control-plane-0"
      #   ]
      #   anti_affinity_policy = "strict"
      # },
      # "workers" = {
      #   servers = [
      #     "worker-0",
      #     "worker-1",
      #     "worker-2"
      #   ]
      #   anti_affinity_policy = "yes"
      # }
    }