Skip to content
This repository has been archived by the owner on Sep 24, 2021. It is now read-only.

Commit

Permalink
Merge pull request #248 from erwinvaneyk/upgrade-example-to-v1alpha2
Browse files Browse the repository at this point in the history
📖 Update simple-cluster example to v1alpha2
  • Loading branch information
k8s-ci-robot authored Sep 30, 2019
2 parents e15bd6b + 536c178 commit 1997997
Showing 1 changed file with 85 additions and 18 deletions.
103 changes: 85 additions & 18 deletions examples/simple-cluster.yaml
Original file line number Diff line number Diff line change
@@ -1,38 +1,105 @@
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:
controllerManager:
extraArgs:
enable-hostpath-provisioner: "true"
initConfiguration:
nodeRegistration:
kubeletExtraArgs:
eviction-hard: nodefs.available<0%,nodefs.inodesFree<0%,imagefs.available<0%
---
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:
nodeRegistration:
kubeletExtraArgs:
eviction-hard: nodefs.available<0%,nodefs.inodesFree<0%,imagefs.available<0%

0 comments on commit 1997997

Please sign in to comment.