Skip to content
This repository was archived by the owner on Aug 12, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 37 additions & 4 deletions templates/cluster-template.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
# this is a temporary mock
kind: KubeadmConfig
apiVersion: bootstrap.cluster.x-k8s.io/v1alpha3
metadata:
name: my-control-plane1-config
spec:
initConfiguration:
nodeRegistration:
kubeletExtraArgs:
eviction-hard: nodefs.available<0%,nodefs.inodesFree<0%,imagefs.available<0%
clusterConfiguration:
controllerManager:
extraArgs:
enable-hostpath-provisioner: "true"
---
apiVersion: cluster.x-k8s.io/v1alpha3
kind: Cluster
metadata:
Expand All @@ -18,14 +33,20 @@ metadata:
spec:
projectID: "${PROJECT_ID}"
---
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3
apiVersion: cluster.x-k8s.io/v1alpha3
kind: Machine
metadata:
name: "${CLUSTER_NAME}-master-0"
labels:
cluster.x-k8s.io/cluster-name: ${CLUSTER_NAME}
cluster.x-k8s.io/control-plane: true
cluster.x-k8s.io/control-plane: "true"
spec:
clusterName: "${CLUSTER_NAME}"
bootstrap:
configRef:
kind: KubeadmConfig
apiVersion: bootstrap.cluster.x-k8s.io/v1alpha3
name: my-control-plane1-config
infrastructureRef:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3
kind: PacketMachine
Expand All @@ -45,13 +66,19 @@ spec:
- "${SSH_KEY}"
tags: []
---
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3
apiVersion: cluster.x-k8s.io/v1alpha3
kind: Machine
metadata:
name: "${CLUSTER_NAME}-worker-0"
labels:
cluster.x-k8s.io/cluster-name: ${CLUSTER_NAME}
spec:
clusterName: "${CLUSTER_NAME}"
bootstrap:
configRef:
kind: KubeadmConfig
apiVersion: bootstrap.cluster.x-k8s.io/v1alpha3
name: my-control-plane1-config
infrastructureRef:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3
kind: PacketMachine
Expand All @@ -71,13 +98,19 @@ spec:
- "${SSH_KEY}"
tags: []
---
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3
apiVersion: cluster.x-k8s.io/v1alpha3
kind: Machine
metadata:
name: "${CLUSTER_NAME}-worker-1"
labels:
cluster.x-k8s.io/cluster-name: ${CLUSTER_NAME}
spec:
clusterName: "${CLUSTER_NAME}"
bootstrap:
configRef:
kind: KubeadmConfig
apiVersion: bootstrap.cluster.x-k8s.io/v1alpha3
name: my-control-plane1-config
infrastructureRef:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3
kind: PacketMachine
Expand Down