Skip to content

Managed Kubernetes ​

Frostmoln Managed Kubernetes runs clusters on Frostmoln compute. You manage your workloads; the platform provisions and manages the control plane, the worker nodes, the API load balancer, and your kubeconfig.

Create a cluster ​

In the portal, go to Kubernetes → Clusters → Create and choose:

  • Name.
  • Kubernetes version — the dropdown lists the versions a new cluster can use; the recommended version is preselected and a deprecated one is marked. To see every version with its status and end-of-life date, run fm kubernetes version list or read the frostmoln_kubernetes_versions Terraform data source.
  • Control-plane tier:
    • Standard (development) — one dedicated control-plane node.
    • Production (production) — three dedicated control-plane nodes (HA quorum), production SLA.
  • VPC + subnet the cluster runs in (the region is inherited from the VPC).
  • An initial node pool — a name, a node flavor (k8s.gp1.medium / k8s.gp1.large / k8s.gp1.xlarge / k8s.gp1.2xlarge), and a node count.

There is no ingress option at create time. How your own traffic reaches your workloads is decided inside the cluster, afterwards — see Reaching your workloads.

Cluster add-ons are optional components the platform installs for you; the catalog is in the portal, in fm kubernetes addon list, and in the frostmoln_kubernetes_addons data source. A cluster you create without naming any add-ons gets the catalog defaults — currently Metrics Server; one that names its add-ons gets exactly those. Choose them when you create the cluster, or add one afterwards to a running cluster — from the cluster's Add-ons tab in the portal, with fm kubernetes cluster add-addons, or by sending the full desired add-on set to the API or Terraform. A later addition starts its own reconciliation and takes effect typically within minutes; if that reconciliation cannot be started it falls back to the platform's own reconciliation period, up to an hour. You can also remove one — from the same places, with fm kubernetes cluster remove-addons, or on the API by dropping the key from addons and naming it in remove (Terraform does both for you when you drop the key). A removal deletes the objects the add-on installed, so it asks you to name what you are removing rather than inferring it from a shorter set; the portal asks you to confirm. What is never deleted for you: the add-on's namespace, any CustomResourceDefinition, StorageClass or CSIDriver it created, and anything you put in that namespace yourself — including credentials. Clusters created before each capability shipped cannot receive a new add-on, or cannot remove one, and say so when you try. On a cluster whose control plane predates the External Secrets Operator add-on, adding it is accepted but never installed — create a new cluster instead. See its guide, which also covers what to do before you remove it. For the Workload Identity add-on, see Workload Identity.

Add-ons need outbound access from your nodes

An add-on's upstream container images are pulled from a public registry when its pods start — they are not preloaded onto your nodes, unlike everything the cluster itself needs. So your worker nodes need outbound HTTPS to that registry: ExternalDNS and Metrics Server pull their images from registry.k8s.io, the External Secrets Operator pulls its image from ghcr.io, and Workload Identity pulls its image from registry.sweden.frostmoln.cloud (and exchanges tokens with api.frostmoln.cloud).

If you filter egress by hostname, allow the known hosts: ghcr.io together with pkg-containers.githubusercontent.com, where it redirects image downloads, registry.sweden.frostmoln.cloud and registry.k8s.io. registry.k8s.io alone is not enough, though — it redirects image downloads to cloud-hosted backing stores on other domains, chosen by your egress address. To find such a host, check your egress log for the host the failed pull was redirected to, and allow that too. As a last resort, allow outbound HTTPS from the node pool; that is wider than necessary, so prefer the specific hosts wherever you can list them.

The platform does not check this, and cannot: reachability belongs to your own VPC at the moment of the pull, you can change your routes and security groups at any time, and every new node pulls the image again. Selecting an add-on your nodes cannot reach therefore succeeds — and then its pods stay in ImagePullBackOff:

bash
kubectl -n external-dns get pods
# NAME                            READY   STATUS             RESTARTS   AGE
# external-dns-7d4b8c9f5d-x2klm   0/2     ImagePullBackOff   0          4m

Open egress from your worker nodes and the pull is retried automatically within a few minutes — you do not need to delete the pod. ExternalDNS's other prerequisite still applies: it needs a credential, either a Workload Identity binding (recommended, from add-on version v0.22.0-4) or a frostmoln-dns API-key Secret. Until it has one, its webhook container restarts with no credential (CrashLoopBackOff). On versions before v0.22.0-4 it waits in CreateContainerConfigError. See ExternalDNS.

While the add-on is not running, the DNS records it manages are neither published nor cleaned up — a record for a deleted Service can outlive it and go on pointing at an address that may later be reassigned.

Bringing your cluster up and keeping its nodes Ready never depends on this — everything needed for that is preloaded on the node image and works with no egress at all. One add-on is felt cluster-wide, though: while Metrics Server is selected but not running, the metrics API is unavailable and deleting a namespace stalls, and kubectl api-resources reports an error, until the image can be pulled or the add-on is removed. It is a default add-on, so if your workers cannot reach registry.k8s.io, open that egress or remove it — see Metrics Server.

CLI & Terraform

