Skip to Content
CLI

argoctl create cluster

Turn the provisioned nodes into a Kubernetes cluster with kubeadm and Cilium, add LoadBalancer addresses, default storage, monitoring and log collection, enable the GPUs with the NVIDIA GPU Operator, and check the result.

Synopsis

sudo argoctl create cluster <site-file> [flags]

Before you start

Run argoctl provision with the same site file first. No BMC password is needed: this command only uses SSH.

Description

Builds a Kubernetes cluster on the nodes provision installed, gives it LoadBalancer addresses, a default StorageClass and a monitoring stack, keeps its logs and audit log, enables their GPUs, and checks the result. It is idempotent: on a healthy cluster it reports nothing to change. It is resumable: an interrupted run is finished by running the same command again.

argoctl generates an Ansible inventory (groups control_plane and workers, each node's provisioning address for SSH and its Kubernetes address) and variables (the version profile and the plan) from the site file, and runs its playbooks from mgmt over SSH, as ubuntu with mgmt's provisioning key and sudo on the nodes. The playbooks are compiled into argoctl and written to /var/lib/argoctl/cluster/ansible/ on every run: the binary alone decides what runs. Ansible itself (ansible-core from Ubuntu's archive) is installed on mgmt on first use.

Phases

  1. Checks before changing anything. The plan is valid; every node answers SSH on its provisioning address with its site-file hostname; the cluster wasn't created with another version profile. Any failure stops the run with nothing changed.
  2. host-profile, every node: Ubuntu 24.04 x86_64 checked; an interrupted dpkg finished; swap off (now and in /etc/fstab); overlay and br_netfilter loaded; net.bridge.bridge-nf-call-ip{,6}tables and net.ipv4.ip_forward set to 1; time sync; every node in /etc/hosts; containerd at the profile's exact version, held, with SystemdCgroup = true; the pkgs.k8s.io repository (signing key checked against its sha256); kubeadm, kubelet and kubectl at the profile's exact version, held. On GPU nodes: the nouveau driver blacklisted and the kernel held at its installed version, so the GPU driver always matches it. On nodes with InfiniBand or RoCE NICs: rdma-core installed and the RDMA kernel modules loaded. Then kubeadm's preflight checks on every node that isn't in a cluster. Nodes run independently: one failing doesn't stop the others, but the run stops before kubeadm.
  3. kubeadm: argoctl's generated configuration (kubernetesVersion from the profile; pod and Service ranges from the site file; controlPlaneEndpoint and advertiseAddress = the control plane's Kubernetes address; certificate SANs for that address, its provisioning address and its name; kubelet node-ip = each node's Kubernetes address; systemd cgroup driver; the API server's audit log), checked with kubeadm config validate. kubeadm init on the control plane (which keeps its NoSchedule taint), then kubeadm join on every worker that isn't in yet. The admin kubeconfig is copied to /var/lib/argoctl/cluster/admin.conf.
  4. cilium, on the control plane: Helm installs the profile's Cilium chart (sha256 checked; images pinned by digest) with IPAM kubernetes, so pods get addresses from each node's podCIDR inside the site file's pod range, and with L2 announcements when the site file has an lb_pool. Then it waits for the agent on every node, the operator, every node Ready and CoreDNS.
  5. addons, on the control plane: each add-on is a Helm release of a chart at the profile's pinned version (downloaded charts are sha256 checked, images pinned by digest), with values argoCTL generates. An installed release with the same chart version and values is left alone, so a re-run changes nothing.
    • argoctl-lb-ipam (namespace kube-system), when the site file has networks.frontend.lb_pool: the address pool and the L2 announcement policy for LoadBalancer addresses. Remove lb_pool and the next run uninstalls it.
    • local-path-provisioner (namespace local-path-storage): the default StorageClass, local-path.
    • metrics-server and kube-prometheus-stack (namespace monitoring): monitoring, with kubectl top, Prometheus, Alertmanager and Grafana. The Prometheus Operator's CRDs are applied by argoCTL itself before each install or upgrade (Helm never upgrades CRDs), and Grafana's admin password is generated once and kept.
    • loki (namespace monitoring): the log store, on a local-path volume, keeping 7 days.
    • alloy (namespace monitoring), on every node: ships container logs, the node's system journal and the API server's audit log to Loki.
  6. gpu, when any node has NVIDIA GPUs (skipped otherwise):
    • the NVIDIA GPU Operator chart (sha256 checked) in namespace gpu-operator: the data-centre driver (R595 branch, open kernel modules, precompiled for the Ubuntu 24.04 kernel and signed, so it loads with Secure Boot on) in a driver container, the container toolkit, the device plugin, GPU Feature Discovery and the DCGM exporter. On NVSwitch systems the driver container also runs Fabric Manager;
    • on GPU nodes with InfiniBand or RoCE NICs: GPUDirect RDMA (DMA-BUF, no extra kernel module) and the RDMA shared device plugin, which lets pods use the RDMA NICs (resource rdma/ib);
    • the LeaderWorkerSet controller, which deploy inference uses for models split across nodes;
    • then it waits for the operator's validation on every GPU node and for each node to advertise all of its GPUs as nvidia.com/gpu.
  7. Checks, recorded in the report (below).

LoadBalancer addresses

A Service of type LoadBalancer gets the next free address from the site file's networks.frontend.lb_pool, and is reachable at that address on its ports, e.g. http://172.16.2.200. No extra component runs for it: Cilium's LB IPAM hands out the addresses, and Cilium's L2 announcements answer ARP for each one from one worker node (on a one-node cluster, from that node), which forwards the traffic to the Service's pods on any node. If that node goes down, another worker takes the address over within about 15 seconds.

kubectl create deployment web --image=nginx --port=80
kubectl expose deployment web --type=LoadBalancer --port=80
kubectl get service web          # EXTERNAL-IP: 172.16.2.201
curl http://172.16.2.201/

The addresses must be free addresses on the frontend network, reserved by your network team; machines on the frontend network, or routed to it, reach them. To reach one from a machine that can't, tunnel through one that can, such as mgmt: ssh -L 8080:172.16.2.200:80 ubuntu@<mgmt>, then open http://localhost:8080.

Grafana takes one address from the pool (usually the first) for its own web UI. To ask for a particular address, annotate the Service with lbipam.cilium.io/ips: 172.16.2.210. Without an lb_pool, LoadBalancer Services stay Pending (EXTERNAL-IP <pending>) and the report says so; NodePort Services work either way. Addresses are announced over plain ARP, so the pool has to be on the same layer-2 network as the nodes' frontend NICs: the frontend network.

While the control plane is down, the nodes can't renew their claim on an address, so LoadBalancer addresses stop answering until it is back.

Default storage

local-path is the cluster's default StorageClass: a PersistentVolumeClaim that names no StorageClass gets a volume from it. Each volume is a directory under /opt/local-path-provisioner on the disk of the node where its pod first runs (WaitForFirstConsumer), and is deleted with its claim (reclaimPolicy: Delete).

A volume lives on one node

A volume's data is on one node's disk, not replicated. Its pod can only run on that node; if the node is down, the pod waits for it, and if the node's disk is lost, so is the data. Back up anything you can't recreate. Size limits on claims aren't enforced: volumes share the free space of the node's root disk, which the report shows per node.

Monitoring

Prometheus collects metrics for every node, namespace, pod and container and keeps 15 days of them; Alertmanager sends alerts to the receivers you add; Grafana has dashboards for all of it, and kubectl top works. They run in the namespace monitoring, on the control plane, with their data on local-path volumes. Nothing is reachable from outside the cluster except Grafana, at a LoadBalancer address when the site file has an lb_pool. The report says how to reach each one and how to read Grafana's admin password. See Monitoring and alerts.

Logs and audit log

Every container's output, every node's system journal (kubelet, containerd, the kernel) and the API server's audit log are kept in Loki in the cluster for 7 days, including after the pod that wrote them is gone. Grafana Alloy on every node reads the log files and the journal and sends them to Loki at http://loki.monitoring.svc:3100. Search them in Grafana (the Logs dashboard, or Explore with the Loki data source), or with logcli through kubectl port-forward; Loki itself isn't exposed outside the cluster. See Search logs and the audit log.

job labelWhatOther labels
kubernetes-podsevery container's outputnamespace, pod, container, node, stream
node-journaleach node's system journalnode, unit, identifier, level
kubernetes-auditthe API server's audit log, one JSON event per requestnode

The audit policy records every change to the cluster (who, what, when, from which address, and the result) and every read of a Secret or ConfigMap, without request or response bodies, so Secret values never appear in it. It is set when the control plane is created; on a cluster created before it, the next create cluster adds it, restarting the API server once (about a minute without the API).

Log alerts: Loki's ruler evaluates log-based alert rules every minute and sends what fires to the cluster's Alertmanager, so the receivers you add get log alerts and metric alerts alike. Built-in rules: a node's kernel killing processes for lack of memory, a kubelet evicting pods, a kubelet reporting PLEG not healthy, and more than 20 refused API requests from one user in 10 minutes. Add your own as a ConfigMap labelled loki_rule in monitoring.

One log store

Loki runs as one pod on one node's disk, like any local-path volume. While it restarts, the collectors retry and catch up; if its node's disk is lost, so are the logs.

Which network Kubernetes uses. The frontend network when the site has one: kubelet --node-ip and the API server address are frontend addresses. A site without frontend NICs uses the provisioning network. The control plane is kubernetes.control_plane (default: the first node); the others are workers.

Join tokens are secrets. kubeadm init runs with --skip-token-print. Right before the joins a token with a 15-minute lifetime is created in a task whose output Ansible hides, rendered into a 0600 file on the worker, read by kubeadm join and deleted straight after. Every run then deletes every bootstrap token in the cluster. Tokens never touch the site file, mgmt's disk or a log.

Resume. Every task checks the node before changing it. The control plane counts as initialised once argoctl's marker or kubeadm's kubeadm-config ConfigMap exists; a worker counts as joined once it has /etc/kubernetes/kubelet.conf and is registered. An interrupted kubeadm init or join is reset and run again; an initialised control plane is never reset. Progress, and the version profile the cluster was built with, are recorded in /var/lib/argoctl/cluster/state.json; the next run says where the last one stopped.

Flags

FlagDefault
<site-file>Path to the site file.
--until <phase>gpuStop after host-profile, kubeadm, cilium, addons or gpu. The checks for what exists by then still run (after kubeadm: every node registered, NotReady expected).
--apt-mirror <url>Point the nodes' Ubuntu apt sources (archive and security) at this mirror, e.g. http://mirror.example.com/ubuntu. Left as they are without the flag.
--jsonPrint the report as JSON on stdout.
--parallel <n>8Nodes Ansible works on at the same time.
--timeout <d>1hThe whole run.

Examples

sudo argoctl create cluster /etc/argoctl/site.yaml                         # everything, then the checks
sudo argoctl create cluster site.yaml --until host-profile                 # stop after a phase
sudo argoctl create cluster site.yaml --apt-mirror http://mirror.example.com/ubuntu
sudo argoctl create cluster site.yaml --json > cluster.json                # report as JSON on stdout

To use the cluster yourself, run kubectl on the control plane, or install kubectl on mgmt (argoctl doesn't need it there) and use the admin kubeconfig:

sudo ssh -i /var/lib/argoctl/ssh/id_ed25519 ubuntu@172.16.1.11 sudo kubectl --kubeconfig /etc/kubernetes/admin.conf get nodes
# or, with kubectl installed on mgmt:
sudo kubectl --kubeconfig /var/lib/argoctl/cluster/admin.conf get nodes

Output

On freshly provisioned nodes (Ansible's per-task lines left out):

$ sudo argoctl create cluster /etc/argoctl/site.yaml
==> create cluster /etc/argoctl/site.yaml: site dc1, 3 nodes (host profile, kubeadm, Cilium, add-ons, GPU, checks)
    control plane cp1; pods 10.244.0.0/16, Services 10.96.0.0/12; version profile k8s-1.37.2-cilium-1.20.3-gpuop-26.7.3
  cluster   checking 3 nodes answer SSH before changing anything
  cp1       SSH 172.16.1.11: ok (hostname cp1)
  gpu1      SSH 172.16.1.21: ok (hostname gpu1)
  gpu2      SSH 172.16.1.22: ok (hostname gpu2)
  cluster   Ansible: ansible-playbook [core 2.16.3]
  cluster   host profile on every node: OS settings, containerd, kubeadm/kubelet/kubectl, GPU and RDMA prerequisites, kubeadm preflight
  cluster   host-profile: 156 tasks changed (2m41s)
  cluster   kubeadm: init the control plane, join the workers
  cluster   kubeadm: 13 tasks changed (58s)
  cluster   admin kubeconfig: /var/lib/argoctl/cluster/admin.conf (API server https://172.16.2.11:6443)
  cluster   Cilium with Helm, then wait for every node to be Ready
  cluster   cilium: 1 task changed (1m12s)
  cluster   add-ons with Helm: LoadBalancer addresses, default storage, monitoring, logs
  cluster   addons: 38 tasks changed (4m10s)
  cluster   GPU: GPU Operator 26.7.3 on gpu1, gpu2 (driver 595.91.07, Fabric Manager); GPUDirect RDMA on gpu1, gpu2; LeaderWorkerSet
  cluster   gpu: 4 tasks changed (6m03s)
  cluster   checking the cluster

āœ“ cluster of site dc1: 181 tasks changed (12m02s)
  version profile k8s-1.37.2-cilium-1.20.3-gpuop-26.7.3: Kubernetes v1.37.2, containerd 2.2.1, Cilium 1.20.3, Helm v4.3.2, GPU Operator v26.7.3
  API server https://172.16.2.11:6443 (control plane cp1); pods 10.244.0.0/16, Services 10.96.0.0/12
  admin kubeconfig /var/lib/argoctl/cluster/admin.conf

  NODE  ROLE           STATUS  VERSION  ADDRESS      POD RANGE      FREE FOR VOLUMES       GPUS
  cp1   control plane  Ready   v1.37.2  172.16.2.11  10.244.0.0/24  412.6 GiB of 438.9 GiB  -
  gpu1  worker         Ready   v1.37.2  172.16.2.21  10.244.1.0/24  3.3 TiB of 3.5 TiB      8x NVIDIA H100 80GB HBM3
  gpu2  worker         Ready   v1.37.2  172.16.2.22  10.244.2.0/24  3.3 TiB of 3.5 TiB      8x NVIDIA H100 80GB HBM3

  LoadBalancer IPs    172.16.2.200-172.16.2.220 on the frontend network (21 addresses; Cilium LB IPAM, L2 announcements)
  default storage     StorageClass local-path (cluster.local/local-path-provisioner), volumes in /opt/local-path-provisioner on each node; ...
  logs                Loki http://loki.monitoring.svc:3100 (7 days, 10Gi volume): kubernetes-pods, node-journal, kubernetes-audit; log alerts to ...

  monitoring          namespace monitoring; Prometheus keeps 15d or 8GiB, on a 10Gi local-path claim
  Prometheus          kubectl -n monitoring port-forward svc/kube-prometheus-stack-prometheus 9090:9090, then http://localhost:9090
  Alertmanager        kubectl -n monitoring port-forward svc/kube-prometheus-stack-alertmanager 9093:9093, then http://localhost:9093
  Grafana             http://172.16.2.200 (or kubectl -n monitoring port-forward svc/kube-prometheus-stack-grafana 3000:80, then http://localhost:3000)
  Grafana login       user admin; password: kubectl -n monitoring get secret grafana-admin -o jsonpath='{.data.admin-password}' | base64 -d; echo
  alerts firing       none (besides the Watchdog heartbeat)

  HELM RELEASE            NAMESPACE           CHART                          APP VERSION  STATUS    REVISION
  argoctl-lb-ipam         kube-system         argoctl-lb-ipam-1.0.0                       deployed  1
  cilium                  kube-system         cilium-1.20.3                  1.20.3       deployed  1
  gpu-operator            gpu-operator        gpu-operator-v26.7.3           v26.7.3      deployed  1
  local-path-provisioner  local-path-storage  local-path-provisioner-0.0.37  v0.0.37      deployed  1
  alloy                   monitoring          alloy-1.16.0                   v1.22.0      deployed  1
  kube-prometheus-stack   monitoring          kube-prometheus-stack-94.3.0   v0.95.2      deployed  1
  loki                    monitoring          loki-21.6.4                    3.7.11       deployed  1
  metrics-server          monitoring          metrics-server-3.14.0          0.9.0        deployed  1

  ok     clocks synchronised (NTP)                  3 nodes synchronised
  ok     every node registered                      3 registered: cp1 (Ready), gpu1 (Ready), gpu2 (Ready)
  ok     every node Ready                           3 Ready
  ok     node addresses on the frontend network     cp1 172.16.2.11, gpu1 172.16.2.21, gpu2 172.16.2.22
  ok     Kubernetes version                         v1.37.2 on every node
  ok     node pod ranges inside the pod range       cp1 10.244.0.0/24, gpu1 10.244.1.0/24, gpu2 10.244.2.0/24 inside 10.244.0.0/16
  ok     CoreDNS running                            2/2 replicas ready
  ok     Cilium agent on every node                 3/3 agents ready; cilium-dbg status: OK
  ok     pod addresses from the pod range           client-allowed 10.244.1.37, client-denied 10.244.1.80, server-cp1 10.244.0.12, ...
  ok     pods on different nodes reach each other   6 of 6 node pairs connect (TCP 8080)
  ok     DNS and Services from a pod                server-cp1 resolved and reached kubernetes.default.svc.cluster.local:443
  ok     LoadBalancer address from lb_pool          172.16.2.201 (pool 172.16.2.200-172.16.2.220) answers http://172.16.2.201/ from mgmt ...
  ok     network policy blocks what it should       to server-gpu2 (10.244.2.41:8080) from cp1: client-allowed connects, client-denied blocked
  ok     Helm releases at pinned versions           cilium cilium-1.20.3 (kube-system), argoctl-lb-ipam argoctl-lb-ipam-1.0.0 ...
  ok     default StorageClass                       local-path (cluster.local/local-path-provisioner, WaitForFirstConsumer, reclaim Delete); ...
  ok     claim without a class binds, keeps data    claim `data` (no class named) bound to pvc-3f2c… (local-path) on gpu1; ...
  ok     kubectl top (metrics-server)               cp1 212m CPU, 2210Mi memory; gpu1 95m CPU, 3105Mi memory; gpu2 88m CPU, 3011Mi memory
  ok     Prometheus scrapes every target            22 targets up: apiserver 1/1, coredns 2/2, ..., kubelet 9/9, node-exporter 3/3
  ok     alert rules loaded                         137 alert rules, including NodeDown, ContainerOOMKilled, ControlPlaneComponentDown, Watchdog, ...
  ok     monitoring data on volumes                 Prometheus keeps 15d or 8GiB; claims (local-path): prometheus 10Gi on cp1, alertmanager 1Gi on cp1, ...
  ok     Alertmanager receives alerts (Watchdog)    Watchdog firing; other alerts: none
  ok     Grafana: login, data sources, dashboards   anonymous refused (401), admin login from secret grafana-admin works; data sources Alertmanager, Loki, ...
  ok     Grafana on its LoadBalancer address        http://172.16.2.200 (pool 172.16.2.200-172.16.2.220) answers from mgmt; anonymous API access refused (401)
  ok     Loki ready                                 loki.monitoring.svc:3100/ready: ready
  ok     log collector on every node                Alloy 3/3 ready (3 nodes)
  ok     log alert rules loaded                     argoctl-node-logs (3), argoctl-kubernetes-audit (1); alerts to http://alertmanager-operated.monitoring.svc:9093
  ok     pod logs searchable in Loki                pod logger's line found in Loki after 10s by namespace, pod, container and node (gpu1), and still found after the pod was deleted
  ok     audit log in Loki                          pod argoctl-verify-logs/logger created by kubernetes-admin at 2026-11-30T11:32:10.512345Z
  ok     GPU Operator ready                         validation passed on gpu1, gpu2 (driver 595.91.07, CUDA 13.2)
  ok     GPUs allocatable                           gpu1 8/8, gpu2 8/8 nvidia.com/gpu
  ok     Fabric Manager running                     gpu1, gpu2 (NVSwitch)
  ok     GPU usable from a pod                      gpu1: 8x NVIDIA H100 80GB HBM3, gpu2: 8x NVIDIA H100 80GB HBM3
  ok     RDMA devices in pods                       gpu1 8 ports active, gpu2 8 ports active (InfiniBand, 400 Gb/s)
  Full log: /var/log/argoctl/20261130T112040Z-create-cluster.log

Running it again changes nothing:

āœ“ cluster of site dc1: nothing to change (1m04s)
  ...

Checks

CheckPasses when
clocks synchronised (NTP)timedatectl says NTPSynchronized=yes on every node
every node registeredevery site-file node is in kubectl get nodes (the only node check with --until kubeadm)
every node Readyevery node's Ready condition is True
node addresses on the frontend networkeach node's InternalIP is its site-file address
Kubernetes versionevery kubelet is the profile's version
node pod ranges inside the pod rangeeach node's podCIDR is inside the site file's pod range
CoreDNS runningthe coredns Deployment's replicas are all ready
Cilium agent on every nodethe cilium DaemonSet is ready on every node and cilium-dbg status --brief says OK
pod addresses from the pod rangeevery test pod's IP is inside the pod range
pods on different nodes reach each othera test pod on every node; TCP from each to every other node's
DNS and Services from a poda test pod resolves and connects to kubernetes.default.svc.cluster.local:443
LoadBalancer address from lb_poolwith an lb_pool: a LoadBalancer Service in front of the test pods gets an address from the pool, and answers HTTP on it from mgmt
network policy blocks what it shouldwith a NetworkPolicy allowing ingress only from client-allowed, client-allowed connects and client-denied times out (twice in a row)
Helm releases at pinned versionsCilium and every add-on are deployed at the profile's chart version, and no add-on the site file no longer asks for is left
default StorageClassexactly one default StorageClass, local-path
claim without a class binds, keeps dataa PersistentVolumeClaim naming no StorageClass binds; a pod writes to it, is deleted, and a second pod reads the same data back
kubectl top (metrics-server)kubectl top nodes lists CPU and memory for every node (waits up to 3 minutes after an install)
Prometheus scrapes every targetevery scrape target is up, including node-exporter and the kubelet on every node, kube-state-metrics and the API server
alert rules loadedthe default alert rules are loaded and none fails to evaluate
monitoring data on volumesPrometheus reports its retention; the Prometheus, Alertmanager and Grafana volumes are bound
Alertmanager receives alerts (Watchdog)the Watchdog heartbeat is firing in Alertmanager (rules are evaluated and reach it); the detail lists any other alert firing
Grafana: login, data sources, dashboardsanonymous access is refused, the admin login from the Secret works, the Prometheus, Alertmanager and Loki data sources are read-only, Prometheus answers, and the dashboards are there
Grafana on its LoadBalancer addresswith an lb_pool: Grafana's address is in the pool and answers from mgmt, refusing anonymous API access
Loki readyLoki answers ready on loki.monitoring.svc:3100
log collector on every nodeAlloy runs and is ready on every node
log alert rules loadedLoki's ruler has the built-in log alert rules
pod logs searchable in Lokia test pod prints a random token; Loki finds the line by namespace, pod, container and node, and still finds it after the pod is deleted
audit log in Lokithe audit log in Loki has the test pod's creation and says who created it
GPU Operator readythe operator's validator succeeded on every GPU node
GPUs allocatableeach GPU node advertises as many nvidia.com/gpu as it has GPUs
Fabric Manager runningon NVSwitch systems, Fabric Manager is running and the GPUs report the fabric as initialised
GPU usable from a poda pod requesting one GPU on each GPU node runs nvidia-smi and sees the expected model
RDMA devices in podson nodes with RDMA NICs, a pod requesting rdma/ib sees every port active

Test pods run in the namespaces argoctl-verify, argoctl-verify-storage and argoctl-verify-logs, deleted before and after the checks (the test volume with them). The report also lists every Helm release with its chart version, the LoadBalancer pool, the default StorageClass, where logs are kept, per node the disk space free for volumes, how to reach Prometheus, Alertmanager and Grafana, and the alerts firing. GPU checks are skipped on sites without GPUs, and the RDMA check on sites without RDMA NICs.

Files

WhereWhat
/var/lib/argoctl/cluster/ (mgmt, root 0700)inventory.json, vars.json, kubeadm/ (generated configs), ansible/ (playbooks), admin.conf (admin kubeconfig, 0600), state.json, last-report.json
/etc/argoctl/kubeadm/ (node, 0700)kubeadm configs and the initialised / joined markers
/etc/argoctl/cilium-values.json, /etc/argoctl/addons/<release>-values.json, /etc/argoctl/gpu-operator-values.json (control plane)Helm values
/opt/local-path-provisioner/ (every node)local-path volumes, one directory per claim (Prometheus', Alertmanager's and Grafana's on the control plane; Loki's on the node it first ran on)
/etc/kubernetes/audit/policy.yaml, /var/log/kubernetes/audit/ (control plane)the API server's audit policy and audit log (rotated: 100 MB a file, 4 old files, 7 days)
/var/lib/alloy/data/ (every node)where the log collector is up to in each file
/opt/argoctl/helm-<version>/, /var/cache/argoctl/ (control plane)Helm, and the downloaded charts

Exit codes

CodeMeaning
0Every phase and every check passed.
1A phase or a check failed.
2Usage error.

Troubleshooting

SymptomLikely cause and fix
check the nodes answer SSH: ...Not provisioned, or down: sudo --preserve-env=ARGOCTL_BMC_PASSWORD argoctl provision <site-file>.
install Ansible: ...mgmt can't reach Ubuntu's archive: sudo apt-get update, or sudo apt-get install -y ansible-core.
host-profile: Install containerd ... / Install kubeadm ... fails or hangsUbuntu's archive or pkgs.k8s.io unreachable or slow from the nodes: --apt-mirror <url>.
host-profile: Run kubeadm's preflight checks failsThe task output (in the run log) lists kubeadm's [ERROR ...] lines: too little CPU or memory for a control plane, a port in use, swap on.
kubeadm: Wait for the existing control plane's API server failsThe control plane was initialised but its API server doesn't answer. On it: pgrep -a kube-apiserver (is it running?), sudo sh -c 'tail -n 50 /var/log/pods/kube-system_kube-apiserver-*/kube-apiserver/*.log' (its output) and sudo journalctl -u kubelet -n 50. argoctl never resets an initialised control plane.
kubeadm: Run kubeadm join failsUsually the worker can't reach <control plane>:6443 on the Kubernetes network. Re-run: the join is reset and retried with a fresh token.
cilium: a wait times outImage pulls failing or slow: kubectl -n kube-system get pods -o wide and describe the pending pod.
gpu: driver pod in CrashLoopBackOffkubectl -n gpu-operator logs ds/nvidia-driver-daemonset. Usually no precompiled driver for the node's running kernel (the kernel was changed by hand): reboot into the held kernel, or reinstall the node with provision --reimage --node <name>.
Fabric Manager running failsNVSwitch systems need Fabric Manager at the same version as the driver; the driver pod's log shows why it didn't start. CUDA reports "system not yet initialized" until it runs.
GPUs allocatable shows fewer GPUs than installedA GPU fell off the bus or has an XID error: kubectl -n gpu-operator logs ds/nvidia-device-plugin-daemonset, and nvidia-smi in the driver pod.
RDMA devices in pods failsPorts down: ibstat on the node; InfiniBand fabrics need a running subnet manager.
LoadBalancer address from lb_pool fails: "got no address"The pool is full or wasn't installed: kubectl get ciliumloadbalancerippools shows the pool's free addresses and any conflict.
LoadBalancer address from lb_pool fails: got an address but doesn't answerThe pool isn't on the nodes' layer-2 network, or something else at the site has the address: check lb_pool with your network team, and arping <address> from a machine on the frontend network.
A LoadBalancer Service stays <pending>No lb_pool in the site file, or every address is taken: add one or widen it, then create cluster again.
A PersistentVolumeClaim stays Pendinglocal-path binds when the first pod using the claim is scheduled; until then Pending is normal. With a pod: kubectl -n local-path-storage logs deploy/local-path-provisioner.
kubectl top (metrics-server) fails: "Metrics API not available"metrics-server isn't ready: kubectl -n monitoring logs deploy/metrics-server. It needs to reach every kubelet on port 10250.
Prometheus scrapes every target failsThe detail names the targets that are down and why. A node's node-exporter or kubelet down usually means the node is down.
Alertmanager receives alerts (Watchdog) failsPrometheus can't reach Alertmanager, or isn't evaluating rules: kubectl -n monitoring logs prometheus-kube-prometheus-stack-prometheus-0 -c prometheus.
Grafana's login failsThe admin password was changed in Grafana, so the Secret no longer matches: reset it with kubectl -n monitoring exec deploy/kube-prometheus-stack-grafana -c grafana -- grafana cli admin reset-admin-password "$(kubectl -n monitoring get secret grafana-admin -o jsonpath='{.data.admin-password}' | base64 -d)".
Loki ready failskubectl -n monitoring get pod loki-0 and kubectl -n monitoring logs loki-0 -c loki. Pending usually means its node is down (its volume is on that node).
pod logs searchable in Loki failsThe collector on the test pod's node: kubectl -n monitoring logs ds/alloy -c alloy.
audit log in Loki failsOn the control plane, sudo ls -l /var/log/kubernetes/audit/. No audit.log: the API server runs without the audit policy; run create cluster again.
log alert rules loaded failskubectl -n monitoring logs loki-0 -c loki-sc-rules and kubectl -n monitoring logs loki-0 -c loki | grep -i rule: usually a rule ConfigMap that doesn't parse.
network policy blocks what it should fails with client-denied "NOT blocked"Cilium isn't enforcing policies: kubectl -n kube-system exec ds/cilium -- cilium-dbg status.
this cluster was created with version profile ...The cluster was built by a different argoCTL release. Use the release that created it.

On this page