Kubernetes clouds and Juju

In Juju, all Kubernetes clouds behave fundamentally the same.

Notes on juju add-k8s

On Kubernetes clouds, both the cloud definition and the cloud credentials are added through juju add-k8s, which reads from your kubeconfig file.

Authentication types

certificate

Attributes:

  • ClientCertificateData: the kubernetes certificate data (required)
  • Token: the kubernetes service account bearer token (required)
  • rbac-id: the unique ID key name of the rbac resources (optional)

clientcertificate

Attributes:

  • ClientCertificateData: the kubernetes certificate data (required)
  • ClientKeyData: the kubernetes certificate key (required)
  • rbac-id: the unique ID key name of the rbac resources (optional)

oauth2

Attributes:

  • Token: the kubernetes token (required)
  • rbac-id: the unique ID key name of the rbac resources (optional)

oauth2withcert

Attributes:

  • ClientCertificateData: the kubernetes certificate data (required)
  • ClientKeyData: the kubernetes private key data (required)
  • Token: the kubernetes token (required)

userpass

Attributes:

  • username: The username to authenticate with. (required)
  • password: The password for the specified username. (required)

Cloud-specific model configuration keys

operator-storage

The storage class used to provision operator storage.

type string
default value “”
immutable true
mandatory false

workload-storage

The preferred storage class used to provision workload storage.

type string
default value “”
immutable false
mandatory false

Supported constraints

See first: Constraint

conflicting: [instance-type] vs. [cores, cpu-power, mem]
supported?
- allocate-public-ip :x:
- arch :x:
- container :x:
- cores :x:
- cpu-power :white_check_mark:
- image-id :x:
- instance-role :x:
- instance-type :x:
- mem :white_check_mark:
- root-disk :x:
- root-disk-source :x:
- spaces :x:
- tags :white_check_mark:
Used for affinity.
- virt-type :x:
- zones :x:

Placement directives

Placement directives aren’t supported on Kubernetes clouds.