Managed Kubernetes is managed from the portal, with the fm CLI, or with Terraform. The CLI has a full fm kubernetes command group — clusters, node pools, and the flavor / tier / version / addon catalogs; see the fm kubernetes reference. In Terraform, use frostmoln_kubernetes_cluster (with its initial node pool and cluster addons), frostmoln_kubernetes_node_pool for additional pools, and the frostmoln_kubernetes_versions / _tiers / _flavors / _addons catalog data sources — see the Terraform reference. Once you have a kubeconfig you use kubectl, Helm, and your normal Kubernetes tooling against the cluster as usual.

Add-on versions ​

Each add-on that has versions is pinned to one of them. The pinned version is the one you asked for; the applied version is the one the platform last confirmed it installed. They are two separate facts, always shown together: after you move a pin, the applied version lags behind until the change's own reconciliation applies it, typically within minutes; if that reconciliation cannot be started it falls back to the platform's next one, up to an hour. A change that fails to apply does not move the pin back — the platform keeps retrying, and you roll back by moving the pin back yourself.

  • Portal — the cluster's Add-ons tab has an Add-on versions card with each add-on's pinned version, applied version and state. Change version moves a pin.

  • CLI — list the versions you can pin, show pinned and applied side by side, and move a pin:

    bash
    fm kubernetes addon versions <addon>
    fm kubernetes cluster addons <cluster-id>
    fm kubernetes cluster pin-addons <cluster-id> --version <addon>=<version>

    add-addons takes the same repeatable --version flag, and so does remove-addons for an add-on you keep; cluster create takes it as --addon-version.

  • Terraform — the addon_versions map on frostmoln_kubernetes_cluster pins the add-ons it names (each key must also be in addons) and is changed in place. The frostmoln_kubernetes_addon_versions data source lists the versions you can pin; frostmoln_kubernetes_cluster_addons reads each add-on's pinned and applied version.

Versions are listed in the platform's order, with the recommended one marked. That order is not a ranking: never sort version strings or take the last one as the newest — copy a version exactly as it is listed. A deprecated version can still be pinned but is on its way out. A version with a known security issue that a later version fixes is also marked deprecated. While any cluster runs it, including one whose add-on was never pinned, you get one notice in the portal for that version, covering all such clusters: move each one's pin to the recommended version. The platform never moves a pin for you. A version at end of life is not listed and cannot be newly pinned; a cluster already pinned to one keeps running it, and its pin shows that status so you know to move it. An add-on you select without naming a version — at creation or later — gets its recommended version. To pin another version when you create a cluster: in the portal, choose it in the add-on's Version select, which appears when the add-on has a version other than the recommended one and starts on Recommended; with the CLI, pass --addon-version <addon>=<version> to fm kubernetes cluster create once per add-on; in Terraform, set addon_versions together with an explicit addons, and it is sent with the create request. Every add-on you pin must be one the cluster gets. A pin for any other add-on, or for a version that is not listed, is refused and no cluster is created.

Metrics Server ​

The Metrics Server add-on (metrics-server) serves the Kubernetes resource metrics API, metrics.k8s.io. kubectl top and HorizontalPodAutoscalers that scale on CPU or memory need it.

It is a default: a cluster you create without naming add-ons gets it. If you name your add-ons — the portal's add-on choices, which start with the defaults checked, Terraform's addons, or fm kubernetes cluster create --addons or --no-addons — you get exactly what you name. Existing clusters are not changed by the default.

You cannot install metrics-server yourself instead: registering an APIService is reserved to the platform, so a self-installed metrics-server never serves the metrics API. Use this add-on, and uninstall a self-installed metrics-server first — remove your own release from the namespace you installed it in (for example with helm uninstall), then check that the add-on serves, as shown below.

  • Where it runs — in kube-system, as two replicas on your worker nodes. Its pods do not tolerate your own node taints: if every worker node carries one, they stay Pending.
  • Outbound access — its image, registry.k8s.io/metrics-server/metrics-server, is pulled by your worker nodes when the pod starts; it is not preloaded. The workers need outbound HTTPS to registry.k8s.io, and the pull follows redirects to backing stores on other domains, so allowing the hostname alone is not enough (see the egress note under Create a cluster). Until it runs, the metrics API is unavailable, deleting a namespace stalls and kubectl api-resources reports an error.
  • Verified kubelet TLS — the kubelet serving certificates of your worker nodes are signed by the cluster's client CA, and metrics-server verifies them; it does not run with --kubelet-insecure-tls.
  • No PodDisruptionBudget — draining a node that holds both replicas (always the case with a single worker, and possible with more, because spreading them is only preferred) makes the metrics API unavailable until they are rescheduled: roughly 20–40 seconds when another worker can take them, and until a worker is schedulable again when none can.
  • Who can read it — your kubeconfig can. The built-in view, edit and admin roles do not include the metrics API, so a user or ServiceAccount bound only to one of them gets Forbidden from kubectl top.

Check that it serves, then scale a Deployment on CPU (its containers need CPU requests):

bash
kubectl get apiservice v1beta1.metrics.k8s.io   # AVAILABLE: True
kubectl top nodes
yaml
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
  name: web
spec:
  scaleTargetRef:
    apiVersion: apps/v1
    kind: Deployment
    name: web
  minReplicas: 2
  maxReplicas: 10
  metrics:
    - type: Resource
      resource:
        name: cpu
        target:
          type: Utilization
          averageUtilization: 70

