Kubernetes Clusters
KubernetesThis is the definition and administration layer for Oracle Container Engine for Kubernetes (OKE) clusters in Mastermind. It's easy to confuse with Cluster Explorer, so it's worth being precise about the difference: Kubernetes Clusters is where you register a cluster exists and configure how Mastermind connects to it and who's allowed to use it; Cluster Explorer is where you actually browse what's running inside an already-registered cluster. You need a cluster set up here before Cluster Explorer (or almost anything else cluster-related) has anything to show.
What a cluster definition holds
- Identity — name, region, cluster OCID, and (optionally) compartment OCID.
- Kubeconfig — a read-scoped kubeconfig, used for Mastermind's own read-only browsing (Cluster Explorer, Vulnerability Reports, Ecopoeisis's tooling detection), and separately, an admin kubeconfig, used only when launching an Ansible Tower job that needs elevated access (restarting a deployment, installing Helm charts). These are deliberately two different credentials with two different risk levels — the read kubeconfig is never enough, by itself, to change anything on the cluster.
- Which customers are allowed to use this cluster — an allow-list that gates which customer-scoped users can even select this cluster elsewhere in the app.
- Which customer owns each namespace — a separate, per-namespace assignment (not every namespace on a cluster need be owned by the same customer as the cluster's own allow-list entries).
- An associated Ansible Tower instance — required before any cluster-provisioning or deployment action involving this cluster can actually launch a job.
Subnets, network security groups, and node pools
Once a cluster has a working credential, Mastermind can sync its subnets, network security groups (NSGs), and node pools directly from OCI — click "Sync" on the cluster's page. This is read-only discovery: it shows you what already exists in OCI, it doesn't create anything by itself.
Creating a new node pool is a separate, explicit action: open a cluster's Node Pools page and use "Create Node Pool." This launches a real Ansible Tower job that provisions actual, billable OCI compute — you'll choose the node shape, image, Kubernetes version, node count, and placement (which subnets/availability domains), plus either reuse an existing compartment and NSG for the new nodes, or have the job create a brand new compartment and NSG for them as part of the same run.
If you're creating a new NSG for a node pool, its ingress/egress rules come from an NSG Shape — a reusable rule template (defined on the NSG Shapes page, separate from the per-cluster NSG list itself) that describes a set of rules in the abstract, including rules that reference "whichever other NSG you pick at apply time," so the same shape can be reused across different clusters without hardcoding a specific NSG's OCID into the template.
Namespaces
A cluster's namespace list in Mastermind isn't auto-discovered the same way subnets/NSGs are — it's the authoritative record of which customer owns which namespace, used to decide what a customer-scoped user is allowed to see or deploy to across the rest of the app. A namespace with no customer assigned is only usable by someone with the separate, more sensitive "manage namespaces" permission.
Permissions
read, manage (create/update/delete clusters and their allowed
customers), reveal (decrypt and show the read kubeconfig — there is no
reveal path for the admin kubeconfig at all), sync (trigger a subnet/NSG/
node-pool sync), manage_namespaces (a separate, more sensitive capability
than general management, since it governs customer-based access control), and
create_node_pools (kept separate from general manage since it
provisions real, billable compute).