This repository has been archived by the owner on Sep 24, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update simple-cluster example to v1alpha2
- Loading branch information
1 parent
8dc3874
commit 0d5ee86
Showing
1 changed file
with
76 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,96 @@ | ||
apiVersion: "cluster.k8s.io/v1alpha1" | ||
# Creates a cluster with one control-plane node and one worker node | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha2 | ||
kind: DockerCluster | ||
metadata: | ||
name: my-cluster | ||
namespace: default | ||
--- | ||
apiVersion: cluster.x-k8s.io/v1alpha2 | ||
kind: Cluster | ||
metadata: | ||
name: my-cluster | ||
namespace: default | ||
spec: | ||
clusterNetwork: | ||
services: | ||
cidrBlocks: ["10.96.0.0/12"] | ||
pods: | ||
cidrBlocks: ["192.168.0.0/16"] | ||
serviceDomain: "cluster.local" | ||
infrastructureRef: | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha2 | ||
kind: DockerCluster | ||
name: my-cluster | ||
namespace: default | ||
--- | ||
apiVersion: "cluster.k8s.io/v1alpha1" | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha2 | ||
kind: DockerMachine | ||
metadata: | ||
name: controlplane-0 | ||
namespace: default | ||
--- | ||
apiVersion: cluster.x-k8s.io/v1alpha2 | ||
kind: Machine | ||
metadata: | ||
name: my-control-plane | ||
labels: | ||
cluster.k8s.io/cluster-name: my-cluster | ||
set: "controlplane" | ||
cluster.x-k8s.io/cluster-name: my-cluster | ||
cluster.x-k8s.io/control-plane: "true" | ||
name: controlplane-0 | ||
namespace: default | ||
spec: | ||
providerSpec: {} | ||
versions: | ||
controlPlane: "v1.14.2" | ||
kubelet: "v1.14.2" | ||
version: "v1.14.2" | ||
bootstrap: | ||
configRef: | ||
apiVersion: bootstrap.cluster.x-k8s.io/v1alpha2 | ||
kind: KubeadmConfig | ||
name: controlplane-0-config | ||
namespace: default | ||
infrastructureRef: | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha2 | ||
kind: DockerMachine | ||
name: controlplane-0 | ||
namespace: default | ||
--- | ||
apiVersion: "cluster.k8s.io/v1alpha1" | ||
apiVersion: bootstrap.cluster.x-k8s.io/v1alpha2 | ||
kind: KubeadmConfig | ||
metadata: | ||
name: controlplane-0-config | ||
namespace: default | ||
spec: | ||
clusterConfiguration: {} | ||
initConfiguration: {} | ||
--- | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha2 | ||
kind: DockerMachine | ||
metadata: | ||
name: worker-0 | ||
namespace: default | ||
--- | ||
apiVersion: cluster.x-k8s.io/v1alpha2 | ||
kind: Machine | ||
metadata: | ||
name: worker | ||
labels: | ||
cluster.k8s.io/cluster-name: my-cluster | ||
set: "worker" | ||
annotations: | ||
name: "my-cluster-worker" | ||
cluster.x-k8s.io/cluster-name: my-cluster | ||
name: worker-0 | ||
namespace: default | ||
spec: | ||
version: "v1.14.2" | ||
bootstrap: | ||
configRef: | ||
apiVersion: bootstrap.cluster.x-k8s.io/v1alpha2 | ||
kind: KubeadmConfig | ||
name: worker-0-config | ||
namespace: default | ||
infrastructureRef: | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha2 | ||
kind: DockerMachine | ||
name: worker-0 | ||
namespace: default | ||
--- | ||
apiVersion: bootstrap.cluster.x-k8s.io/v1alpha2 | ||
kind: KubeadmConfig | ||
metadata: | ||
name: worker-0-config | ||
namespace: default | ||
spec: | ||
providerSpec: {} | ||
versions: | ||
kubelet: "v1.14.2" | ||
joinConfiguration: {} |