Removing it deletes its APIService first, so deleting namespaces keeps working. kubectl top and every HorizontalPodAutoscaler that uses CPU or memory stop working until you add it again. Its serving-certificate Secret kube-system/metrics-server-tls is left behind and is replaced when you add the add-on again; the platform manages it, so you do not need to act on it.

Clusters created before Metrics Server was offered can add it once, in this order, the control plane has been updated and every worker node has been replaced. You cannot start either yourself — contact support. Until both are done, adding it is refused, with an explanation: a worker that joined earlier serves a certificate metrics-server cannot verify. If such a cluster already lists the add-on but kubectl get apiservice v1beta1.metrics.k8s.io finds nothing, remove the add-on and add it again after the replacement. Some older clusters cannot be updated in place at all; for those, the refusal says that the cluster must be recreated.

Get your kubeconfig ​

When the cluster is running, use Download Kubeconfig on the cluster detail page. Point kubectl at it and you're in:

bash
export KUBECONFIG=~/Downloads/my-cluster-kubeconfig.yaml
kubectl get nodes

The API endpoint is private to your VPC

The Kubernetes API server (port 6443) listens on an address inside your own VPC, and it accepts connections from that VPC only. There is no public address for it, and no setting that gives it one.

So kubectl needs a route into the VPC. There are two:

  • Let the CLI tunnel for you. fm kubernetes cluster kubeconfig <cluster-id> --exec --file ./kubeconfig writes a kubeconfig that opens its own tunnel on demand, so one terminal is enough and no client key is written to disk — the credential is fetched per call. It needs an API key granted both the cluster read and the session that opens the tunnel: an attached access policy names the kubernetes read/list operations plus the matching sessions:* operation (sessions:write in the old scope vocabulary) — and on a key issued before scopes were retired (2026-10-21), the flat kubernetes:read and sessions:write pair keeps standing for the same until the key is migrated or cleared (see API keys). A key granted only the kubernetes reads covers the read and not the session. A session lasts at most 60 minutes and is closed after 10 minutes without traffic, so a long-running or quiet kubectl stream is cut at that point; the plugin opens a fresh tunnel for the next command. A platform restart or a network interruption can end a session sooner, in the same way. Use --proxy instead if you would rather run the tunnel yourself with fm kubernetes cluster proxy in a second terminal — that writes the client key into the kubeconfig file.
  • Run kubectl inside the VPC, typically from an instance you own there.

Not every cluster's control plane can serve these tunnels. If fm answers that this one cannot, retrying will not help — use the in-VPC route and contact support.

With neither in place, running the commands above straight from a laptop, or from a CI runner outside the VPC, will time out: the kubeconfig is correct, the network path is not. The same applies to Helm and to Terraform's kubernetes / helm providers.

The cluster's credentials are generated and held securely by the platform — node bootstrapping never transmits secrets back.

The cluster endpoint is not for your traffic. It is for kubectl, Helm and your CI. Your own traffic goes to the address of a load balancer you ask for from inside the cluster — see Reaching your workloads. Pointing an application's DNS record at the cluster endpoint is the mistake this distinction exists to prevent.

Reaching your workloads ​

A cluster comes with no load balancer for your own traffic. You get one the standard Kubernetes way: create a Service of type: LoadBalancer, and the platform provisions a load balancer for that Service, keeps your Pods wired in as its members, and writes the address back into the Service.

yaml
apiVersion: v1
kind: Service
metadata:
  name: web
spec:
  type: LoadBalancer
  selector:
    app: web
  ports:
    - name: https
      port: 443
      targetPort: 8443
bash
kubectl get service web --watch
# NAME   TYPE           EXTERNAL-IP   PORT(S)
# web    LoadBalancer   10.20.4.17    443:31274/TCP

The address that appears as EXTERNAL-IP is the one to point your DNS at.

An ingress controller works the same way. Install the one you prefer (Traefik, ingress-nginx, …) and expose it with a type: LoadBalancer Service rather than a NodePort one. There are no reserved node ports to pin any more: Kubernetes picks the node ports itself and you never need to know them. TLS terminates in your cluster, with your own certificates — the platform never holds your keys. What else you can install, and the values some charts need, is in What you can do in your cluster.

A few properties worth knowing:

  • Each such Service gets its own load balancer. It shows up in your normal load-balancer list and is billed as a load balancer, like any other.
  • Manage it from Kubernetes, not from the load-balancer API. The Service is what the load balancer is reconciled against: change its ports or selector and the load balancer follows.
  • Delete the Service and its load balancer goes with it. Remove your Services before you delete the cluster, so nothing is left behind.
  • The Kubernetes API endpoint is separate and is not one of these — it is provisioned by the platform, not by a Service of yours.

Public or internal ​

By default a Service's load balancer gets an internal address from the cluster's own subnet — reachable inside the VPC, not from the internet. To expose it publicly, annotate the Service:

  • A Public IP from the pool — frostmoln.se/lb-scheme: public. The platform allocates a Public IP, attaches it to the load balancer, publishes it as the Service's EXTERNAL-IP, and releases it when you delete the Service.
  • Bring your own Public IP — also set frostmoln.se/lb-public-ip-id: <public-ip-id>. The platform uses a Public IP you already own (it must not already be in use) and keeps it when you delete the Service. The value is the Public IP's id (pip_…), not its address — the id the Public IPs list and fm show. A UUID is still accepted (see Resource IDs).
