Skip to content

Commit

Permalink
fix sample and metadata (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
sadysnaat authored Dec 10, 2021
1 parent 72873b1 commit f6a5692
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 27 deletions.
23 changes: 12 additions & 11 deletions examples/sample-cp-only.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Creates a cluster with one control-plane node and one worker node
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4
kind: MaasCluster
metadata:
name: my-cluster
Expand All @@ -11,7 +11,7 @@ spec:
dnsDomain: maas.sc
failureDomains: ['az1']
---
apiVersion: cluster.x-k8s.io/v1alpha3
apiVersion: cluster.x-k8s.io/v1alpha4
kind: Cluster
metadata:
name: my-cluster
Expand All @@ -24,17 +24,17 @@ spec:
cidrBlocks: ["192.168.0.0/16"]
serviceDomain: "cluster.local"
controlPlaneRef:
apiVersion: controlplane.cluster.x-k8s.io/v1alpha3
apiVersion: controlplane.cluster.x-k8s.io/v1alpha4
kind: KubeadmControlPlane
name: controlplane
namespace: default
infrastructureRef:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4
kind: MaasCluster
name: my-cluster
namespace: default
---
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4
kind: MaasMachineTemplate
metadata:
name: controlplane
Expand All @@ -46,19 +46,20 @@ spec:
minMemory: 8192
image: u-1804-0-k-1208-0
---
apiVersion: controlplane.cluster.x-k8s.io/v1alpha3
apiVersion: controlplane.cluster.x-k8s.io/v1alpha4
kind: KubeadmControlPlane
metadata:
name: controlplane
namespace: default
spec:
replicas: 1
version: v1.20.8
infrastructureTemplate:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3
kind: MaasMachineTemplate
name: controlplane
namespace: default
machineTemplate:
infrastructureRef:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4
kind: MaasMachineTemplate
name: controlplane
namespace: default
kubeadmConfigSpec:
clusterConfiguration:
apiServer:
Expand Down
33 changes: 17 additions & 16 deletions examples/sample-with-workerpool.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Creates a cluster with one control-plane node and one worker node
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4
kind: MaasCluster
metadata:
name: my-cluster
spec:
dnsDomain: maas.sc

---
apiVersion: cluster.x-k8s.io/v1alpha3
apiVersion: cluster.x-k8s.io/v1alpha4
kind: Cluster
metadata:
name: my-cluster
Expand All @@ -19,17 +19,17 @@ spec:
cidrBlocks: ["192.168.0.0/16"]
serviceDomain: "cluster.local"
controlPlaneRef:
apiVersion: controlplane.cluster.x-k8s.io/v1alpha3
apiVersion: controlplane.cluster.x-k8s.io/v1alpha4
kind: KubeadmControlPlane
name: my-cluster-cp
namespace: default
infrastructureRef:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4
kind: MaasCluster
name: my-cluster
namespace: default
---
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4
kind: MaasMachineTemplate
metadata:
name: my-cluster-cp
Expand All @@ -41,19 +41,20 @@ spec:
minMemory: 8192
image: u-1804-0-k-11912-0
---
apiVersion: controlplane.cluster.x-k8s.io/v1alpha3
apiVersion: controlplane.cluster.x-k8s.io/v1alpha4
kind: KubeadmControlPlane
metadata:
name: my-cluster-cp
namespace: default
spec:
replicas: 1
version: v1.19.12
infrastructureTemplate:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3
kind: MaasMachineTemplate
name: my-cluster-cp
namespace: default
machineTemplate:
infrastructureRef:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4
kind: MaasMachineTemplate
name: my-cluster-cp
namespace: default
kubeadmConfigSpec:
clusterConfiguration:
apiServer:
Expand Down Expand Up @@ -107,7 +108,7 @@ spec:
useExperimentalRetryJoin: true
---
status:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4
kind: MaasMachineTemplate
metadata:
name: my-cluster-worker
Expand All @@ -119,7 +120,7 @@ spec:
minMemory: 8192
image: u-1804-0-k-11912-0
---
apiVersion: cluster.x-k8s.io/v1alpha3
apiVersion: cluster.x-k8s.io/v1alpha4
kind: MachineDeployment
metadata:
name: my-cluster-worker
Expand All @@ -136,15 +137,15 @@ spec:
version: 1.19.12
bootstrap:
configRef:
apiVersion: bootstrap.cluster.x-k8s.io/v1alpha3
apiVersion: bootstrap.cluster.x-k8s.io/v1alpha4
kind: KubeadmConfigTemplate
name: my-cluster-worker
infrastructureRef:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4
kind: MaasMachineTemplate
name: my-cluster-worker
---
apiVersion: bootstrap.cluster.x-k8s.io/v1alpha3
apiVersion: bootstrap.cluster.x-k8s.io/v1alpha4
kind: KubeadmConfigTemplate
metadata:
name: my-cluster-worker
Expand Down
3 changes: 3 additions & 0 deletions metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ releaseSeries:
- major: 0
minor: 2
contract: v1alpha4
- major: 0
minor: 3
contract: v1alpha4

0 comments on commit f6a5692

Please sign in to comment.