Skip to content
Snippets Groups Projects
bundle-noceph.yaml 5.66 KiB
##
# The worker nodes to be used should be tagged as 'kubernetes-worker'.
# The master node should be tagged as "kubernetes-master"
# The worker nodes with GPUs should be tagged as 'gpu'.
##

series: bionic
description: A 9-machine Kubernetes cluster, appropriate for production. Includes a three-machine etcd and ceph-mon cluster, two Kubernetes masters, three Kubernetes worker nodes and a Kubernetes worker with GPUs. The Ceph (Luminous) cluster uses three nodes for Ceph Monitors and a Ceph OSD in LXD containers on each worker machine. Two Ceph MDSs provide redundant shared Ceph File System.

# ----------------------------------------------------------------------
machines:
  "0":
    series: bionic
    constraints: tags=kubernetes-master #root-disk=8G
  "1":
    series: bionic
    constraints: tags=kubernetes-worker #root-disk=8G
  "2":
    series: bionic
    constraints: tags=kubernetes-worker #root-disk=8G
  "3":
    series: bionic
    constraints: tags=kubernetes-worker #root-disk=8G

  "4":
    series: bionic
    constraints: tags=gpu #root-disk=8G


# ----------------------------------------------------------------------
services:

#  canal:
#    annotations:
#      gui-x: '450'
#      gui-y: '750'
#    charm: cs:~containers/canal
#    resources:
#      calico: 73
#      calico-arm64: 69
#      flannel: 73
#      flannel-arm64: 72

  easyrsa:
    charm: cs:~containers/easyrsa
    bindings:
      "": space-os-mgmt
    num_units: 1
    resources:
      easyrsa: 5
    to:
      # an lxd on the unit of kubernetes-master 
      - "lxd:kubernetes-master"
    annotations:
      gui-x: '450'
      gui-y: '550'

  etcd:
    charm: cs:~containers/etcd
    bindings:
      "": space-os-mgmt
    num_units: 3
    # constraints: tags=kubernetes
    options:
      channel: 3.2/stable
    resources:
      etcd: 3
      snapshot: 0
    to:
      - "lxd:0"