yaml
apiVersion: v1
kind: Service
metadata:
  name: web
  annotations:
    frostmoln.se/lb-scheme: public
spec:
  type: LoadBalancer
  selector:
    app: web
  ports:
    - name: https
      port: 443
      targetPort: 8443
  # Who may reach it — see the warning below.
  loadBalancerSourceRanges:
    - 203.0.113.0/24

To reuse a Public IP you already hold, add its id alongside the scheme:

yaml
metadata:
  annotations:
    frostmoln.se/lb-scheme: public
    frostmoln.se/lb-public-ip-id: pip_CNjjKZuNaU31QRzqVZvaEv

A public Service with no source ranges is open to the whole internet

loadBalancerSourceRanges is the access control for a public load balancer: the datapath preserves the client's source address, so it is real filtering, not a hint. Omit it and the Service is reachable from 0.0.0.0/0 — the same default as other clouds. Set it to the CIDRs that should be able to reach the Service.

The ranges are enforced as inbound rules on the cluster's worker security group — one rule per Service node port and range, each with a description naming the Service — so that is where to see them. The load balancer's listener shows "All sources", because a layer-4 load balancer passes every source on to the nodes. If no ranges are set, all sources are allowed.

What the platform records on your Service

As it works on a Service's load balancer, the platform records Kubernetes events on the Service, with the reasons a cloud provider's controller uses, so kubectl describe service <name> shows where it stands:

  • EnsuringLoadBalancer when it starts creating the load balancer or applying a change to it;
  • EnsuredLoadBalancer when that is done, or UpdatedLoadBalancer when only the set of nodes behind it changed;
  • DeletingLoadBalancer, then DeletedLoadBalancer, when the Service is deleted or stops being type: LoadBalancer (for a deleted Service, kubectl get events in its namespace still lists them);
  • a Warning, SyncLoadBalancerFailed, on every attempt that fails. The Service stays at EXTERNAL-IP <pending>, and the message starts with Error syncing load balancer: failed to ensure load balancer:, followed by the specific reason — PublicIPNotFound or PublicIPInUse for a bring-your-own id that is not yours or already in use, PublicIPForbidden for an exhausted Public IP pool or quota, RealiseFailed for anything else — and what to do about it.

A Service that has not changed gets no events when the platform re-checks it. A cluster whose control plane predates these events records only the Warning, with the specific reason as the event's reason; the others appear once its control plane has been upgraded. Kubernetes keeps events for one hour.

Keep the client's IP address ​

With the default externalTrafficPolicy: Cluster, the node a connection arrives at may hand it to a pod on any node of the cluster, and when it does it replaces the client's source address with its own. That happens even on a node that runs a pod of the Service, so your pods see a node's address for much of the traffic.

Address-range network policies drop some new connections under Cluster

When a connection reaches the pod through another node, your network policy no longer sees the client's address, nor the node address your pod sees: it sees only that the traffic comes from outside the cluster. A NetworkPolicy that allows ingress to the Service's pods only from specific ipBlock ranges therefore drops those new connections. This holds for every range narrower than 0.0.0.0/0, even one that covers the cluster's own network. The failures are intermittent timeouts on the new connections that are handed to a pod on another node, which in a cluster of several nodes can be most of them, and more replicas do not make them go away. Connections already open keep working. Allowing 0.0.0.0/0 also stops the failures, but then the policy no longer restricts by address.

Set externalTrafficPolicy: Local instead (below): every connection then keeps the client's address, and your ranges match. Because the policy now sees real source addresses, it must also allow the cluster's subnet, where the load balancer's health checks come from (see the warning further down). For a public load balancer, loadBalancerSourceRanges already limits who can reach it (see Public or internal): with Local the network policy is a second layer on top of it, and if you keep Cluster it is the layer to rely on.

To see the real client address on every connection (for rate limiting, logging or allow-lists in your application), set externalTrafficPolicy: Local:

yaml
apiVersion: v1
kind: Service
metadata:
  name: traefik
spec:
  type: LoadBalancer
  externalTrafficPolicy: Local
  selector:
    app: traefik
  ports:
    - name: https
      port: 443
      targetPort: 8443

Under Local a node serves only the pods it runs itself, and the platform health-checks every node behind the load balancer on the Service's node port. Traffic goes only to nodes with a ready pod of the Service: a node whose last pod stops is taken out within seconds, and a node already in the cluster is added within seconds of a pod there becoming ready. A pod that is shutting down keeps its node in service while it still passes its readiness check, so a rolling update keeps serving; to drain a pod before it stops, make its readiness check fail on shutdown. Nodes without a pod show as unhealthy under the load balancer's Member health; they are on standby and don't count against the load balancer, which stays active. If no node has a ready pod, the load balancer reads down after about two and a half minutes, and active again as soon as a pod is ready.

  • Run at least two replicas on different nodes (or a DaemonSet), so a rolling update or a node drain always leaves a ready pod somewhere.
  • A node that joins the cluster can take a share of new connections for a few seconds before its first health checks have run.
  • Health checks cover TCP ports. The load balancer does not health-check a UDP port; see Health of UDP ports.

Allow the health check through your network policies

