Closed Silvest89 closed 1 month ago
Do you want to use k0smotron in Cluster API or standalone mode? controlplane.cluster.x-k8s.io/v1beta1.K0smotronControlPlane
is an object for CAPI, it heavily relies on other CAPI objects, like in this case, it fails to find the infrastructureRef
field of the cluster.x-k8s.io/v1beta1.Cluster
object.
If you just want to deploy a control plane in pods without CAPI complexity, use k0smotron.io/v1beta1.Cluster
object. Basically, you need to change only API version and kind in your config:
apiVersion: k0smotron.io/v1beta1
kind: Cluster
metadata:
name: silvenia
spec:
replicas: 3
version: v1.30.2
persistence:
type: pvc
persistentVolumeClaim:
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi
service:
type: NodePort
apiPort: 30450
konnectivityPort: 30451
kineDataSourceSecretName: database-credentials
externalAddress: *****
k0sConfig:
apiVersion: k0s.k0sproject.io/v1beta1
kind: ClusterConfig
metadata:
name: k0s
spec:
network:
provider: custom
This is how my control plane looks like. The cluster does come up fine however the controller gets quite a few segfaults(which causes restarts)