The health check connects to your pods from an address in your cluster's subnet. If a network policy restricts ingress to the Service's pods (for example to your office's address range), also allow the cluster's subnet, or every node fails its health check and the Service stops answering. The check opens and closes a connection every few seconds, which some servers log as an aborted handshake.

Health of UDP ports ​

The load balancer health-checks TCP ports only, and it cannot check another port of the pod for you. For a UDP service (a WireGuard or other VPN gateway, DNS, a game server), give the pod a health endpoint on a TCP port and point the pod's own probes at it:

yaml
containers:
  - name: gateway
    image: registry.example.com/gateway:1.0
    ports:
      - { name: wg, containerPort: 51820, protocol: UDP }
      - { name: health, containerPort: 8080, protocol: TCP }
    readinessProbe: # no new clients while it fails
      httpGet: { path: /healthz, port: health }
      periodSeconds: 2
      failureThreshold: 2
    livenessProbe: # restarted when it keeps failing
      httpGet: { path: /healthz, port: health }
      periodSeconds: 3
      failureThreshold: 5
      terminationGracePeriodSeconds: 5
  • Readiness keeps new clients away from a failing pod. Under Cluster, new clients go to the other pods at once. Under Local, a node with no other ready pod of the Service leaves the load balancer about 10 seconds after its pod stops being ready, and new clients that reach that node in between get no answer. The node returns within about 10 seconds of a pod there being ready again.
  • Liveness recovers the clients already connected. A UDP client that keeps the same source port, as every WireGuard peer does, stays with the pod it first reached, under both policies, even after that pod stops being ready. If that pod is hung, the client gets no answer until the pod restarts, or until the client has sent nothing for more than two minutes, which a peer with keepalives never does. A restart brings those clients back, because the pod keeps its address. terminationGracePeriodSeconds on the liveness probe keeps that restart short even when a hung process cannot handle SIGTERM; rolling updates still get the pod's own grace period.
  • A replaced pod does not take its clients along. When a pod is deleted, evicted or moved by a rolling update or a node drain, the clients connected to it can get no answer until they reconnect from a new source port. If the client lets WireGuard pick its port, restarting its WireGuard interface is enough; a client with a fixed ListenPort must stop sending for at least three minutes, or change the port.
  • A quiet flow is forgotten after about two minutes. When nothing has been sent in either direction for about two minutes, the load balancer forgets the flow. The client's next packet starts a new flow and is answered as normal, but packets your server sends before the client sends again reach the client from a different address and port. Most clients drop them: a NAT router or firewall on the way does, and so does a client that only accepts replies from the address it sent to. A WireGuard client may instead switch to that address. Traffic at least once a minute in either direction keeps the flow; set PersistentKeepalive = 25 on WireGuard clients (it is off by default), which also keeps the client's own router open.
  • Check that the process works (its main loop answers, the tunnel interface is up), never that traffic is arriving: a pod that is not ready gets no new clients, so a check for incoming traffic never passes again. Keep liveness to the process itself, so a failing shared dependency does not restart every replica at once. Use httpGet or exec, not tcpSocket: a hung process whose port is still open keeps accepting TCP connections. If the gateway needs more than about 15 seconds to start, add a startupProbe on the same endpoint.
  • Don't set publishNotReadyAddresses: true on the Service. It keeps pods that fail their readiness check in the load balancer.

The automatic worker ingress load balancer has been removed

Clusters used to be given an ingress load balancer at create time, forwarding TCP 80 and 443 to fixed node ports on every worker node, chosen with an ingressScheme option (ingress_scheme in Terraform) and an optional bring-your-own address. All of that is gone: there is no ingress setting when you create a cluster, and no fixed node ports to publish. Use a Service of type: LoadBalancer, as above.

The API endpoint's exposure is not a setting

There is no scheme option on a cluster, and no publicIpId either — both are rejected. The answer is fixed rather than merely platform-decided: the API endpoint is private to your VPC, always. See Get your kubeconfig.

Node pools ​

A cluster has one or more node pools — groups of worker nodes of a given flavor. From the cluster detail page you can:

  • Add a node pool (name, flavor, node count, and optionally node labels and taints).
  • Scale a pool by setting a new node count.
  • Delete a pool.

Node labels and taints ​

When you create a node pool you can give it Kubernetes node labels and taints. They are applied to every node the pool boots, including nodes added when you scale it. Use them to dedicate a pool to a workload: select the pool with a nodeSelector on one of its labels, and keep other pods off it with a NoSchedule taint that only that workload tolerates.

yaml
spec:
  nodeSelector:
    workload: sensors
  tolerations:
    - key: dedicated
      operator: Equal
      value: sensors
      effect: NoSchedule
  • Fixed at create. An existing pool's labels and taints cannot be changed. To change them, create a new pool with the new set, move the workloads, and delete the old pool.
  • Keys follow Kubernetes label syntax: an optional lowercase domain prefix and /, then a name of 1-63 characters. A prefix that is or ends in kubernetes.io, k8s.io, frostmoln.se, frostmoln.cloud or cilium.io is reserved, and so are the taint keys ToBeDeletedByClusterAutoscaler and DeletionCandidateOfClusterAutoscaler. A pool takes at most 32 labels and 16 taints.
  • Keep one pool without a NoSchedule or NoExecute taint. The cluster's DNS, storage and metrics components run there. The cluster's first pool cannot carry such a taint (PreferNoSchedule is fine), and a create, scale or delete that would leave every node in a tainted pool is refused: add a pool without such a taint first and wait until it is active. The platform's own networking and storage agents run on every node, tainted or not.

Set them in the portal's add-pool form, with the fm CLI, or with the Terraform provider's labels and taints on frostmoln_kubernetes_node_pool (the cluster's initial_node_pool takes labels and PreferNoSchedule taints):

bash
fm kubernetes node-pool create <cluster-id> --flavor <flavor-id> --name sensors \
  --label workload=sensors --taint dedicated=sensors:NoSchedule

The node pool list shows each pool's labels and taints.

Scale manually for now

Cluster autoscaling is not yet available — set the node count explicitly and scale pools manually as your workload changes.

Persistent storage ​

Clusters ship with two Frostmoln CSI storage classes, both backed by Frostmoln block storage:

StorageClassReclaim policyUse it for
frostmoln-blockDeleteThe default. The volume goes with its claim
frostmoln-block-retainRetainData that must be able to outlive its claim or cluster

Create a PersistentVolumeClaim and a volume is provisioned and attached automatically; volumes support online expansion.

yaml
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: data
spec:
  accessModes: ['ReadWriteOnce']
  storageClassName: frostmoln-block
  resources:
    requests:
      storage: 20Gi

Each claim's volume also appears in your volume list, labelled Kubernetes. See Kubernetes volumes for how they are managed and what happens to them when you delete the cluster.

Volumes when you delete the cluster ​

What happens to each of the cluster's volumes depends on the reclaimPolicy of its PersistentVolume:

Reclaim policyWhen you delete the cluster
Delete (the frostmoln-block default)Deleted with the cluster
Retain (the frostmoln-block-retain class)You choose: keep or delete
Not reportedYou choose: keep or delete

Not reported means the cluster has not told Frostmoln about the volume in the last 15 minutes — for example because its nodes are down, or because the claim was created less than a minute before the delete. It is treated exactly like Retain: nothing is deleted without your answer.

Your answer covers all of the cluster's retained volumes at once:

  • Keep — they stay in your tenant as ordinary volumes, labelled From deleted cluster (see Kubernetes volumes). They are billed as block storage until you delete them.
  • Delete — they are deleted with the cluster. Their data cannot be recovered.

Either answer applies to exactly the retained set you were shown. If it changed before the delete runs — a frostmoln-block-retain claim, or one too new to have been reported, was created, or a Not reported volume was reported in the meantime — nothing is deleted and you are shown the new set to answer again. Volumes with reclaim policy Delete go with the cluster whenever they were created.

To keep only some volumes, put the data you want to keep on claims of the frostmoln-block-retain class and the rest on frostmoln-block, then choose Keep when you delete the cluster. A claim's reclaim policy is set when its volume is created and cannot be changed from inside the cluster afterwards.

Deleting a frostmoln-block-retain claim while the cluster runs. The volume is kept. About an hour after the claim is gone, Frostmoln moves it out of the cluster and into your volume list as an ordinary volume, labelled From deleted PVC with the claim's name and the cluster. From then on it is billed as block storage until you delete it, and you manage it like any other volume (attach it to an instance to read its data, snapshot it, delete it). You are notified when this happens. It cannot be bound to a claim in the cluster again. A released volume is visible to everyone in your tenant who can manage volumes, not only to people with access to the cluster.

One delete deletes at most 500 volumes. A delete that would delete more is refused with 409 too_many_cluster_volumes (its details carry limit and count) and nothing changes: delete some PersistentVolumeClaims in the cluster first, or choose Keep.

Where you answer:

  • Portal — the delete dialog lists the volumes that go with the cluster and asks Keep or Delete for the retained ones. There is no default: the delete stays disabled until you choose.

  • CLI — fm kubernetes cluster volumes <cluster-id> (alias fm kubernetes volumes <cluster-id>) shows the volumes and what a delete does to each. fm kubernetes cluster delete <cluster-id> prints the same table and asks keep, delete or cancel; --retained-volumes keep|delete answers without the prompt. With --force and retained volumes present you must also pass --retained-volumes, otherwise the command fails and lists them.

  • Terraform — set retained_volumes_on_destroy to "keep" or "delete" on frostmoln_kubernetes_cluster. It has no default, and changing it only updates the state (no API call). A destroy or replace uses the value already in the state, so terraform apply the setting first. If it is unset and the cluster has retained volumes, terraform destroy fails and lists them.

  • API — the persistent-volumes read returns each volume with its reclaimPolicy, its disposition (delete or ask) and a retainedSetToken. Send the answer on the delete together with the token from the read; delete requires it whenever there are volumes to ask about:

    text
    GET    /api/v1/tenants/{tenantId}/kubernetes-clusters/{clusterId}/persistent-volumes
    DELETE /api/v1/tenants/{tenantId}/kubernetes-clusters/{clusterId}?retainedVolumes=keep&retainedSetToken=<token>
    DELETE /api/v1/tenants/{tenantId}/kubernetes-clusters/{clusterId}?retainedVolumes=delete&retainedSetToken=<token>

    A delete without an answer while retained volumes exist is refused with 409 retained_volumes_decision_required, listing them, and nothing changes. The token makes sure the answer applies to the set you looked at: a volume that became Retain after you looked is never deleted unseen, and a volume you were shown as retained is never deleted after you chose keep. If the set changed, you get the same 409 with the current list. (keep without a token is still accepted, but then a volume reported Delete in between is deleted.) Sending an answer while the cluster is already being deleted is refused with 409 delete_in_progress: the delete under way keeps the answer it started with. A repeated delete without an answer is accepted as before.

Older CLI and Terraform provider versions

Use fm and the Terraform provider from the release containing this change, or newer. Older versions send no answer, so with them a delete fails with 409 retained_volumes_decision_required on every cluster that has a Retain or Not reported volume — which includes every cluster whose nodes do not report their volumes yet. Upgrade, or delete the cluster from the portal.

Networking ​

The cluster CNI is Cilium. Cluster nodes reach the internet only if the cluster's VPC has a Gateway — without one the nodes have no outbound access, no DNS resolution and no managed-service connectivity, so add a Gateway to the VPC yourself if they need any of that. Creating a cluster never adds one for you. The nodes are isolated from Frostmoln's internal networks either way — your workloads run in their own tenant network. Reach the API server through the cluster endpoint above, and expose your own services with a Service of type: LoadBalancer (see Reaching your workloads).

Network policies ​

In your own namespaces you can use a standard NetworkPolicy or a CiliumNetworkPolicy. A CiliumNetworkPolicy can also restrict egress by hostname with toFQDNs, and filter HTTP with L7 rules. HTTP rules apply to unencrypted HTTP only; filtering inside TLS (HTTPS) is not available, so allow HTTPS by hostname and port.

A policy that limits ingress to the pods behind a type: LoadBalancer Service by ipBlock ranges needs externalTrafficPolicy: Local on that Service; see Keep the client's IP address.

For toFQDNs to work, a policy selecting the same pods must allow DNS to the cluster DNS with a dns rule: the addresses of the hostnames your pods look up are learned from those answers. Lookups must therefore go through the cluster DNS; a connection to a hard-coded IP address is not matched. A policy with an egress section denies all other egress from the pods it selects — the example allows only DNS and api.example.com on port 443:

yaml
apiVersion: cilium.io/v2
kind: CiliumNetworkPolicy
metadata:
  name: api-egress
  namespace: my-app
spec:
  endpointSelector:
    matchLabels:
      app: my-app
  egress:
    - toEndpoints:
        - matchLabels:
            k8s:io.kubernetes.pod.namespace: kube-system
            k8s:k8s-app: kube-dns
      toPorts:
        - ports:
            - port: '53'
              protocol: ANY
          rules:
            dns:
              - matchPattern: '*'
    - toFQDNs:
        - matchName: api.example.com
      toPorts:
        - ports:
            - port: '443'
              protocol: TCP

A CiliumNetworkPolicy may not set nodeSelector, terminatingTLS, originatingTLS or listener, or reference a secret in an HTTP headerMatches rule (a plain value is fine). Cluster-wide Cilium policies, such as CiliumClusterwideNetworkPolicy, are reserved to Frostmoln.

What you can do in your cluster ​

You are the cluster administrator. Your kubeconfig can create any resource in your own namespaces, and any cluster-scoped resource the platform does not reserve — including CustomResourceDefinitions, ClusterRoles and ClusterRoleBindings (with any verbs, including *), and admission webhooks. So you install operators from their upstream Helm charts: Traefik (with its CRD provider), Argo CD, cert-manager (including its webhook), Kyverno, CloudNativePG, kube-prometheus-stack and the like.

ServiceAccounts you create are subject to the same rules as your kubeconfig.

What stays reserved to Frostmoln ​

  • Platform namespaces — kube-system, kube-public, kube-node-lease, frostmoln-system, frostmoln-workload-identity, external-secrets, and the namespaces of add-ons Frostmoln installs for you (such as external-dns). You can see what runs there, but not change it. The exception is the frostmoln-dns Secret you create in the ExternalDNS namespace: it stays yours. In the six named first (kube-system to external-secrets), your kubeconfig also cannot read Secrets, ConfigMaps or pod logs. Add-on namespaces hold no platform credential, so their Secrets and ConfigMaps stay readable to you, one namespace at a time: an all-namespaces read (kubectl get secrets -A) is refused, because it spans the platform namespaces.
  • Cluster infrastructure — Nodes, StorageClasses, CSI drivers and PersistentVolumes (request storage with a PersistentVolumeClaim, see Persistent storage), APIServices, API Priority and Fairness (FlowSchemas) and ServiceCIDRs. Because APIServices are reserved, a metrics-server you install yourself never serves the metrics API: use the Metrics Server add-on, and uninstall a self-installed metrics-server first.
  • Platform API groups — CustomResourceDefinitions in frostmoln.cloud, frostmoln.se, cilium.io, external-secrets.io, k8s.io and kubernetes.io (and their subdomains), and objects in the Cilium and platform groups. Two exceptions: a CiliumNetworkPolicy in your own namespaces (see Network policies), and your own ExternalSecrets and SecretStores.
  • Services — a Service may not set spec.externalIPs, and you cannot write a Service's status yourself: load-balancer addresses come from the platform, so use type: LoadBalancer. The API server's own kubernetes Service in the default namespace and its endpoints are reserved too. A load-balancer controller you run yourself (such as MetalLB or kube-vip) therefore cannot assign addresses; use type: LoadBalancer, which Frostmoln serves (see Reaching your workloads).
  • Admission policies — ValidatingAdmissionPolicies and MutatingAdmissionPolicies. Use an admission webhook instead.
  • Identity — impersonating anything other than your own ServiceAccounts, and certificate signing via the kubernetes.io signers.
  • Pod Security — Pod Security restricted is enforced cluster-wide and a namespace's Pod Security labels cannot be changed, so privileged, hostNetwork, hostPID and hostPath pods are refused.
  • System priority classes — pods in your namespaces cannot use system-node-critical or system-cluster-critical, or any priority above 1000000000, and those two classes cannot be changed; they keep the platform's own pods schedulable. Create your own PriorityClass instead. A chart that defaults to a system class needs its priorityClassName value set to your class or to an empty string.
  • Control-plane endpoints — the control plane's metrics and debug endpoints. Through the Kubernetes API, the kubelet API is limited to node metrics and stats (nodes/metrics, nodes/stats); nodes/proxy and nodes/log are not available. Tools that reach the kubelet through the API server proxy — for example Grafana Alloy or k8s-monitoring scraping /api/v1/nodes/<node>/proxy/metrics/cadvisor, or Fluent Bit with Use_Kubelet On — are refused; configure them to scrape the kubelet directly on the node (as kube-prometheus-stack does), which uses the allowed node metrics and stats permissions.

When the cluster refuses an object, only that object is refused. A tool that applies many objects at once — a Helm chart, a GitOps sync, kubectl apply -f on a directory — can still start the rest of your workloads. Check the apply or sync result, not just whether the pods run: a workload whose network policy was refused runs without it.

Admission webhooks ​

A webhook must point to a Service in your cluster, not a URL. If every rule targets your own CRD API groups, the webhook is accepted as it is. A webhook that intercepts built-in resources — Pods, Deployments, Services and so on — must also:

  • set timeoutSeconds to 10 or less;
  • set sideEffects: None (or NoneOnDryRun);
  • exclude the platform namespaces and add-on objects with these selectors:
yaml
namespaceSelector:
  matchExpressions:
    - key: kubernetes.io/metadata.name
      operator: NotIn
      values:
        [
          kube-system,
          kube-public,
          kube-node-lease,
          frostmoln-system,
          frostmoln-workload-identity,
          external-secrets,
        ]
    - key: frostmoln.se/addon
      operator: DoesNotExist
objectSelector:
  matchExpressions:
    - key: frostmoln.se/addon
      operator: DoesNotExist
  • list the resources in each rule — no wildcard resource (* or */status);
  • if it intercepts Services, Endpoints or EndpointSlices, also list default in the kubernetes.io/metadata.name NotIn values — the API server maintains its own endpoints there;
  • not intercept nodes, RBAC, CRDs, admission configuration, leases, certificates, storage or flowcontrol resources, PersistentVolumes, IPAddresses, ServiceCIDRs or PriorityClasses.

Chart values ​

Argo CD, Traefik (rbac.enabled=true, with its CRD provider) and CloudNativePG install with their default values. A few other charts need these:

  • cert-manager — global.leaderElection.namespace=cert-manager; its default puts leader-election objects in kube-system.

  • kube-prometheus-stack — the control plane is managed and cannot be scraped, and its control-plane components would create Services in kube-system. node-exporter needs host access, which Pod Security refuses. Point the kubelet Service at your release namespace:

    yaml
    kubeControllerManager:
      enabled: false
    kubeScheduler:
      enabled: false
    kubeEtcd:
      enabled: false
    kubeProxy:
      enabled: false
    coreDns:
      enabled: false
    kubeApiServer:
      enabled: false
    nodeExporter:
      enabled: false
    prometheusOperator:
      kubeletService:
        namespace: monitoring # your release namespace
  • Kyverno — once you add policies, set its config.webhooks to the namespaceSelector above plus the objectSelector (Kyverno's defaults only exclude kube-system). Its TTL cleanup webhook and its ValidatingAdmissionPolicy generation are not available; policies are enforced through its webhooks.

  • ingress-nginx — its admission webhook intercepts Ingress, a built-in resource. Set controller.admissionWebhooks.namespaceSelector to the namespaceSelector above and controller.admissionWebhooks.objectSelector to the objectSelector above (its default timeout and sideEffects: None already comply), or turn the webhook off with controller.admissionWebhooks.enabled=false.

Limits ​

  • One zone per cluster — nodes are placed in the cluster's region/subnet; no multi-AZ spread today.
  • Cilium is the only CNI — it isn't customer-selectable.
  • Upgrades go one minor version at a time — see Version lifecycle and upgrades.
  • Autoscaling is not yet available (scale node pools manually).
  • Quotas cap clusters and nodes per tenant. For a large cluster, check your quotas and request an increase before you create it.
  • A workload load balancer is internal by default — a Service of type: LoadBalancer gets an internal VPC address unless you annotate it frostmoln.se/lb-scheme: public (see Reaching your workloads).
  • Deleting a cluster removes its nodes, its API load balancer and its stored credentials.